[Pdbg] [PATCH v2 17/20] libpdbg: Add ocmb hwunit

Amitay Isaacs amitay at ozlabs.org
Thu Oct 1 17:08:11 AEST 2020


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
Reviewed-by: Joel Stanley <joel at jms.id.au>
---
 libpdbg/hwunit.h | 8 ++++++++
 1 file changed, 8 insertions(+)

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 */
-- 
2.26.2



More information about the Pdbg mailing list