Linux Kernel
3.7.1
|
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
Go to the source code of this file.
Data Structures | |
struct | pic32_i2c_platform_data |
Macros | |
#define | PIC32_I2CxCON 0x0000 |
#define | PIC32_I2CCON_ON (1<<15) |
#define | PIC32_I2CCON_ACKDT (1<<5) |
#define | PIC32_I2CCON_ACKEN (1<<4) |
#define | PIC32_I2CCON_RCEN (1<<3) |
#define | PIC32_I2CCON_PEN (1<<2) |
#define | PIC32_I2CCON_RSEN (1<<1) |
#define | PIC32_I2CCON_SEN (1<<0) |
#define | PIC32_I2CxCONCLR 0x0004 |
#define | PIC32_I2CxCONSET 0x0008 |
#define | PIC32_I2CxSTAT 0x0010 |
#define | PIC32_I2CxSTATCLR 0x0014 |
#define | PIC32_I2CSTAT_ACKSTAT (1<<15) |
#define | PIC32_I2CSTAT_TRSTAT (1<<14) |
#define | PIC32_I2CSTAT_BCL (1<<10) |
#define | PIC32_I2CSTAT_IWCOL (1<<7) |
#define | PIC32_I2CSTAT_I2COV (1<<6) |
#define | PIC32_I2CxBRG 0x0040 |
#define | PIC32_I2CxTRN 0x0050 |
#define | PIC32_I2CxRCV 0x0060 |
#define | DELAY() udelay(100) |
#define | __BUFSIZE 80 |
#define | sead3_i2c_platform_suspend NULL |
#define | sead3_i2c_platform_resume NULL |
Functions | |
module_init (sead3_i2c_platform_init) | |
module_exit (sead3_i2c_platform_exit) | |
MODULE_AUTHOR ("Chris Dearman, MIPS Technologies INC.") | |
MODULE_DESCRIPTION ("SEAD3 PIC32 I2C driver") | |
MODULE_LICENSE ("GPL") | |
#define __BUFSIZE 80 |
#define DELAY | ( | ) | udelay(100) |
Definition at line 41 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_ACKDT (1<<5) |
Definition at line 17 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_ACKEN (1<<4) |
Definition at line 18 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_ON (1<<15) |
Definition at line 16 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_PEN (1<<2) |
Definition at line 20 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_RCEN (1<<3) |
Definition at line 19 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_RSEN (1<<1) |
Definition at line 21 of file sead3-i2c-drv.c.
#define PIC32_I2CCON_SEN (1<<0) |
Definition at line 22 of file sead3-i2c-drv.c.
#define PIC32_I2CSTAT_ACKSTAT (1<<15) |
Definition at line 27 of file sead3-i2c-drv.c.
#define PIC32_I2CSTAT_BCL (1<<10) |
Definition at line 29 of file sead3-i2c-drv.c.
#define PIC32_I2CSTAT_I2COV (1<<6) |
Definition at line 31 of file sead3-i2c-drv.c.
#define PIC32_I2CSTAT_IWCOL (1<<7) |
Definition at line 30 of file sead3-i2c-drv.c.
#define PIC32_I2CSTAT_TRSTAT (1<<14) |
Definition at line 28 of file sead3-i2c-drv.c.
#define PIC32_I2CxBRG 0x0040 |
Definition at line 32 of file sead3-i2c-drv.c.
#define PIC32_I2CxCON 0x0000 |
Definition at line 15 of file sead3-i2c-drv.c.
#define PIC32_I2CxCONCLR 0x0004 |
Definition at line 23 of file sead3-i2c-drv.c.
#define PIC32_I2CxCONSET 0x0008 |
Definition at line 24 of file sead3-i2c-drv.c.
#define PIC32_I2CxRCV 0x0060 |
Definition at line 34 of file sead3-i2c-drv.c.
#define PIC32_I2CxSTAT 0x0010 |
Definition at line 25 of file sead3-i2c-drv.c.
#define PIC32_I2CxSTATCLR 0x0014 |
Definition at line 26 of file sead3-i2c-drv.c.
#define PIC32_I2CxTRN 0x0050 |
Definition at line 33 of file sead3-i2c-drv.c.
#define sead3_i2c_platform_resume NULL |
Definition at line 377 of file sead3-i2c-drv.c.
#define sead3_i2c_platform_suspend NULL |
Definition at line 376 of file sead3-i2c-drv.c.
MODULE_AUTHOR | ( | "Chris | Dearman, |
MIPS Technologies INC." | |||
) |
module_exit | ( | sead3_i2c_platform_exit | ) |
module_init | ( | sead3_i2c_platform_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |