Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
Macros | |
#define | SIS5595_EXTENT 8 |
#define | SMB_STS_LO 0x00 |
#define | SMB_STS_HI 0x01 |
#define | SMB_CTL_LO 0x02 |
#define | SMB_CTL_HI 0x03 |
#define | SMB_ADDR 0x04 |
#define | SMB_CMD 0x05 |
#define | SMB_PCNT 0x06 |
#define | SMB_CNT 0x07 |
#define | SMB_BYTE 0x08 |
#define | SMB_DEV 0x10 |
#define | SMB_DB0 0x11 |
#define | SMB_DB1 0x12 |
#define | SMB_HAA 0x13 |
#define | SMB_INDEX 0x38 |
#define | SMB_DAT 0x39 |
#define | SIS5595_ENABLE_REG 0x40 |
#define | ACPI_BASE 0x90 |
#define | MAX_TIMEOUT 500 |
#define | SIS5595_QUICK 0x00 |
#define | SIS5595_BYTE 0x02 |
#define | SIS5595_BYTE_DATA 0x04 |
#define | SIS5595_WORD_DATA 0x06 |
#define | SIS5595_PROC_CALL 0x08 |
#define | SIS5595_BLOCK_DATA 0x0A |
Functions | |
module_param (force_addr, ushort, 0) | |
MODULE_PARM_DESC (force_addr,"Initialize the base address of the i2c controller") | |
MODULE_DEVICE_TABLE (pci, sis5595_ids) | |
MODULE_AUTHOR ("Frodo Looijaard <[email protected]>") | |
MODULE_DESCRIPTION ("SIS5595 SMBus driver") | |
MODULE_LICENSE ("GPL") | |
module_init (i2c_sis5595_init) | |
module_exit (i2c_sis5595_exit) | |
#define ACPI_BASE 0x90 |
Definition at line 108 of file i2c-sis5595.c.
#define MAX_TIMEOUT 500 |
Definition at line 111 of file i2c-sis5595.c.
#define SIS5595_BLOCK_DATA 0x0A |
Definition at line 119 of file i2c-sis5595.c.
#define SIS5595_BYTE 0x02 |
Definition at line 115 of file i2c-sis5595.c.
#define SIS5595_BYTE_DATA 0x04 |
Definition at line 116 of file i2c-sis5595.c.
#define SIS5595_ENABLE_REG 0x40 |
Definition at line 107 of file i2c-sis5595.c.
#define SIS5595_EXTENT 8 |
Definition at line 88 of file i2c-sis5595.c.
#define SIS5595_PROC_CALL 0x08 |
Definition at line 118 of file i2c-sis5595.c.
#define SIS5595_QUICK 0x00 |
Definition at line 114 of file i2c-sis5595.c.
#define SIS5595_WORD_DATA 0x06 |
Definition at line 117 of file i2c-sis5595.c.
#define SMB_ADDR 0x04 |
Definition at line 94 of file i2c-sis5595.c.
#define SMB_BYTE 0x08 |
Definition at line 98 of file i2c-sis5595.c.
#define SMB_CMD 0x05 |
Definition at line 95 of file i2c-sis5595.c.
#define SMB_CNT 0x07 |
Definition at line 97 of file i2c-sis5595.c.
#define SMB_CTL_HI 0x03 |
Definition at line 93 of file i2c-sis5595.c.
#define SMB_CTL_LO 0x02 |
Definition at line 92 of file i2c-sis5595.c.
#define SMB_DAT 0x39 |
Definition at line 106 of file i2c-sis5595.c.
#define SMB_DB0 0x11 |
Definition at line 100 of file i2c-sis5595.c.
#define SMB_DB1 0x12 |
Definition at line 101 of file i2c-sis5595.c.
#define SMB_DEV 0x10 |
Definition at line 99 of file i2c-sis5595.c.
#define SMB_HAA 0x13 |
Definition at line 102 of file i2c-sis5595.c.
#define SMB_INDEX 0x38 |
Definition at line 105 of file i2c-sis5595.c.
#define SMB_PCNT 0x06 |
Definition at line 96 of file i2c-sis5595.c.
#define SMB_STS_HI 0x01 |
Definition at line 91 of file i2c-sis5595.c.
#define SMB_STS_LO 0x00 |
Definition at line 90 of file i2c-sis5595.c.
MODULE_AUTHOR | ( | "Frodo Looijaard <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
sis5595_ids | |||
) |
module_exit | ( | i2c_sis5595_exit | ) |
module_init | ( | i2c_sis5595_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | force_addr | , |
ushort | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | force_addr | , |
"Initialize the base address of the i2c controller" | |||
) |