2 enum acpi_smb_protocol {
6 SMBUS_RECEIVE_BYTE = 5,
11 SMBUS_WRITE_BLOCK = 0xa,
12 SMBUS_READ_BLOCK = 0xb,
13 SMBUS_PROCESS_CALL = 0xc,
14 SMBUS_BLOCK_PROCESS_CALL = 0xd,
17 static const u8 SMBUS_PEC = 0x80;
19 typedef void (*smbus_alarm_callback)(void *context);
21 extern int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address,
22 u8 command, u8 * data);
23 extern int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 slave_address,
24 u8 command, u8 * data, u8 length);
25 extern int acpi_smbus_register_callback(struct acpi_smb_hc *hc,
26 smbus_alarm_callback callback, void *context);
27 extern int acpi_smbus_unregister_callback(struct acpi_smb_hc *hc);