diff options
Diffstat (limited to 'src/include/usr')
| -rw-r--r-- | src/include/usr/devicefw/driverif.H | 7 | ||||
| -rw-r--r-- | src/include/usr/hbotcompid.H | 15 | ||||
| -rw-r--r-- | src/include/usr/xscom/xscomreasoncodes.H | 22 |
3 files changed, 44 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/driverif.H b/src/include/usr/devicefw/driverif.H index a3c5b37b6..c7f094d8a 100644 --- a/src/include/usr/devicefw/driverif.H +++ b/src/include/usr/devicefw/driverif.H @@ -56,6 +56,13 @@ namespace DeviceFW WILDCARD = -1, }; + /** Construct the device addressing parameters for XSCOM device ops. + * @param[in] i_address - XSCom address to operate on. + */ + #define DEVICE_XSCOM_ADDRESS(i_address) \ + DeviceFW::XSCOM, static_cast<uint64_t>((i_address)) + + /** @class InvalidParameterType * @brief Unused type to cause compiler fails for invalid template types. * diff --git a/src/include/usr/hbotcompid.H b/src/include/usr/hbotcompid.H index b99e91c35..e6be3adc8 100644 --- a/src/include/usr/hbotcompid.H +++ b/src/include/usr/hbotcompid.H @@ -46,5 +46,20 @@ const compId_t DEVFW_COMP_ID = 0x0200; const char DEVFW_COMP_NAME[] = "devfw"; //@} +/** @name SCOM + * SCOM component + */ +//@{ +const compId_t SCOM_COMP_ID = 0x0300; +const char SCOM_COMP_NAME[] = "scom"; +//@} + +/** @name XSCOM + * XSCOM component + */ +//@{ +const compId_t XSCOM_COMP_ID = 0x0400; +const char XSCOM_COMP_NAME[] = "xscom"; +//@} #endif diff --git a/src/include/usr/xscom/xscomreasoncodes.H b/src/include/usr/xscom/xscomreasoncodes.H new file mode 100644 index 000000000..552b517e9 --- /dev/null +++ b/src/include/usr/xscom/xscomreasoncodes.H @@ -0,0 +1,22 @@ +#ifndef __XSCOM_REASONCODES_H +#define __XSCOM_REASONCODES_H + +#include <hbotcompid.H> + +namespace XSCOM +{ + enum xscomModuleId + { + XSCOM_PERFORM_OP = 0x00, + XSCOM_SANITY_CHECK = 0x01, + }; + + enum xscomReasonCode + { + XSCOM_STATUS_ERR = XSCOM_COMP_ID | 0x01, + XSCOM_INVALID_DATA_BUFFER = XSCOM_COMP_ID | 0x02, + XSCOM_INVALID_OP_TYPE = XSCOM_COMP_ID | 0x03, + }; +}; + +#endif |

