summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2015-02-27 15:41:10 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-05-21 18:00:20 -0500
commit56a2bf579633fec26b0b6afaec01314a15dddb9d (patch)
treeea9806eab8006f92437e13935a5bcb79c7cdb8a6 /src/include/usr/devicefw
parent9bd763dd507380adf58bd7d20d0c030706d6e979 (diff)
downloadtalos-hostboot-56a2bf579633fec26b0b6afaec01314a15dddb9d.tar.gz
talos-hostboot-56a2bf579633fec26b0b6afaec01314a15dddb9d.zip
Add support for backplane VPD
Replace the temporary use of mem buf to access planar vpd with new planar vpd interfaces. Change-Id: I24cda4d713806330a9f61d588006d63966f92550 RTC: 118373 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16326 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/userif.H23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H
index 6d041f2ee..eac5366aa 100644
--- a/src/include/usr/devicefw/userif.H
+++ b/src/include/usr/devicefw/userif.H
@@ -61,6 +61,7 @@ namespace DeviceFW
GPIO,
LPC,
IPMIBT, // As opposed to other phy's
+ PVPD,
LAST_ACCESS_TYPE,
};
@@ -166,6 +167,28 @@ namespace DeviceFW
static_cast<uint64_t>(( i_location ))
/**
+ * Construct the device addressing parameters for the PVPD device ops.
+ * @param[in] i_record - The enumeration of the PVPD record to access.
+ * @param[in] i_keyword - The enumeration of the PVPD keyword, located
+ * within the i_record Record to access.
+ */
+ #define DEVICE_PVPD_ADDRESS( i_record, i_keyword )\
+ DEVICE_PVPD_FORCE_ADDRESS( i_record, i_keyword, VPD::AUTOSELECT )
+
+ /**
+ * Construct the device addressing parameters for the PVPD device ops.
+ * @param[in] i_record - The enumeration of the PVPD record to access.
+ * @param[in] i_keyword - The enumeration of the PVPD 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_PVPD_FORCE_ADDRESS( i_record, i_keyword, i_location )\
+ DeviceFW::PVPD, 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
* @param[in] i_ringlen - The length of the ring to scan in bits
OpenPOWER on IntegriCloud