[Pdbg] [PATCH 1/2] libpdbg: Move chip id definitions to common header
Amitay Isaacs
amitay at ozlabs.org
Tue May 26 15:13:11 AEST 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/dtb.c | 5 -----
libpdbg/target.h | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c
index aad6a21..6d9b182 100644
--- a/libpdbg/dtb.c
+++ b/libpdbg/dtb.c
@@ -52,11 +52,6 @@
#define AMI_BMC "/proc/ractrends/Helper/FwInfo"
#define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom"
-#define CHIP_ID_P8 0xea
-#define CHIP_ID_P8P 0xd3
-#define CHIP_ID_P9 0xd1
-#define CHIP_ID_P9P 0xd9
-
static enum pdbg_backend pdbg_backend = PDBG_DEFAULT_BACKEND;
static const char *pdbg_backend_option;
static struct pdbg_dtb pdbg_dtb = {
diff --git a/libpdbg/target.h b/libpdbg/target.h
index 7094b51..522a4dc 100644
--- a/libpdbg/target.h
+++ b/libpdbg/target.h
@@ -24,6 +24,11 @@
#include "compiler.h"
#include "libpdbg.h"
+#define CHIP_ID_P8 0xea
+#define CHIP_ID_P8P 0xd3
+#define CHIP_ID_P9 0xd1
+#define CHIP_ID_P9P 0xd9
+
enum chip_type {CHIP_UNKNOWN, CHIP_P8, CHIP_P8NV, CHIP_P9};
struct pdbg_target_class {
--
2.26.2
More information about the Pdbg
mailing list