1 #ifndef _LINUX_VFC_I2C_H_
2 #define _LINUX_VFC_I2C_H_
5 #define PIN (0x80000000)
6 #define ESO (0x40000000)
7 #define ES1 (0x20000000)
8 #define ES2 (0x10000000)
9 #define ENI (0x08000000)
10 #define STA (0x04000000)
11 #define STO (0x02000000)
12 #define ACK (0x01000000)
15 #define STS (0x20000000)
16 #define BER (0x10000000)
17 #define LRB (0x08000000)
18 #define AAS (0x04000000)
19 #define LAB (0x02000000)
20 #define BB (0x01000000)
22 #define SEND_I2C_START (PIN | ESO | STA)
23 #define SEND_I2C_STOP (PIN | ESO | STO)
24 #define CLEAR_I2C_BUS (PIN | ESO | ACK)
25 #define NEGATIVE_ACK ((ESO) & ~ACK)
28 #define S0 (PIN | ESO | ES1)
30 #define S2 (PIN | ES1)
31 #define S3 (PIN | ES2)
33 #define ENABLE_SERIAL (PIN | ESO)
34 #define DISABLE_SERIAL (PIN)
37 #define XMIT_LAST_BYTE (1)
38 #define VFC_I2C_ACK_CHECK (1)
39 #define VFC_I2C_NO_ACK_CHECK (0)
41 #endif /* _LINUX_VFC_I2C_H_ */