@@ -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 */
@@ -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);
}
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- libpdbg/hwunit.h | 5 +++++ libpdbg/p9_fapi_targets.c | 11 +++++++++++ 2 files changed, 16 insertions(+)