aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc/marvell/octeontx2-ghes/otx2-ghes-bert.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/marvell/octeontx2-ghes/otx2-ghes-bert.h')
-rw-r--r--drivers/soc/marvell/octeontx2-ghes/otx2-ghes-bert.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/soc/marvell/octeontx2-ghes/otx2-ghes-bert.h b/drivers/soc/marvell/octeontx2-ghes/otx2-ghes-bert.h
new file mode 100644
index 000000000000..5c16c52a7bb8
--- /dev/null
+++ b/drivers/soc/marvell/octeontx2-ghes/otx2-ghes-bert.h
@@ -0,0 +1,35 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Supports OcteonTX2 Generic Hardware Error Source (BED)
+ * Boot Error Data (BED) from BERT table DT and ACPI
+ *
+ * Copyright (C) 2021 Marvell.
+ */
+
+#ifndef __OTX2_GHES_BERT_H__
+#define __OTX2_GHES_BERT_H__
+
+/*
+ * Boot Error Data Source
+ */
+struct mrvl_bed_source {
+ phys_addr_t block_pa;
+ u64 block_sz;
+ void __iomem *block_va;
+ phys_addr_t bert_pa;
+ u64 bert_sz;
+ void __iomem *bert_va;
+ u32 error_cnt;
+};
+
+struct bed_bert_mem_entry {
+ union {
+ /* These are identical; both are listed here for clarity */
+ struct acpi_hest_generic_status hest;
+ struct acpi_bert_region bert;
+ } estatus;
+ struct acpi_hest_generic_data gen_data;
+ struct cper_sec_mem_err_old mem_err;
+} __packed;
+
+#endif //__OTX2_GHES_BERT_H__