Go to the documentation of this file.
22 #ifndef __I2C_IBM_IIC_H_
23 #define __I2C_IBM_IIC_H_
25 #include <linux/i2c.h>
58 #define CNTL_TCT_MASK 0x30
59 #define CNTL_TCT_SHIFT 4
60 #define CNTL_RPST 0x08
66 #define MDCNTL_FSDB 0x80
67 #define MDCNTL_FMDB 0x40
68 #define MDCNTL_EGC 0x20
69 #define MDCNTL_FSM 0x10
70 #define MDCNTL_ESM 0x08
71 #define MDCNTL_EINT 0x04
72 #define MDCNTL_EUBS 0x02
73 #define MDCNTL_HSCL 0x01
86 #define EXTSTS_IRQP 0x80
87 #define EXTSTS_BCS_MASK 0x70
88 #define EXTSTS_BCS_FREE 0x40
89 #define EXTSTS_IRQD 0x08
90 #define EXTSTS_LA 0x04
91 #define EXTSTS_ICT 0x02
92 #define EXTSTS_XFRA 0x01
95 #define INTRMSK_EIRC 0x80
96 #define INTRMSK_EIRS 0x40
97 #define INTRMSK_EIWC 0x20
98 #define INTRMSK_EIWS 0x10
99 #define INTRMSK_EIHE 0x08
100 #define INTRMSK_EIIC 0x04
101 #define INTRMSK_EITA 0x02
102 #define INTRMSK_EIMTC 0x01
105 #define XFRCNT_MTC_MASK 0x07
108 #define XTCNTLSS_SRC 0x80
109 #define XTCNTLSS_SRS 0x40
110 #define XTCNTLSS_SWC 0x20
111 #define XTCNTLSS_SWS 0x10
112 #define XTCNTLSS_SRST 0x01
115 #define DIRCNTL_SDAC 0x08
116 #define DIRCNTL_SCC 0x04
117 #define DIRCNTL_MSDA 0x02
118 #define DIRCNTL_MSC 0x01
121 #define DIRCTNL_FREE(v) (((v) & 0x0f) == 0x0f)