diff options
| author | Thi Tran <thi@us.ibm.com> | 2011-06-11 15:49:38 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-06-17 13:57:06 -0500 |
| commit | cdaabfdbec148d9ce85f422507c596a8ae6ced08 (patch) | |
| tree | bc8edbc339263a4c4b9c71f3298ff6043af1decb /src/include/usr | |
| parent | b301c77be3ab2b9c097f2e3df47e96a907221ed9 (diff) | |
| download | blackbird-hostboot-cdaabfdbec148d9ce85f422507c596a8ae6ced08.tar.gz blackbird-hostboot-cdaabfdbec148d9ce85f422507c596a8ae6ced08.zip | |
Initial XSCOM delivery
Change-Id: I80278bf2e03b4e6403d9a36b8782b225dba29fe3
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/144
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
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 |

