diff options
author | Bill Schwartz <whs@us.ibm.com> | 2015-11-18 14:01:33 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-03-24 10:27:41 -0400 |
commit | b19c61f81dacb5088180946c5f415909965dd1fa (patch) | |
tree | dc5d723cfba93998f68c0e85de11d05ab07b8b3c /src/include/usr/devicefw/userif.H | |
parent | 16ff4c0894f726ea97362536af36a413b1f255cd (diff) | |
download | talos-hostboot-b19c61f81dacb5088180946c5f415909965dd1fa.tar.gz talos-hostboot-b19c61f81dacb5088180946c5f415909965dd1fa.zip |
Changes related to packaging of memory vpd on Nimbus - part 1
Lower level vpd and targeting plumbing changes for Nimbus direct memory
Change-Id: I6ac97404f5ef7432d14192945f9a1e258ed66dd3
RTC: 128112
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/711
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw/userif.H')
-rw-r--r-- | src/include/usr/devicefw/userif.H | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H index e30595e40..06195f326 100644 --- a/src/include/usr/devicefw/userif.H +++ b/src/include/usr/devicefw/userif.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2015 */ +/* Contributors Listed Below - COPYRIGHT 2011,2016 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -54,8 +54,8 @@ namespace DeviceFW PRESENT, FSI, SPD, - MVPD, - CVPD, + MVPD, // Module (processor) VPD + CVPD, // Centaur (memory buffer) VPD SCAN, EEPROM, GPIO, @@ -65,6 +65,7 @@ namespace DeviceFW TPM, SIO, AHB_SIO, + DVPD, // Direct access memory VPD LAST_ACCESS_TYPE, }; @@ -192,6 +193,28 @@ namespace DeviceFW 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_DVPD_ADDRESS( i_record, i_keyword )\ + DEVICE_DVPD_FORCE_ADDRESS( i_record, i_keyword, VPD::AUTOSELECT ) + + /** + * 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_DVPD_FORCE_ADDRESS( i_record, i_keyword, i_location )\ + 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 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 |