19 #define CHECK_PRESENCE(x) \
20 if (!ops_smbus_bus(get_pbus_smbus(dev))->x) { \
21 printk(BIOS_ERR, "%s missing " #x "\n", \
#define printk(level,...)
void __noreturn die(const char *fmt,...)
int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer)
#define CHECK_PRESENCE(x)
struct bus * get_pbus_smbus(struct device *dev)
int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer)
const char * dev_path(const struct device *dev)
struct bus * i2c_link(const struct device *const dev)
static const struct smbus_bus_operations * ops_smbus_bus(struct bus *bus)
#define BIOS_ALERT
BIOS_ALERT - Dying / Unrecoverable.
u8 buffer[C2P_BUFFER_MAXSIZE]
DEVTREE_CONST struct device * dev
const struct smbus_bus_operations * ops_smbus_bus
struct device_operations * ops
int(* block_write)(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer)
int(* block_read)(struct device *dev, u8 cmd, u8 bytes, u8 *buffer)