diff options
| author | Terry J. Opie <opiet@us.ibm.com> | 2011-08-05 08:51:38 -0500 |
|---|---|---|
| committer | Terry J. Opie <opiet@us.ibm.com> | 2011-08-15 13:57:29 -0500 |
| commit | fa0113e4599fcca0c2d4c938c88d445d288a952a (patch) | |
| tree | ca797228d6c31b9dcd3ed617f7a82e77d9e27138 /src/include/usr/devicefw | |
| parent | b0ceda93e7d5b6b06465a5fcc0b261a52dad987d (diff) | |
| download | talos-hostboot-fa0113e4599fcca0c2d4c938c88d445d288a952a.tar.gz talos-hostboot-fa0113e4599fcca0c2d4c938c88d445d288a952a.zip | |
I2C Device Driver Skeleton
Change-Id: I0b092ea67e5bb8789378041c8c3a6a3f5cf3025e
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/242
Reviewed-by: Terry J. Opie <opiet@us.ibm.com>
Tested-by: Jenkins Server
Diffstat (limited to 'src/include/usr/devicefw')
| -rw-r--r-- | src/include/usr/devicefw/driverif.H | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/driverif.H b/src/include/usr/devicefw/driverif.H index b4b2feee3..3f8759981 100644 --- a/src/include/usr/devicefw/driverif.H +++ b/src/include/usr/devicefw/driverif.H @@ -23,6 +23,7 @@ namespace DeviceFW { XSCOM = LAST_ACCESS_TYPE, FSISCOM, + I2C, LAST_DRIVER_ACCESS_TYPE }; @@ -54,6 +55,12 @@ namespace DeviceFW #define DEVICE_XSCOM_ADDRESS(i_address) \ DeviceFW::XSCOM, static_cast<uint64_t>((i_address)) + /** + * Construct the device addressing parameters for the I2C device ops. + */ + #define DEVICE_I2C_ADDRESS( i_address )\ + DeviceFW::I2C, static_cast<uint64_t>(( i_address )) + /** @class InvalidParameterType * @brief Unused type to cause compiler fails for invalid template types. |

