[Pdbg] [PATCH 2/7] libpdbg: Add pba hardware unit

Amitay Isaacs amitay at ozlabs.org
Thu Oct 24 12:48:42 AEDT 2019


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 libpdbg/hwunit.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h
index 06e5fca..8d2a55f 100644
--- a/libpdbg/hwunit.h
+++ b/libpdbg/hwunit.h
@@ -65,6 +65,13 @@ struct mem {
 };
 #define target_to_mem(x) container_of(x, struct mem, target)
 
+struct pba {
+	struct pdbg_target target;
+	int (*read)(struct pba *, uint64_t, uint8_t *, uint64_t, uint8_t, bool);
+	int (*write)(struct pba *, uint64_t, uint8_t *, uint64_t, uint8_t, bool);
+};
+#define target_to_pba(x) container_of(x, struct pba, target)
+
 struct sbefifo {
 	struct pdbg_target target;
 	int (*istep)(struct sbefifo *, uint32_t major, uint32_t minor);
-- 
2.21.0



More information about the Pdbg mailing list