summaryrefslogtreecommitdiffstats
path: root/src/include/device/smbus_def.h
blob: 0e502fef99a74ed474b25eb51cb7bfff9e23a7c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef DEVICE_SMBUS_DEF_H
#define DEVICE_SMBUS_DEF_H

#include <types.h>

/* Error results are negative success is >= 0 */
#define SMBUS_ERROR			CB_ERR
#define SMBUS_WAIT_UNTIL_READY_TIMEOUT	CB_I2C_BUSY
#define SMBUS_WAIT_UNTIL_DONE_TIMEOUT	CB_I2C_TIMEOUT
#define SMBUS_WAIT_UNTIL_ACTIVE_TIMEOUT	CB_I2C_NO_DEVICE

#endif /* DEVICE_SMBUS_DEF_H */