blob: 0e502fef99a74ed474b25eb51cb7bfff9e23a7c6 [file] [log] [blame]
Martin Roth239b5df2022-07-26 22:18:26 -06001/* SPDX-License-Identifier: GPL-2.0-only */
2
Eric Biederman992cd002004-10-14 21:10:23 +00003#ifndef DEVICE_SMBUS_DEF_H
4#define DEVICE_SMBUS_DEF_H
5
Nico Huber58173862017-08-01 17:09:35 +02006#include <types.h>
7
Eric Biederman992cd002004-10-14 21:10:23 +00008/* Error results are negative success is >= 0 */
Nico Huber58173862017-08-01 17:09:35 +02009#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 Biederman992cd002004-10-14 21:10:23 +000013
14#endif /* DEVICE_SMBUS_DEF_H */