Go to the documentation of this file.
38 #define DMA_TX_MODE 0x08
39 #define DMA_RX_MODE 0x04
42 #define IRCC_MASTER 0x07
43 #define IRCC_MASTER_POWERDOWN 0x80
44 #define IRCC_MASTER_RESET 0x40
45 #define IRCC_MASTER_INT_EN 0x20
46 #define IRCC_MASTER_ERROR_RESET 0x10
52 #define IRCC_IIR_ACTIVE_FRAME 0x80
53 #define IRCC_IIR_EOM 0x40
54 #define IRCC_IIR_RAW_MODE 0x20
55 #define IRCC_IIR_FIFO 0x10
59 #define IRCC_IER_ACTIVE_FRAME 0x80
60 #define IRCC_IER_EOM 0x40
61 #define IRCC_IER_RAW_MODE 0x20
62 #define IRCC_IER_FIFO 0x10
66 #define IRCC_LSR_UNDERRUN 0x80
67 #define IRCC_LSR_OVERRUN 0x40
68 #define IRCC_LSR_FRAME_ERROR 0x20
69 #define IRCC_LSR_SIZE_ERROR 0x10
70 #define IRCC_LSR_CRC_ERROR 0x80
71 #define IRCC_LSR_FRAME_ABORT 0x40
74 #define IRCC_LSAR 0x03
75 #define IRCC_LSAR_ADDRESS_MASK 0x07
78 #define IRCC_LCR_A 0x04
79 #define IRCC_LCR_A_FIFO_RESET 0x80
80 #define IRCC_LCR_A_FAST 0x40
81 #define IRCC_LCR_A_GP_DATA 0x20
82 #define IRCC_LCR_A_RAW_TX 0x10
83 #define IRCC_LCR_A_RAW_RX 0x08
84 #define IRCC_LCR_A_ABORT 0x04
85 #define IRCC_LCR_A_DATA_DONE 0x02
88 #define IRCC_LCR_B 0x05
89 #define IRCC_LCR_B_SCE_DISABLED 0x00
90 #define IRCC_LCR_B_SCE_TRANSMIT 0x40
91 #define IRCC_LCR_B_SCE_RECEIVE 0x80
92 #define IRCC_LCR_B_SCE_UNDEFINED 0xc0
93 #define IRCC_LCR_B_SIP_ENABLE 0x20
94 #define IRCC_LCR_B_BRICK_WALL 0x10
98 #define IRCC_BSR_NOT_EMPTY 0x80
99 #define IRCC_BSR_FIFO_FULL 0x40
100 #define IRCC_BSR_TIMEOUT 0x20
104 #define IRCC_FIFO_THRESHOLD 0x02
106 #define IRCC_SCE_CFGA 0x00
107 #define IRCC_CFGA_AUX_IR 0x80
108 #define IRCC_CFGA_HALF_DUPLEX 0x04
109 #define IRCC_CFGA_TX_POLARITY 0x02
110 #define IRCC_CFGA_RX_POLARITY 0x01
112 #define IRCC_CFGA_COM 0x00
113 #define IRCC_SCE_CFGA_BLOCK_CTRL_BITS_MASK 0x87
114 #define IRCC_CFGA_IRDA_SIR_A 0x08
115 #define IRCC_CFGA_ASK_SIR 0x10
116 #define IRCC_CFGA_IRDA_SIR_B 0x18
117 #define IRCC_CFGA_IRDA_HDLC 0x20
118 #define IRCC_CFGA_IRDA_4PPM 0x28
119 #define IRCC_CFGA_CONSUMER 0x30
120 #define IRCC_CFGA_RAW_IR 0x38
121 #define IRCC_CFGA_OTHER 0x40
123 #define IRCC_IR_HDLC 0x04
124 #define IRCC_IR_4PPM 0x01
125 #define IRCC_IR_CONSUMER 0x02
127 #define IRCC_SCE_CFGB 0x01
128 #define IRCC_CFGB_LOOPBACK 0x20
129 #define IRCC_CFGB_LPBCK_TX_CRC 0x10
130 #define IRCC_CFGB_NOWAIT 0x08
131 #define IRCC_CFGB_STRING_MOVE 0x04
132 #define IRCC_CFGB_DMA_BURST 0x02
133 #define IRCC_CFGB_DMA_ENABLE 0x01
135 #define IRCC_CFGB_MUX_COM 0x00
136 #define IRCC_CFGB_MUX_IR 0x40
137 #define IRCC_CFGB_MUX_AUX 0x80
138 #define IRCC_CFGB_MUX_INACTIVE 0xc0
141 #define IRCC_ID_HIGH 0x00
142 #define IRCC_ID_LOW 0x01
143 #define IRCC_CHIP_ID 0x02
144 #define IRCC_VERSION 0x03
145 #define IRCC_INTERFACE 0x04
146 #define IRCC_INTERFACE_DMA_MASK 0x0F
147 #define IRCC_INTERFACE_IRQ_MASK 0xF0
150 #define IRCC_CONTROL 0x00
151 #define IRCC_BOF_COUNT_LO 0x01
152 #define IRCC_BOF_COUNT_HI 0x00
153 #define IRCC_BRICKWALL_CNT_LO 0x02
154 #define IRCC_BRICKWALL_CNT_HI 0x03
155 #define IRCC_TX_SIZE_LO 0x04
156 #define IRCC_TX_SIZE_HI 0x03
157 #define IRCC_RX_SIZE_HI 0x05
158 #define IRCC_RX_SIZE_LO 0x06
160 #define IRCC_1152 0x80
161 #define IRCC_CRC 0x40
164 #define IRCC_ATC 0x00
165 #define IRCC_ATC_nPROGREADY 0x80
166 #define IRCC_ATC_SPEED 0x40
167 #define IRCC_ATC_ENABLE 0x20
168 #define IRCC_ATC_MASK 0xE0
171 #define IRCC_IRHALFDUPLEX_TIMEOUT 0x01
173 #define IRCC_SCE_TX_DELAY_TIMER 0x02
179 #define SMSC_IRCC2_MAX_SIR_SPEED 115200
180 #define SMSC_IRCC2_FIR_CHIP_IO_EXTENT 8
181 #define SMSC_IRCC2_SIR_CHIP_IO_EXTENT 8
182 #define SMSC_IRCC2_FIFO_SIZE 16
183 #define SMSC_IRCC2_FIFO_THRESHOLD 64
185 #define SMSC_IRCC2_RX_BUFF_TRUESIZE 14384
186 #define SMSC_IRCC2_TX_BUFF_TRUESIZE 14384
187 #define SMSC_IRCC2_MIN_TURN_TIME 0x07
188 #define SMSC_IRCC2_WINDOW_SIZE 0x07
190 #define SMSC_IRCC2_HW_TRANSMITTER_TIMEOUT_US 1000
192 #define SMSC_IRCC2_ATC_PROGRAMMING_TIMEOUT_JIFFIES 1