Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/delay.h>
#include <linux/ioport.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 + ali1535_smba) |
#define | SMBHSTTYP (1 + ali1535_smba) |
#define | SMBHSTPORT (2 + ali1535_smba) |
#define | SMBHSTCMD (7 + ali1535_smba) |
#define | SMBHSTADD (3 + ali1535_smba) |
#define | SMBHSTDAT0 (4 + ali1535_smba) |
#define | SMBHSTDAT1 (5 + ali1535_smba) |
#define | SMBBLKDAT (6 + ali1535_smba) |
#define | SMBCOM 0x004 |
#define | SMBREV 0x008 |
#define | SMBCFG 0x0D1 |
#define | SMBBA 0x0E2 |
#define | SMBHSTCFG 0x0F0 |
#define | SMBCLK 0x0F2 |
#define | MAX_TIMEOUT 500 /* times 1/100 sec */ |
#define | ALI1535_SMB_IOSIZE 32 |
#define | ALI1535_SMB_DEFAULTBASE 0x8040 |
#define | ALI1535_LOCK 0x06 /* dwe */ |
#define | ALI1535_QUICK 0x00 |
#define | ALI1535_BYTE 0x10 |
#define | ALI1535_BYTE_DATA 0x20 |
#define | ALI1535_WORD_DATA 0x30 |
#define | ALI1535_BLOCK_DATA 0x40 |
#define | ALI1535_I2C_READ 0x60 |
#define | ALI1535_DEV10B_EN 0x80 /* Enable 10-bit addressing in */ |
#define | ALI1535_T_OUT 0x08 /* Time-out Command (write) */ |
#define | ALI1535_A_HIGH_BIT9 0x08 /* Bit 9 of 10-bit address in */ |
#define | ALI1535_KILL 0x04 /* Kill Command (write) */ |
#define | ALI1535_A_HIGH_BIT8 0x04 /* Bit 8 of 10-bit address in */ |
#define | ALI1535_D_HI_MASK 0x03 /* Mask for isolating bits 9-8 */ |
#define | ALI1535_STS_IDLE 0x04 |
#define | ALI1535_STS_BUSY 0x08 /* host busy */ |
#define | ALI1535_STS_DONE 0x10 /* transaction complete */ |
#define | ALI1535_STS_DEV 0x20 /* device error */ |
#define | ALI1535_STS_BUSERR 0x40 /* bus error */ |
#define | ALI1535_STS_FAIL 0x80 /* failed bus transaction */ |
#define | ALI1535_STS_ERR 0xE0 /* all the bad error bits */ |
#define | ALI1535_BLOCK_CLR 0x04 /* reset block data index */ |
#define | ALI1535_RD_ADDR 0x01 /* Read/Write Bit in Device */ |
#define | ALI1535_SMBIO_EN 0x04 /* SMB I/O Space enable */ |
Functions | |
MODULE_DEVICE_TABLE (pci, ali1535_ids) | |
module_pci_driver (ali1535_driver) | |
MODULE_AUTHOR ("Frodo Looijaard <[email protected]>, ""Philip Edelbrock <[email protected]>, ""Mark D. Studebaker <[email protected]> ""and Dan Eaton <[email protected]>") | |
MODULE_DESCRIPTION ("ALI1535 SMBus driver") | |
MODULE_LICENSE ("GPL") | |
#define ALI1535_A_HIGH_BIT8 0x04 /* Bit 8 of 10-bit address in */ |
Definition at line 108 of file i2c-ali1535.c.
#define ALI1535_A_HIGH_BIT9 0x08 /* Bit 9 of 10-bit address in */ |
Definition at line 104 of file i2c-ali1535.c.
#define ALI1535_BLOCK_CLR 0x04 /* reset block data index */ |
Definition at line 125 of file i2c-ali1535.c.
#define ALI1535_BLOCK_DATA 0x40 |
Definition at line 98 of file i2c-ali1535.c.
#define ALI1535_BYTE 0x10 |
Definition at line 95 of file i2c-ali1535.c.
#define ALI1535_BYTE_DATA 0x20 |
Definition at line 96 of file i2c-ali1535.c.
#define ALI1535_D_HI_MASK 0x03 /* Mask for isolating bits 9-8 */ |
Definition at line 112 of file i2c-ali1535.c.
#define ALI1535_DEV10B_EN 0x80 /* Enable 10-bit addressing in */ |
Definition at line 101 of file i2c-ali1535.c.
#define ALI1535_I2C_READ 0x60 |
Definition at line 99 of file i2c-ali1535.c.
#define ALI1535_KILL 0x04 /* Kill Command (write) */ |
Definition at line 107 of file i2c-ali1535.c.
#define ALI1535_LOCK 0x06 /* dwe */ |
Definition at line 91 of file i2c-ali1535.c.
#define ALI1535_QUICK 0x00 |
Definition at line 94 of file i2c-ali1535.c.
#define ALI1535_RD_ADDR 0x01 /* Read/Write Bit in Device */ |
Definition at line 128 of file i2c-ali1535.c.
#define ALI1535_SMB_DEFAULTBASE 0x8040 |
Definition at line 88 of file i2c-ali1535.c.
#define ALI1535_SMB_IOSIZE 32 |
Definition at line 86 of file i2c-ali1535.c.
#define ALI1535_SMBIO_EN 0x04 /* SMB I/O Space enable */ |
Definition at line 132 of file i2c-ali1535.c.
#define ALI1535_STS_BUSERR 0x40 /* bus error */ |
Definition at line 121 of file i2c-ali1535.c.
#define ALI1535_STS_BUSY 0x08 /* host busy */ |
Definition at line 118 of file i2c-ali1535.c.
#define ALI1535_STS_DEV 0x20 /* device error */ |
Definition at line 120 of file i2c-ali1535.c.
#define ALI1535_STS_DONE 0x10 /* transaction complete */ |
Definition at line 119 of file i2c-ali1535.c.
#define ALI1535_STS_ERR 0xE0 /* all the bad error bits */ |
Definition at line 123 of file i2c-ali1535.c.
#define ALI1535_STS_FAIL 0x80 /* failed bus transaction */ |
Definition at line 122 of file i2c-ali1535.c.
#define ALI1535_STS_IDLE 0x04 |
Definition at line 117 of file i2c-ali1535.c.
#define ALI1535_T_OUT 0x08 /* Time-out Command (write) */ |
Definition at line 103 of file i2c-ali1535.c.
#define ALI1535_WORD_DATA 0x30 |
Definition at line 97 of file i2c-ali1535.c.
Definition at line 85 of file i2c-ali1535.c.
#define SMBBA 0x0E2 |
Definition at line 80 of file i2c-ali1535.c.
#define SMBBLKDAT (6 + ali1535_smba) |
Definition at line 74 of file i2c-ali1535.c.
#define SMBCFG 0x0D1 |
Definition at line 79 of file i2c-ali1535.c.
#define SMBCLK 0x0F2 |
Definition at line 82 of file i2c-ali1535.c.
#define SMBCOM 0x004 |
Definition at line 77 of file i2c-ali1535.c.
#define SMBHSTADD (3 + ali1535_smba) |
Definition at line 71 of file i2c-ali1535.c.
#define SMBHSTCFG 0x0F0 |
Definition at line 81 of file i2c-ali1535.c.
#define SMBHSTCMD (7 + ali1535_smba) |
Definition at line 70 of file i2c-ali1535.c.
#define SMBHSTDAT0 (4 + ali1535_smba) |
Definition at line 72 of file i2c-ali1535.c.
#define SMBHSTDAT1 (5 + ali1535_smba) |
Definition at line 73 of file i2c-ali1535.c.
#define SMBHSTPORT (2 + ali1535_smba) |
Definition at line 69 of file i2c-ali1535.c.
#define SMBHSTSTS (0 + ali1535_smba) |
Definition at line 67 of file i2c-ali1535.c.
#define SMBHSTTYP (1 + ali1535_smba) |
Definition at line 68 of file i2c-ali1535.c.
#define SMBREV 0x008 |
Definition at line 78 of file i2c-ali1535.c.
MODULE_AUTHOR | ( | "Frodo Looijaard <[email protected]> | , |
""Philip Edelbrock< phil @netroedge.com > | , | ||
""Mark D.Studebaker< mdsxyz123 @yahoo.com >""and Dan Eaton< dan.eaton @rocketlogix.com >" | |||
) |
MODULE_DEVICE_TABLE | ( | pci | , |
ali1535_ids | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_pci_driver | ( | ali1535_driver | ) |