Eric Biederman | 992cd00 | 2004-10-14 21:10:23 +0000 | [diff] [blame] | 1 | #ifndef DEVICE_SMBUS_DEF_H |
| 2 | #define DEVICE_SMBUS_DEF_H |
| 3 | |
Nico Huber | 5817386 | 2017-08-01 17:09:35 +0200 | [diff] [blame] | 4 | #include <types.h> |
| 5 | |
Eric Biederman | 992cd00 | 2004-10-14 21:10:23 +0000 | [diff] [blame] | 6 | /* Error results are negative success is >= 0 */ |
Nico Huber | 5817386 | 2017-08-01 17:09:35 +0200 | [diff] [blame] | 7 | #define SMBUS_ERROR CB_ERR |
| 8 | #define SMBUS_WAIT_UNTIL_READY_TIMEOUT CB_I2C_BUSY |
| 9 | #define SMBUS_WAIT_UNTIL_DONE_TIMEOUT CB_I2C_TIMEOUT |
| 10 | #define SMBUS_WAIT_UNTIL_ACTIVE_TIMEOUT CB_I2C_NO_DEVICE |
Eric Biederman | 992cd00 | 2004-10-14 21:10:23 +0000 | [diff] [blame] | 11 | |
| 12 | #endif /* DEVICE_SMBUS_DEF_H */ |