diff options
| author | Terry J. Opie <opiet@us.ibm.com> | 2011-10-27 12:48:46 -0500 |
|---|---|---|
| committer | Terry J. Opie <opiet@us.ibm.com> | 2011-12-01 15:47:22 -0600 |
| commit | dddd1ef3658b3a3a846ec64c3e6ba9ba1f7b746e (patch) | |
| tree | 3cad9b232c35e09596f862fc301788a7a4b71339 /src/include/usr/devicefw | |
| parent | 4a353d7840f632640e78cafc7052e2e5a99ad564 (diff) | |
| download | talos-hostboot-dddd1ef3658b3a3a846ec64c3e6ba9ba1f7b746e.tar.gz talos-hostboot-dddd1ef3658b3a3a846ec64c3e6ba9ba1f7b746e.zip | |
I2C Bad Machine Path and Cxx Testcases as well as the EEPROM device driver.
Change-Id: Ia89d3aecb3192a2f99ef9fbb5abe0ce1d528a481
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/506
Tested-by: Jenkins Server
Reviewed-by: Terry J. Opie <opiet@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
| -rw-r--r-- | src/include/usr/devicefw/driverif.H | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/include/usr/devicefw/driverif.H b/src/include/usr/devicefw/driverif.H index 0c5f874b6..939190459 100644 --- a/src/include/usr/devicefw/driverif.H +++ b/src/include/usr/devicefw/driverif.H @@ -46,6 +46,7 @@ namespace DeviceFW XSCOM = LAST_ACCESS_TYPE, I2C, FSISCOM, + EEPROM, LAST_DRIVER_ACCESS_TYPE }; @@ -85,17 +86,23 @@ namespace DeviceFW /** * Construct the device addressing parameters for the I2C device ops. - * @param[in] i_address - I2C address to access on slave device. * @param[in] i_port - Which port to use from the I2C master. * @param[in] i_engine - Which I2C master engine to use. * @param[in] i_devAddr - The device address on a given engine/port. */ - #define DEVICE_I2C_ADDRESS( i_address, i_port, i_engine, i_devAddr )\ - DeviceFW::I2C, static_cast<uint64_t>(( i_address )),\ - static_cast<uint64_t>(( i_port )),\ - static_cast<uint64_t>(( i_engine )),\ - static_cast<uint64_t>(( i_devAddr )) + #define DEVICE_I2C_ADDRESS( i_port, i_engine, i_devAddr )\ + DeviceFW::I2C, static_cast<uint64_t>(( i_port )),\ + static_cast<uint64_t>(( i_engine )),\ + static_cast<uint64_t>(( i_devAddr )) + /** + * Construct the device addressing parameters for the EEPROM device ops. + * @param[in] i_address - The address of the I2C slave device. + * @param[in] i_chip - The chip number of the EEPROM to access. + */ + #define DEVICE_EEPROM_ADDRESS( i_address, i_chip )\ + DeviceFW::EEPROM, static_cast<uint64_t>(( i_address )),\ + static_cast<uint64_t>(( i_chip )) /** @class InvalidParameterType * @brief Unused type to cause compiler fails for invalid template types. |

