summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
authorElizabeth Liner <eliner@us.ibm.com>2017-07-12 16:11:39 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-04 09:52:27 -0400
commit8a8925f6eeb973ebc46a1bac8ae1f3923cbee991 (patch)
tree335a76b2808ce8f4ea1c908d8716b2e30115578f /src/include/usr/devicefw
parent842ef4363d9821d61803358c0f9f57e560728806 (diff)
downloadblackbird-hostboot-8a8925f6eeb973ebc46a1bac8ae1f3923cbee991.tar.gz
blackbird-hostboot-8a8925f6eeb973ebc46a1bac8ae1f3923cbee991.zip
MEMD base commit - initial infrastructure for MEMD
Change-Id: Ib8f6b15bfef51ed29529eec957d5352f5f3295fd RTC:175158 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43507 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/userif.H26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H
index 5f42ff8f4..286deabb1 100644
--- a/src/include/usr/devicefw/userif.H
+++ b/src/include/usr/devicefw/userif.H
@@ -67,6 +67,7 @@ namespace DeviceFW
SIO,
AHB_SIO,
DVPD, // Direct access memory VPD
+ MEMD_VPD,
LAST_ACCESS_TYPE,
};
@@ -252,6 +253,31 @@ namespace DeviceFW
DeviceFW::DVPD, static_cast<uint64_t>(( i_record )),\
static_cast<uint64_t>(( i_keyword )),\
static_cast<uint64_t>(( i_location ))
+
+ /**
+ * Construct the device addressing parameters for the DVPD (Direct access
+ * memory VPD) device ops.
+ * @param[in] i_record - The enumeration of the DVPD record to access.
+ * @param[in] i_keyword - The enumeration of the DVPD keyword, located
+ * within the i_record Record to access.
+ */
+ #define DEVICE_MEMD_VPD_ADDRESS( i_record, i_keyword )\
+ DEVICE_MEMD_VPD_FORCE_ADDRESS( i_record, i_keyword, VPD::PNOR )
+
+ /**
+ * Construct the device addressing parameters for the DVPD device ops.
+ * @param[in] i_record - The enumeration of the DVPD record to access.
+ * @param[in] i_keyword - The enumeration of the DVPD keyword, located
+ * within the i_record Record to access.
+ * @param[in] i_location - The location of the data (PNOR/SEEPROM)
+ see vpd_if.H
+ */
+ #define DEVICE_MEMD_VPD_FORCE_ADDRESS( i_record, i_keyword, i_location )\
+ DeviceFW::MEMD_VPD, static_cast<uint64_t>(( i_record )),\
+ static_cast<uint64_t>(( i_keyword )),\
+ static_cast<uint64_t>(( i_location ))
+
+
/**
* Construct the device addressing parameters for the SCAN device ops.
* @param[in] i_ring - The ring address to scan
OpenPOWER on IntegriCloud