xref: /aosp_15_r20/external/coreboot/src/include/device/smbus_def.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef DEVICE_SMBUS_DEF_H
4 #define DEVICE_SMBUS_DEF_H
5 
6 #include <types.h>
7 
8 /* Error results are negative success is >= 0 */
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
13 
14 #endif /* DEVICE_SMBUS_DEF_H */
15