|
Linux Kernel
3.7.1
|
#include <linux/kernel.h>#include <linux/module.h>#include <linux/i2c.h>#include <linux/init.h>#include <linux/time.h>#include <linux/sched.h>#include <linux/delay.h>#include <linux/errno.h>#include <linux/interrupt.h>#include <linux/i2c-pxa.h>#include <linux/of.h>#include <linux/of_device.h>#include <linux/of_i2c.h>#include <linux/platform_device.h>#include <linux/err.h>#include <linux/clk.h>#include <linux/slab.h>#include <linux/io.h>#include <linux/i2c/pxa-i2c.h>#include <asm/irq.h>Go to the source code of this file.
Data Structures | |
| struct | pxa_reg_layout |
| struct | pxa_i2c |
Macros | |
| #define | ICR_START (1 << 0) /* start bit */ |
| #define | ICR_STOP (1 << 1) /* stop bit */ |
| #define | ICR_ACKNAK (1 << 2) /* send ACK(0) or NAK(1) */ |
| #define | ICR_TB (1 << 3) /* transfer byte bit */ |
| #define | ICR_MA (1 << 4) /* master abort */ |
| #define | ICR_SCLE (1 << 5) /* master clock enable */ |
| #define | ICR_IUE (1 << 6) /* unit enable */ |
| #define | ICR_GCD (1 << 7) /* general call disable */ |
| #define | ICR_ITEIE (1 << 8) /* enable tx interrupts */ |
| #define | ICR_IRFIE (1 << 9) /* enable rx interrupts */ |
| #define | ICR_BEIE (1 << 10) /* enable bus error ints */ |
| #define | ICR_SSDIE (1 << 11) /* slave STOP detected int enable */ |
| #define | ICR_ALDIE (1 << 12) /* enable arbitration interrupt */ |
| #define | ICR_SADIE (1 << 13) /* slave address detected int enable */ |
| #define | ICR_UR (1 << 14) /* unit reset */ |
| #define | ICR_FM (1 << 15) /* fast mode */ |
| #define | ISR_RWM (1 << 0) /* read/write mode */ |
| #define | ISR_ACKNAK (1 << 1) /* ack/nak status */ |
| #define | ISR_UB (1 << 2) /* unit busy */ |
| #define | ISR_IBB (1 << 3) /* bus busy */ |
| #define | ISR_SSD (1 << 4) /* slave stop detected */ |
| #define | ISR_ALD (1 << 5) /* arbitration loss detected */ |
| #define | ISR_ITE (1 << 6) /* tx buffer empty */ |
| #define | ISR_IRF (1 << 7) /* rx buffer full */ |
| #define | ISR_GCAD (1 << 8) /* general call address detected */ |
| #define | ISR_SAD (1 << 9) /* slave address detected */ |
| #define | ISR_BED (1 << 10) /* bus error no ACK/NAK */ |
| #define | _IBMR(i2c) ((i2c)->reg_ibmr) |
| #define | _IDBR(i2c) ((i2c)->reg_idbr) |
| #define | _ICR(i2c) ((i2c)->reg_icr) |
| #define | _ISR(i2c) ((i2c)->reg_isr) |
| #define | _ISAR(i2c) ((i2c)->reg_isar) |
| #define | I2C_PXA_SLAVE_ADDR 0x1 |
| #define | i2c_debug 0 |
| #define | show_state(i2c) do { } while (0) |
| #define | decode_ISR(val) do { } while (0) |
| #define | decode_ICR(val) do { } while (0) |
| #define | i2c_pxa_scream_blue_murder(i2c, why) do { } while (0) |
| #define | i2c_pxa_set_slave(i2c, err) do { } while (0) |
| #define | VALID_INT_SOURCE |
| #define | I2C_PXA_DEV_PM_OPS NULL |
Enumerations | |
| enum | pxa_i2c_types { REGS_PXA2XX, REGS_PXA3XX, REGS_CE4100 } |
Functions | |
| MODULE_DEVICE_TABLE (platform, i2c_pxa_id_table) | |
| MODULE_DEVICE_TABLE (of, i2c_pxa_dt_ids) | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS ("platform:pxa2xx-i2c") | |
| subsys_initcall (i2c_adap_pxa_init) | |
| module_exit (i2c_adap_pxa_exit) | |
| #define i2c_pxa_scream_blue_murder | ( | i2c, | |
| why | |||
| ) | do { } while (0) |
| #define ICR_ALDIE (1 << 12) /* enable arbitration interrupt */ |
| #define ISR_ALD (1 << 5) /* arbitration loss detected */ |
| #define ISR_GCAD (1 << 8) /* general call address detected */ |
| #define VALID_INT_SOURCE |
| enum pxa_i2c_types |
| MODULE_ALIAS | ( | "platform:pxa2xx-i2c" | ) |
| MODULE_DEVICE_TABLE | ( | platform | , |
| i2c_pxa_id_table | |||
| ) |
| MODULE_DEVICE_TABLE | ( | of | , |
| i2c_pxa_dt_ids | |||
| ) |
| module_exit | ( | i2c_adap_pxa_exit | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| subsys_initcall | ( | i2c_adap_pxa_init | ) |
1.8.2