|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/pci.h>#include <linux/kernel.h>#include <linux/stddef.h>#include <linux/ioport.h>#include <linux/delay.h>#include <linux/i2c.h>#include <linux/init.h>#include <linux/acpi.h>#include <linux/io.h>Go to the source code of this file.
Macros | |
| #define | SMBHSTSTS (0 + ali15x3_smba) |
| #define | SMBHSTCNT (1 + ali15x3_smba) |
| #define | SMBHSTSTART (2 + ali15x3_smba) |
| #define | SMBHSTCMD (7 + ali15x3_smba) |
| #define | SMBHSTADD (3 + ali15x3_smba) |
| #define | SMBHSTDAT0 (4 + ali15x3_smba) |
| #define | SMBHSTDAT1 (5 + ali15x3_smba) |
| #define | SMBBLKDAT (6 + ali15x3_smba) |
| #define | SMBCOM 0x004 |
| #define | SMBBA 0x014 |
| #define | SMBATPC 0x05B /* used to unlock xxxBA registers */ |
| #define | SMBHSTCFG 0x0E0 |
| #define | SMBSLVC 0x0E1 |
| #define | SMBCLK 0x0E2 |
| #define | SMBREV 0x008 |
| #define | MAX_TIMEOUT 200 /* times 1/100 sec */ |
| #define | ALI15X3_SMB_IOSIZE 32 |
| #define | ALI15X3_SMB_DEFAULTBASE 0xE800 |
| #define | ALI15X3_LOCK 0x06 |
| #define | ALI15X3_ABORT 0x02 |
| #define | ALI15X3_T_OUT 0x04 |
| #define | ALI15X3_QUICK 0x00 |
| #define | ALI15X3_BYTE 0x10 |
| #define | ALI15X3_BYTE_DATA 0x20 |
| #define | ALI15X3_WORD_DATA 0x30 |
| #define | ALI15X3_BLOCK_DATA 0x40 |
| #define | ALI15X3_BLOCK_CLR 0x80 |
| #define | ALI15X3_STS_IDLE 0x04 |
| #define | ALI15X3_STS_BUSY 0x08 |
| #define | ALI15X3_STS_DONE 0x10 |
| #define | ALI15X3_STS_DEV 0x20 /* device error */ |
| #define | ALI15X3_STS_COLL 0x40 /* collision or no response */ |
| #define | ALI15X3_STS_TERM 0x80 /* terminated by abort */ |
| #define | ALI15X3_STS_ERR 0xE0 /* all the bad error bits */ |
Functions | |
| module_param (force_addr, ushort, 0) | |
| MODULE_PARM_DESC (force_addr,"Initialize the base address of the i2c controller") | |
| MODULE_DEVICE_TABLE (pci, ali15x3_ids) | |
| module_pci_driver (ali15x3_driver) | |
| MODULE_AUTHOR ("Frodo Looijaard <[email protected]>, ""Philip Edelbrock <[email protected]>, ""and Mark D. Studebaker <[email protected]>") | |
| MODULE_DESCRIPTION ("ALI15X3 SMBus driver") | |
| MODULE_LICENSE ("GPL") | |
| #define ALI15X3_ABORT 0x02 |
Definition at line 105 of file i2c-ali15x3.c.
| #define ALI15X3_BLOCK_CLR 0x80 |
Definition at line 112 of file i2c-ali15x3.c.
| #define ALI15X3_BLOCK_DATA 0x40 |
Definition at line 111 of file i2c-ali15x3.c.
| #define ALI15X3_BYTE 0x10 |
Definition at line 108 of file i2c-ali15x3.c.
| #define ALI15X3_BYTE_DATA 0x20 |
Definition at line 109 of file i2c-ali15x3.c.
| #define ALI15X3_LOCK 0x06 |
Definition at line 102 of file i2c-ali15x3.c.
| #define ALI15X3_QUICK 0x00 |
Definition at line 107 of file i2c-ali15x3.c.
| #define ALI15X3_SMB_DEFAULTBASE 0xE800 |
Definition at line 99 of file i2c-ali15x3.c.
| #define ALI15X3_SMB_IOSIZE 32 |
Definition at line 93 of file i2c-ali15x3.c.
| #define ALI15X3_STS_BUSY 0x08 |
Definition at line 116 of file i2c-ali15x3.c.
| #define ALI15X3_STS_COLL 0x40 /* collision or no response */ |
Definition at line 119 of file i2c-ali15x3.c.
| #define ALI15X3_STS_DEV 0x20 /* device error */ |
Definition at line 118 of file i2c-ali15x3.c.
| #define ALI15X3_STS_DONE 0x10 |
Definition at line 117 of file i2c-ali15x3.c.
| #define ALI15X3_STS_ERR 0xE0 /* all the bad error bits */ |
Definition at line 121 of file i2c-ali15x3.c.
| #define ALI15X3_STS_IDLE 0x04 |
Definition at line 115 of file i2c-ali15x3.c.
| #define ALI15X3_STS_TERM 0x80 /* terminated by abort */ |
Definition at line 120 of file i2c-ali15x3.c.
| #define ALI15X3_T_OUT 0x04 |
Definition at line 106 of file i2c-ali15x3.c.
| #define ALI15X3_WORD_DATA 0x30 |
Definition at line 110 of file i2c-ali15x3.c.
Definition at line 92 of file i2c-ali15x3.c.
| #define SMBATPC 0x05B /* used to unlock xxxBA registers */ |
Definition at line 85 of file i2c-ali15x3.c.
| #define SMBBA 0x014 |
Definition at line 84 of file i2c-ali15x3.c.
| #define SMBBLKDAT (6 + ali15x3_smba) |
Definition at line 80 of file i2c-ali15x3.c.
| #define SMBCLK 0x0E2 |
Definition at line 88 of file i2c-ali15x3.c.
| #define SMBCOM 0x004 |
Definition at line 83 of file i2c-ali15x3.c.
| #define SMBHSTADD (3 + ali15x3_smba) |
Definition at line 77 of file i2c-ali15x3.c.
| #define SMBHSTCFG 0x0E0 |
Definition at line 86 of file i2c-ali15x3.c.
| #define SMBHSTCMD (7 + ali15x3_smba) |
Definition at line 76 of file i2c-ali15x3.c.
| #define SMBHSTCNT (1 + ali15x3_smba) |
Definition at line 74 of file i2c-ali15x3.c.
| #define SMBHSTDAT0 (4 + ali15x3_smba) |
Definition at line 78 of file i2c-ali15x3.c.
| #define SMBHSTDAT1 (5 + ali15x3_smba) |
Definition at line 79 of file i2c-ali15x3.c.
| #define SMBHSTSTART (2 + ali15x3_smba) |
Definition at line 75 of file i2c-ali15x3.c.
| #define SMBHSTSTS (0 + ali15x3_smba) |
Definition at line 73 of file i2c-ali15x3.c.
| #define SMBREV 0x008 |
Definition at line 89 of file i2c-ali15x3.c.
| #define SMBSLVC 0x0E1 |
Definition at line 87 of file i2c-ali15x3.c.
| MODULE_AUTHOR | ( | "Frodo Looijaard <[email protected]> | , |
| ""Philip Edelbrock< phil @netroedge.com > | , | ||
| ""and Mark D.Studebaker< mdsxyz123 @yahoo.com >" | |||
| ) |
| MODULE_DEVICE_TABLE | ( | pci | , |
| ali15x3_ids | |||
| ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | force_addr | , |
| ushort | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | force_addr | , |
| "Initialize the base address of the i2c controller" | |||
| ) |
| module_pci_driver | ( | ali15x3_driver | ) |
1.8.2