[Pdbg] [PATCH 11/12] libpdbg: Add more p9 fapi targets
Amitay Isaacs
amitay at ozlabs.org
Fri Mar 13 12:19:38 AEDT 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/hwunit.h | 5 +++++
libpdbg/p9_fapi_targets.c | 11 +++++++++++
2 files changed, 16 insertions(+)
diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h
index ae8a15a..2107d04 100644
--- a/libpdbg/hwunit.h
+++ b/libpdbg/hwunit.h
@@ -272,4 +272,9 @@ struct pauc {
};
#define target_to_pauc(x) container_of(x, struct pauc, target)
+struct capp {
+ struct pdbg_target target;
+};
+#define target_to_capp(x) container_of(x, struct capp, target)
+
#endif /* __HWUNIT_H */
diff --git a/libpdbg/p9_fapi_targets.c b/libpdbg/p9_fapi_targets.c
index d38ecdb..1dc7af8 100644
--- a/libpdbg/p9_fapi_targets.c
+++ b/libpdbg/p9_fapi_targets.c
@@ -707,6 +707,16 @@ static struct chiplet p9_chiplet = {
};
DECLARE_HW_UNIT(p9_chiplet);
+struct capp p9_capp = {
+ .target = {
+ .name = "POWER9 capp",
+ .compatible = "ibm,power9-capp",
+ .class = "capp",
+ .translate = p9_unknown_translation,
+ },
+};
+DECLARE_HW_UNIT(p9_capp);
+
__attribute__((constructor))
static void register_p9_fapi_targets(void)
{
@@ -735,4 +745,5 @@ static void register_p9_fapi_targets(void)
pdbg_hwunit_register(&p9_fc_hw_unit);
pdbg_hwunit_register(&p9_pauc_hw_unit);
pdbg_hwunit_register(&p9_chiplet_hw_unit);
+ pdbg_hwunit_register(&p9_capp_hw_unit);
}
--
2.24.1
More information about the Pdbg
mailing list