Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
i2c-via.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/io.h>

Go to the source code of this file.

Macros

#define PM_CFG_REVID   0x08 /* silicon revision code */
 
#define PM_CFG_IOBASE0   0x20
 
#define PM_CFG_IOBASE1   0x48
 
#define I2C_DIR   (pm_io_base+0x40)
 
#define I2C_OUT   (pm_io_base+0x42)
 
#define I2C_IN   (pm_io_base+0x44)
 
#define I2C_SCL   0x02 /* clock bit in DIR/OUT/IN register */
 
#define I2C_SDA   0x04
 
#define IOSPACE   0x06
 

Functions

 MODULE_DEVICE_TABLE (pci, vt586b_ids)
 
 module_pci_driver (vt586b_driver)
 
 MODULE_AUTHOR ("Kyösti Mälkki <[email protected]>")
 
 MODULE_DESCRIPTION ("i2c for Via vt82c586b southbridge")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define I2C_DIR   (pm_io_base+0x40)

Definition at line 35 of file i2c-via.c.

#define I2C_IN   (pm_io_base+0x44)

Definition at line 37 of file i2c-via.c.

#define I2C_OUT   (pm_io_base+0x42)

Definition at line 36 of file i2c-via.c.

#define I2C_SCL   0x02 /* clock bit in DIR/OUT/IN register */

Definition at line 38 of file i2c-via.c.

#define I2C_SDA   0x04

Definition at line 39 of file i2c-via.c.

#define IOSPACE   0x06

Definition at line 42 of file i2c-via.c.

#define PM_CFG_IOBASE0   0x20

Definition at line 32 of file i2c-via.c.

#define PM_CFG_IOBASE1   0x48

Definition at line 33 of file i2c-via.c.

#define PM_CFG_REVID   0x08 /* silicon revision code */

Definition at line 31 of file i2c-via.c.

Function Documentation

MODULE_AUTHOR ( "Kyösti Mälkki <[email protected]>"  )
MODULE_DESCRIPTION ( "i2c for Via vt82c586b southbridge"  )
MODULE_DEVICE_TABLE ( pci  ,
vt586b_ids   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( vt586b_driver  )