diff options
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/lpc/lpc_reasoncodes.H | 3 | ||||
-rw-r--r-- | src/include/usr/sio/sio.H | 14 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/include/usr/lpc/lpc_reasoncodes.H b/src/include/usr/lpc/lpc_reasoncodes.H index d5c15628a..ed2de4bfb 100644 --- a/src/include/usr/lpc/lpc_reasoncodes.H +++ b/src/include/usr/lpc/lpc_reasoncodes.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2017 */ +/* Contributors Listed Below - COPYRIGHT 2014,2018 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -55,6 +55,7 @@ namespace LPC RC_CANT_USE_SENTINEL = LPC_COMP_ID | 0x08, RC_BAD_TARGET = LPC_COMP_ID | 0x09, RC_LPCHC_ERROR = LPC_COMP_ID | 0x0A, + RC_LPCHC_SYNCAB_ERROR = LPC_COMP_ID | 0x0B, }; }; diff --git a/src/include/usr/sio/sio.H b/src/include/usr/sio/sio.H index 52f752da7..ec422d8b7 100644 --- a/src/include/usr/sio/sio.H +++ b/src/include/usr/sio/sio.H @@ -25,6 +25,8 @@ #ifndef __SIO_SIO_H #define __SIO_SIO_H +#include <errl/errlentry.H> + namespace SIO { /** @@ -47,5 +49,17 @@ namespace SIO SIO_SCRATCH_REG1 = 0x21, /**< Scratch Reg */ SIO_SCRATCH_REG2 = 0x22, /**< Scratch Reg */ }; + + /** + * @brief Test if SuperIO is accessible on the LPC bus + * + * @param[out] o_available Set true if the SuperIO controller is available, + * false if it explicitly detected as unavailable, + * and unchanged if an unexpected error occurs. + * + * @return NULL if the test did not fail unexpectedly, otherwise a pointer + * to an errorlog associated with the error. + */ + errlHndl_t isAvailable(bool& o_available); } #endif |