Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i2c-piix4.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/stddef.h>
#include <linux/ioport.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <linux/acpi.h>
#include <linux/io.h>

Go to the source code of this file.

Data Structures

struct  i2c_piix4_adapdata
 

Macros

#define SMBHSTSTS   (0 + piix4_smba)
 
#define SMBHSLVSTS   (1 + piix4_smba)
 
#define SMBHSTCNT   (2 + piix4_smba)
 
#define SMBHSTCMD   (3 + piix4_smba)
 
#define SMBHSTADD   (4 + piix4_smba)
 
#define SMBHSTDAT0   (5 + piix4_smba)
 
#define SMBHSTDAT1   (6 + piix4_smba)
 
#define SMBBLKDAT   (7 + piix4_smba)
 
#define SMBSLVCNT   (8 + piix4_smba)
 
#define SMBSHDWCMD   (9 + piix4_smba)
 
#define SMBSLVEVT   (0xA + piix4_smba)
 
#define SMBSLVDAT   (0xC + piix4_smba)
 
#define SMBIOSIZE   8
 
#define SMBBA   0x090
 
#define SMBHSTCFG   0x0D2
 
#define SMBSLVC   0x0D3
 
#define SMBSHDW1   0x0D4
 
#define SMBSHDW2   0x0D5
 
#define SMBREV   0x0D6
 
#define MAX_TIMEOUT   500
 
#define ENABLE_INT9   0
 
#define PIIX4_QUICK   0x00
 
#define PIIX4_BYTE   0x04
 
#define PIIX4_BYTE_DATA   0x08
 
#define PIIX4_WORD_DATA   0x0C
 
#define PIIX4_BLOCK_DATA   0x14
 

Functions

 module_param (force, int, 0)
 
 MODULE_PARM_DESC (force,"Forcibly enable the PIIX4. DANGEROUS!")
 
 module_param (force_addr, int, 0)
 
 MODULE_PARM_DESC (force_addr,"Forcibly enable the PIIX4 at the given address. ""EXTREMELY DANGEROUS!")
 
 MODULE_DEVICE_TABLE (pci, piix4_ids)
 
 module_pci_driver (piix4_driver)
 
 MODULE_AUTHOR ("Frodo Looijaard <[email protected]> and ""Philip Edelbrock <[email protected]>")
 
 MODULE_DESCRIPTION ("PIIX4 SMBus driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ENABLE_INT9   0

Definition at line 74 of file i2c-piix4.c.

#define MAX_TIMEOUT   500

Definition at line 73 of file i2c-piix4.c.

#define PIIX4_BLOCK_DATA   0x14

Definition at line 81 of file i2c-piix4.c.

#define PIIX4_BYTE   0x04

Definition at line 78 of file i2c-piix4.c.

#define PIIX4_BYTE_DATA   0x08

Definition at line 79 of file i2c-piix4.c.

#define PIIX4_QUICK   0x00

Definition at line 77 of file i2c-piix4.c.

#define PIIX4_WORD_DATA   0x0C

Definition at line 80 of file i2c-piix4.c.

#define SMBBA   0x090

Definition at line 65 of file i2c-piix4.c.

#define SMBBLKDAT   (7 + piix4_smba)

Definition at line 55 of file i2c-piix4.c.

#define SMBHSLVSTS   (1 + piix4_smba)

Definition at line 49 of file i2c-piix4.c.

#define SMBHSTADD   (4 + piix4_smba)

Definition at line 52 of file i2c-piix4.c.

#define SMBHSTCFG   0x0D2

Definition at line 66 of file i2c-piix4.c.

#define SMBHSTCMD   (3 + piix4_smba)

Definition at line 51 of file i2c-piix4.c.

#define SMBHSTCNT   (2 + piix4_smba)

Definition at line 50 of file i2c-piix4.c.

#define SMBHSTDAT0   (5 + piix4_smba)

Definition at line 53 of file i2c-piix4.c.

#define SMBHSTDAT1   (6 + piix4_smba)

Definition at line 54 of file i2c-piix4.c.

#define SMBHSTSTS   (0 + piix4_smba)

Definition at line 48 of file i2c-piix4.c.

#define SMBIOSIZE   8

Definition at line 62 of file i2c-piix4.c.

#define SMBREV   0x0D6

Definition at line 70 of file i2c-piix4.c.

#define SMBSHDW1   0x0D4

Definition at line 68 of file i2c-piix4.c.

#define SMBSHDW2   0x0D5

Definition at line 69 of file i2c-piix4.c.

#define SMBSHDWCMD   (9 + piix4_smba)

Definition at line 57 of file i2c-piix4.c.

#define SMBSLVC   0x0D3

Definition at line 67 of file i2c-piix4.c.

#define SMBSLVCNT   (8 + piix4_smba)

Definition at line 56 of file i2c-piix4.c.

#define SMBSLVDAT   (0xC + piix4_smba)

Definition at line 59 of file i2c-piix4.c.

#define SMBSLVEVT   (0xA + piix4_smba)

Definition at line 58 of file i2c-piix4.c.

Function Documentation

MODULE_AUTHOR ( "Frodo Looijaard <[email protected]> and ""Philip Edelbrock <[email protected]>"  )
MODULE_DESCRIPTION ( "PIIX4 SMBus driver )
MODULE_DEVICE_TABLE ( pci  ,
piix4_ids   
)
MODULE_LICENSE ( "GPL"  )
module_param ( force  ,
int  ,
 
)
module_param ( force_addr  ,
int  ,
 
)
MODULE_PARM_DESC ( force  ,
"Forcibly enable the PIIX4. DANGEROUS!"   
)
MODULE_PARM_DESC ( force_addr  ,
"Forcibly enable the PIIX4 at the given address. ""EXTREMELY DANGEROUS!"   
)
module_pci_driver ( piix4_driver  )