diff mbox series

[v2,17/20] libpdbg: Add ocmb hwunit

Message ID 20201001070814.102735-18-amitay@ozlabs.org
State Accepted
Headers show
Series Add p10 support to libpdbg | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (9fbe2a8b236967e0b2088dfa85a8e3d23ff01413)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Amitay Isaacs Oct. 1, 2020, 7:08 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
---
 libpdbg/hwunit.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h
index 52fdaf0..f1f164e 100644
--- a/libpdbg/hwunit.h
+++ b/libpdbg/hwunit.h
@@ -320,4 +320,12 @@  struct mcc {
 	struct pdbg_target target;
 };
 #define target_to_mcc(x) container_of(x, struct mcc, target)
+
+struct ocmb {
+	struct pdbg_target target;
+	int (*getscom)(struct ocmb *, uint64_t, uint64_t *);
+	int (*putscom)(struct ocmb *, uint64_t, uint64_t);
+};
+#define target_to_ocmb(x) container_of(x, struct ocmb, target);
+
 #endif /* __HWUNIT_H */