summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/sio/sio.H14
1 files changed, 14 insertions, 0 deletions
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
OpenPOWER on IntegriCloud