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