Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
i2c-sis630.c File Reference
#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 SMB_STS   0x80 /* status */
 
#define SMB_EN   0x81 /* status enable */
 
#define SMB_CNT   0x82
 
#define SMBHOST_CNT   0x83
 
#define SMB_ADDR   0x84
 
#define SMB_CMD   0x85
 
#define SMB_PCOUNT   0x86 /* processed count */
 
#define SMB_COUNT   0x87
 
#define SMB_BYTE   0x88 /* ~0x8F data byte field */
 
#define SMBDEV_ADDR   0x90
 
#define SMB_DB0   0x91
 
#define SMB_DB1   0x92
 
#define SMB_SAA   0x93
 
#define SIS630_SMB_IOREGION   20
 
#define SIS630_ACPI_BASE_REG   0x74
 
#define SIS630_BIOS_CTL_REG   0x40
 
#define MAX_TIMEOUT   500
 
#define SIS630_QUICK   0x00
 
#define SIS630_BYTE   0x01
 
#define SIS630_BYTE_DATA   0x02
 
#define SIS630_WORD_DATA   0x03
 
#define SIS630_PCALL   0x04
 
#define SIS630_BLOCK_DATA   0x05
 

Functions

 module_param (high_clock, bool, 0)
 
 MODULE_PARM_DESC (high_clock,"Set Host Master Clock to 56KHz (default 14KHz).")
 
 module_param (force, bool, 0)
 
 MODULE_PARM_DESC (force,"Forcibly enable the SIS630. DANGEROUS!")
 
 MODULE_DEVICE_TABLE (pci, sis630_ids)
 
 module_pci_driver (sis630_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Alexander Malysh <[email protected]>")
 
 MODULE_DESCRIPTION ("SIS630 SMBus driver")
 

Macro Definition Documentation

#define MAX_TIMEOUT   500

Definition at line 83 of file i2c-sis630.c.

#define SIS630_ACPI_BASE_REG   0x74

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

#define SIS630_BIOS_CTL_REG   0x40

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

#define SIS630_BLOCK_DATA   0x05

Definition at line 91 of file i2c-sis630.c.

#define SIS630_BYTE   0x01

Definition at line 87 of file i2c-sis630.c.

#define SIS630_BYTE_DATA   0x02

Definition at line 88 of file i2c-sis630.c.

#define SIS630_PCALL   0x04

Definition at line 90 of file i2c-sis630.c.

#define SIS630_QUICK   0x00

Definition at line 86 of file i2c-sis630.c.

#define SIS630_SMB_IOREGION   20

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

#define SIS630_WORD_DATA   0x03

Definition at line 89 of file i2c-sis630.c.

#define SMB_ADDR   0x84

Definition at line 63 of file i2c-sis630.c.

#define SMB_BYTE   0x88 /* ~0x8F data byte field */

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

#define SMB_CMD   0x85

Definition at line 64 of file i2c-sis630.c.

#define SMB_CNT   0x82

Definition at line 61 of file i2c-sis630.c.

#define SMB_COUNT   0x87

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

#define SMB_DB0   0x91

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

#define SMB_DB1   0x92

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

#define SMB_EN   0x81 /* status enable */

Definition at line 60 of file i2c-sis630.c.

#define SMB_PCOUNT   0x86 /* processed count */

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

#define SMB_SAA   0x93

Definition at line 71 of file i2c-sis630.c.

#define SMB_STS   0x80 /* status */

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

#define SMBDEV_ADDR   0x90

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

#define SMBHOST_CNT   0x83

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

Function Documentation

MODULE_AUTHOR ( "Alexander Malysh <[email protected]>"  )
MODULE_DESCRIPTION ( "SIS630 SMBus driver )
MODULE_DEVICE_TABLE ( pci  ,
sis630_ids   
)
MODULE_LICENSE ( "GPL"  )
module_param ( high_clock  ,
bool  ,
 
)
module_param ( force  ,
bool  ,
 
)
MODULE_PARM_DESC ( high_clock  ,
"Set Host Master Clock to 56KHz (default 14KHz)."   
)
MODULE_PARM_DESC ( force  ,
"Forcibly enable the SIS630. DANGEROUS!"   
)
module_pci_driver ( sis630_driver  )