diff options
author | Manali Kumar <mkkumar@us.ibm.com> | 2015-09-24 18:52:00 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-12-08 10:24:35 -0600 |
commit | 1fbe5e7bf5042ee9e7353a169d13eec54c270f04 (patch) | |
tree | 3cb9fc58e569fa0d22f7f16a6d8b32900e9de2da /src/include/usr/devicefw/userif.H | |
parent | dee70f6f25fb4ed099942b1b3b0a340bd643ff06 (diff) | |
download | talos-hostboot-1fbe5e7bf5042ee9e7353a169d13eec54c270f04.tar.gz talos-hostboot-1fbe5e7bf5042ee9e7353a169d13eec54c270f04.zip |
superio driver to control accesss to SIO registers
The SuperIO driver makes accesses to the SIO chip from the console and
pnor module thread safe.
Change-Id: Ib07dea2867d14684806c56cd965b26c95810f7f3
RTC:115576
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20928
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw/userif.H')
-rw-r--r-- | src/include/usr/devicefw/userif.H | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H index 55751d97d..e30595e40 100644 --- a/src/include/usr/devicefw/userif.H +++ b/src/include/usr/devicefw/userif.H @@ -63,6 +63,8 @@ namespace DeviceFW IPMIBT, // As opposed to other phy's PVPD, TPM, + SIO, + AHB_SIO, LAST_ACCESS_TYPE, }; @@ -214,6 +216,21 @@ namespace DeviceFW DeviceFW::LPC, static_cast<uint64_t>(( i_trans_type )),\ static_cast<uint64_t>(( i_address )) + /** + * Construct the device addressing parameters for the SIO device ops. + * @param[i] i_device - SIO device to operate on + * @param[i] i_address - SIO address to operate on + */ + #define DEVICE_SIO_ADDRESS(i_device, i_address)\ + DeviceFW::SIO, static_cast<uint64_t>((i_device)),\ + static_cast<uint64_t>((i_address)) + + /** + * Construct the device addressing parameters for the AHB_SIO device ops. + * @param[i] i_address - AHB_SIO address to operate on + */ + #define DEVICE_AHB_SIO_ADDRESS(i_address)\ + DeviceFW::AHB_SIO, static_cast<uint64_t>((i_address)) /** * Construct the device addressing parameters for the EEPROM device ops. |