Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Enumerations | Functions
sbshc.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* smbus_alarm_callback )(void *context)
 

Enumerations

enum  acpi_smb_protocol {
  SMBUS_WRITE_QUICK = 2, SMBUS_READ_QUICK = 3, SMBUS_SEND_BYTE = 4, SMBUS_RECEIVE_BYTE = 5,
  SMBUS_WRITE_BYTE = 6, SMBUS_READ_BYTE = 7, SMBUS_WRITE_WORD = 8, SMBUS_READ_WORD = 9,
  SMBUS_WRITE_BLOCK = 0xa, SMBUS_READ_BLOCK = 0xb, SMBUS_PROCESS_CALL = 0xc, SMBUS_BLOCK_PROCESS_CALL = 0xd
}
 
enum  acpi_sbs_device_addr { ACPI_SBS_CHARGER = 0x9, ACPI_SBS_MANAGER = 0xa, ACPI_SBS_BATTERY = 0xb }
 

Functions

int acpi_smbus_read (struct acpi_smb_hc *hc, u8 protocol, u8 address, u8 command, u8 *data)
 
int acpi_smbus_write (struct acpi_smb_hc *hc, u8 protocol, u8 slave_address, u8 command, u8 *data, u8 length)
 
int acpi_smbus_register_callback (struct acpi_smb_hc *hc, smbus_alarm_callback callback, void *context)
 
int acpi_smbus_unregister_callback (struct acpi_smb_hc *hc)
 

Typedef Documentation

typedef void(* smbus_alarm_callback)(void *context)

Definition at line 25 of file sbshc.h.

Enumeration Type Documentation

Enumerator:
ACPI_SBS_CHARGER 
ACPI_SBS_MANAGER 
ACPI_SBS_BATTERY 

Definition at line 19 of file sbshc.h.

Enumerator:
SMBUS_WRITE_QUICK 
SMBUS_READ_QUICK 
SMBUS_SEND_BYTE 
SMBUS_RECEIVE_BYTE 
SMBUS_WRITE_BYTE 
SMBUS_READ_BYTE 
SMBUS_WRITE_WORD 
SMBUS_READ_WORD 
SMBUS_WRITE_BLOCK 
SMBUS_READ_BLOCK 
SMBUS_PROCESS_CALL 
SMBUS_BLOCK_PROCESS_CALL 

Definition at line 2 of file sbshc.h.

Function Documentation

int acpi_smbus_read ( struct acpi_smb_hc hc,
u8  protocol,
u8  address,
u8  command,
u8 data 
)

Definition at line 180 of file sbshc.c.

int acpi_smbus_register_callback ( struct acpi_smb_hc hc,
smbus_alarm_callback  callback,
void context 
)

Definition at line 196 of file sbshc.c.

int acpi_smbus_unregister_callback ( struct acpi_smb_hc hc)

Definition at line 208 of file sbshc.c.

int acpi_smbus_write ( struct acpi_smb_hc hc,
u8  protocol,
u8  slave_address,
u8  command,
u8 data,
u8  length 
)

Definition at line 188 of file sbshc.c.