diff options
author | Christian Lamparter <chunkeey@web.de> | 2008-04-08 15:40:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 16:44:45 -0400 |
commit | cfcdf40e52bdaa7622a9d1de62e5451d3427a5c6 (patch) | |
tree | 8f5895cb09d1d0d05a829884df89c1fd43bf5f06 /drivers | |
parent | fb26971058845868f7c45b720636180d14c058e4 (diff) |
drivers/net/wireless/p54/net2280.h: silence checkpatch.pl
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/p54/net2280.h | 736 |
1 files changed, 368 insertions, 368 deletions
diff --git a/drivers/net/wireless/p54/net2280.h b/drivers/net/wireless/p54/net2280.h index 120eb831b287..4915d9d54203 100644 --- a/drivers/net/wireless/p54/net2280.h +++ b/drivers/net/wireless/p54/net2280.h | |||
@@ -37,292 +37,292 @@ | |||
37 | 37 | ||
38 | /* main registers, BAR0 + 0x0000 */ | 38 | /* main registers, BAR0 + 0x0000 */ |
39 | struct net2280_regs { | 39 | struct net2280_regs { |
40 | // offset 0x0000 | 40 | /* offset 0x0000 */ |
41 | __le32 devinit; | 41 | __le32 devinit; |
42 | #define LOCAL_CLOCK_FREQUENCY 8 | 42 | #define LOCAL_CLOCK_FREQUENCY 8 |
43 | #define FORCE_PCI_RESET 7 | 43 | #define FORCE_PCI_RESET 7 |
44 | #define PCI_ID 6 | 44 | #define PCI_ID 6 |
45 | #define PCI_ENABLE 5 | 45 | #define PCI_ENABLE 5 |
46 | #define FIFO_SOFT_RESET 4 | 46 | #define FIFO_SOFT_RESET 4 |
47 | #define CFG_SOFT_RESET 3 | 47 | #define CFG_SOFT_RESET 3 |
48 | #define PCI_SOFT_RESET 2 | 48 | #define PCI_SOFT_RESET 2 |
49 | #define USB_SOFT_RESET 1 | 49 | #define USB_SOFT_RESET 1 |
50 | #define M8051_RESET 0 | 50 | #define M8051_RESET 0 |
51 | __le32 eectl; | 51 | __le32 eectl; |
52 | #define EEPROM_ADDRESS_WIDTH 23 | 52 | #define EEPROM_ADDRESS_WIDTH 23 |
53 | #define EEPROM_CHIP_SELECT_ACTIVE 22 | 53 | #define EEPROM_CHIP_SELECT_ACTIVE 22 |
54 | #define EEPROM_PRESENT 21 | 54 | #define EEPROM_PRESENT 21 |
55 | #define EEPROM_VALID 20 | 55 | #define EEPROM_VALID 20 |
56 | #define EEPROM_BUSY 19 | 56 | #define EEPROM_BUSY 19 |
57 | #define EEPROM_CHIP_SELECT_ENABLE 18 | 57 | #define EEPROM_CHIP_SELECT_ENABLE 18 |
58 | #define EEPROM_BYTE_READ_START 17 | 58 | #define EEPROM_BYTE_READ_START 17 |
59 | #define EEPROM_BYTE_WRITE_START 16 | 59 | #define EEPROM_BYTE_WRITE_START 16 |
60 | #define EEPROM_READ_DATA 8 | 60 | #define EEPROM_READ_DATA 8 |
61 | #define EEPROM_WRITE_DATA 0 | 61 | #define EEPROM_WRITE_DATA 0 |
62 | __le32 eeclkfreq; | 62 | __le32 eeclkfreq; |
63 | u32 _unused0; | 63 | u32 _unused0; |
64 | // offset 0x0010 | 64 | /* offset 0x0010 */ |
65 | 65 | ||
66 | __le32 pciirqenb0; /* interrupt PCI master ... */ | 66 | __le32 pciirqenb0; /* interrupt PCI master ... */ |
67 | #define SETUP_PACKET_INTERRUPT_ENABLE 7 | 67 | #define SETUP_PACKET_INTERRUPT_ENABLE 7 |
68 | #define ENDPOINT_F_INTERRUPT_ENABLE 6 | 68 | #define ENDPOINT_F_INTERRUPT_ENABLE 6 |
69 | #define ENDPOINT_E_INTERRUPT_ENABLE 5 | 69 | #define ENDPOINT_E_INTERRUPT_ENABLE 5 |
70 | #define ENDPOINT_D_INTERRUPT_ENABLE 4 | 70 | #define ENDPOINT_D_INTERRUPT_ENABLE 4 |
71 | #define ENDPOINT_C_INTERRUPT_ENABLE 3 | 71 | #define ENDPOINT_C_INTERRUPT_ENABLE 3 |
72 | #define ENDPOINT_B_INTERRUPT_ENABLE 2 | 72 | #define ENDPOINT_B_INTERRUPT_ENABLE 2 |
73 | #define ENDPOINT_A_INTERRUPT_ENABLE 1 | 73 | #define ENDPOINT_A_INTERRUPT_ENABLE 1 |
74 | #define ENDPOINT_0_INTERRUPT_ENABLE 0 | 74 | #define ENDPOINT_0_INTERRUPT_ENABLE 0 |
75 | __le32 pciirqenb1; | 75 | __le32 pciirqenb1; |
76 | #define PCI_INTERRUPT_ENABLE 31 | 76 | #define PCI_INTERRUPT_ENABLE 31 |
77 | #define POWER_STATE_CHANGE_INTERRUPT_ENABLE 27 | 77 | #define POWER_STATE_CHANGE_INTERRUPT_ENABLE 27 |
78 | #define PCI_ARBITER_TIMEOUT_INTERRUPT_ENABLE 26 | 78 | #define PCI_ARBITER_TIMEOUT_INTERRUPT_ENABLE 26 |
79 | #define PCI_PARITY_ERROR_INTERRUPT_ENABLE 25 | 79 | #define PCI_PARITY_ERROR_INTERRUPT_ENABLE 25 |
80 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT_ENABLE 20 | 80 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT_ENABLE 20 |
81 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT_ENABLE 19 | 81 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT_ENABLE 19 |
82 | #define PCI_TARGET_ABORT_ASSERTED_INTERRUPT_ENABLE 18 | 82 | #define PCI_TARGET_ABORT_ASSERTED_INTERRUPT_ENABLE 18 |
83 | #define PCI_RETRY_ABORT_INTERRUPT_ENABLE 17 | 83 | #define PCI_RETRY_ABORT_INTERRUPT_ENABLE 17 |
84 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT_ENABLE 16 | 84 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT_ENABLE 16 |
85 | #define GPIO_INTERRUPT_ENABLE 13 | 85 | #define GPIO_INTERRUPT_ENABLE 13 |
86 | #define DMA_D_INTERRUPT_ENABLE 12 | 86 | #define DMA_D_INTERRUPT_ENABLE 12 |
87 | #define DMA_C_INTERRUPT_ENABLE 11 | 87 | #define DMA_C_INTERRUPT_ENABLE 11 |
88 | #define DMA_B_INTERRUPT_ENABLE 10 | 88 | #define DMA_B_INTERRUPT_ENABLE 10 |
89 | #define DMA_A_INTERRUPT_ENABLE 9 | 89 | #define DMA_A_INTERRUPT_ENABLE 9 |
90 | #define EEPROM_DONE_INTERRUPT_ENABLE 8 | 90 | #define EEPROM_DONE_INTERRUPT_ENABLE 8 |
91 | #define VBUS_INTERRUPT_ENABLE 7 | 91 | #define VBUS_INTERRUPT_ENABLE 7 |
92 | #define CONTROL_STATUS_INTERRUPT_ENABLE 6 | 92 | #define CONTROL_STATUS_INTERRUPT_ENABLE 6 |
93 | #define ROOT_PORT_RESET_INTERRUPT_ENABLE 4 | 93 | #define ROOT_PORT_RESET_INTERRUPT_ENABLE 4 |
94 | #define SUSPEND_REQUEST_INTERRUPT_ENABLE 3 | 94 | #define SUSPEND_REQUEST_INTERRUPT_ENABLE 3 |
95 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT_ENABLE 2 | 95 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT_ENABLE 2 |
96 | #define RESUME_INTERRUPT_ENABLE 1 | 96 | #define RESUME_INTERRUPT_ENABLE 1 |
97 | #define SOF_INTERRUPT_ENABLE 0 | 97 | #define SOF_INTERRUPT_ENABLE 0 |
98 | __le32 cpu_irqenb0; /* ... or onboard 8051 */ | 98 | __le32 cpu_irqenb0; /* ... or onboard 8051 */ |
99 | #define SETUP_PACKET_INTERRUPT_ENABLE 7 | 99 | #define SETUP_PACKET_INTERRUPT_ENABLE 7 |
100 | #define ENDPOINT_F_INTERRUPT_ENABLE 6 | 100 | #define ENDPOINT_F_INTERRUPT_ENABLE 6 |
101 | #define ENDPOINT_E_INTERRUPT_ENABLE 5 | 101 | #define ENDPOINT_E_INTERRUPT_ENABLE 5 |
102 | #define ENDPOINT_D_INTERRUPT_ENABLE 4 | 102 | #define ENDPOINT_D_INTERRUPT_ENABLE 4 |
103 | #define ENDPOINT_C_INTERRUPT_ENABLE 3 | 103 | #define ENDPOINT_C_INTERRUPT_ENABLE 3 |
104 | #define ENDPOINT_B_INTERRUPT_ENABLE 2 | 104 | #define ENDPOINT_B_INTERRUPT_ENABLE 2 |
105 | #define ENDPOINT_A_INTERRUPT_ENABLE 1 | 105 | #define ENDPOINT_A_INTERRUPT_ENABLE 1 |
106 | #define ENDPOINT_0_INTERRUPT_ENABLE 0 | 106 | #define ENDPOINT_0_INTERRUPT_ENABLE 0 |
107 | __le32 cpu_irqenb1; | 107 | __le32 cpu_irqenb1; |
108 | #define CPU_INTERRUPT_ENABLE 31 | 108 | #define CPU_INTERRUPT_ENABLE 31 |
109 | #define POWER_STATE_CHANGE_INTERRUPT_ENABLE 27 | 109 | #define POWER_STATE_CHANGE_INTERRUPT_ENABLE 27 |
110 | #define PCI_ARBITER_TIMEOUT_INTERRUPT_ENABLE 26 | 110 | #define PCI_ARBITER_TIMEOUT_INTERRUPT_ENABLE 26 |
111 | #define PCI_PARITY_ERROR_INTERRUPT_ENABLE 25 | 111 | #define PCI_PARITY_ERROR_INTERRUPT_ENABLE 25 |
112 | #define PCI_INTA_INTERRUPT_ENABLE 24 | 112 | #define PCI_INTA_INTERRUPT_ENABLE 24 |
113 | #define PCI_PME_INTERRUPT_ENABLE 23 | 113 | #define PCI_PME_INTERRUPT_ENABLE 23 |
114 | #define PCI_SERR_INTERRUPT_ENABLE 22 | 114 | #define PCI_SERR_INTERRUPT_ENABLE 22 |
115 | #define PCI_PERR_INTERRUPT_ENABLE 21 | 115 | #define PCI_PERR_INTERRUPT_ENABLE 21 |
116 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT_ENABLE 20 | 116 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT_ENABLE 20 |
117 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT_ENABLE 19 | 117 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT_ENABLE 19 |
118 | #define PCI_RETRY_ABORT_INTERRUPT_ENABLE 17 | 118 | #define PCI_RETRY_ABORT_INTERRUPT_ENABLE 17 |
119 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT_ENABLE 16 | 119 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT_ENABLE 16 |
120 | #define GPIO_INTERRUPT_ENABLE 13 | 120 | #define GPIO_INTERRUPT_ENABLE 13 |
121 | #define DMA_D_INTERRUPT_ENABLE 12 | 121 | #define DMA_D_INTERRUPT_ENABLE 12 |
122 | #define DMA_C_INTERRUPT_ENABLE 11 | 122 | #define DMA_C_INTERRUPT_ENABLE 11 |
123 | #define DMA_B_INTERRUPT_ENABLE 10 | 123 | #define DMA_B_INTERRUPT_ENABLE 10 |
124 | #define DMA_A_INTERRUPT_ENABLE 9 | 124 | #define DMA_A_INTERRUPT_ENABLE 9 |
125 | #define EEPROM_DONE_INTERRUPT_ENABLE 8 | 125 | #define EEPROM_DONE_INTERRUPT_ENABLE 8 |
126 | #define VBUS_INTERRUPT_ENABLE 7 | 126 | #define VBUS_INTERRUPT_ENABLE 7 |
127 | #define CONTROL_STATUS_INTERRUPT_ENABLE 6 | 127 | #define CONTROL_STATUS_INTERRUPT_ENABLE 6 |
128 | #define ROOT_PORT_RESET_INTERRUPT_ENABLE 4 | 128 | #define ROOT_PORT_RESET_INTERRUPT_ENABLE 4 |
129 | #define SUSPEND_REQUEST_INTERRUPT_ENABLE 3 | 129 | #define SUSPEND_REQUEST_INTERRUPT_ENABLE 3 |
130 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT_ENABLE 2 | 130 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT_ENABLE 2 |
131 | #define RESUME_INTERRUPT_ENABLE 1 | 131 | #define RESUME_INTERRUPT_ENABLE 1 |
132 | #define SOF_INTERRUPT_ENABLE 0 | 132 | #define SOF_INTERRUPT_ENABLE 0 |
133 | 133 | ||
134 | // offset 0x0020 | 134 | /* offset 0x0020 */ |
135 | u32 _unused1; | 135 | u32 _unused1; |
136 | __le32 usbirqenb1; | 136 | __le32 usbirqenb1; |
137 | #define USB_INTERRUPT_ENABLE 31 | 137 | #define USB_INTERRUPT_ENABLE 31 |
138 | #define POWER_STATE_CHANGE_INTERRUPT_ENABLE 27 | 138 | #define POWER_STATE_CHANGE_INTERRUPT_ENABLE 27 |
139 | #define PCI_ARBITER_TIMEOUT_INTERRUPT_ENABLE 26 | 139 | #define PCI_ARBITER_TIMEOUT_INTERRUPT_ENABLE 26 |
140 | #define PCI_PARITY_ERROR_INTERRUPT_ENABLE 25 | 140 | #define PCI_PARITY_ERROR_INTERRUPT_ENABLE 25 |
141 | #define PCI_INTA_INTERRUPT_ENABLE 24 | 141 | #define PCI_INTA_INTERRUPT_ENABLE 24 |
142 | #define PCI_PME_INTERRUPT_ENABLE 23 | 142 | #define PCI_PME_INTERRUPT_ENABLE 23 |
143 | #define PCI_SERR_INTERRUPT_ENABLE 22 | 143 | #define PCI_SERR_INTERRUPT_ENABLE 22 |
144 | #define PCI_PERR_INTERRUPT_ENABLE 21 | 144 | #define PCI_PERR_INTERRUPT_ENABLE 21 |
145 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT_ENABLE 20 | 145 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT_ENABLE 20 |
146 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT_ENABLE 19 | 146 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT_ENABLE 19 |
147 | #define PCI_RETRY_ABORT_INTERRUPT_ENABLE 17 | 147 | #define PCI_RETRY_ABORT_INTERRUPT_ENABLE 17 |
148 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT_ENABLE 16 | 148 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT_ENABLE 16 |
149 | #define GPIO_INTERRUPT_ENABLE 13 | 149 | #define GPIO_INTERRUPT_ENABLE 13 |
150 | #define DMA_D_INTERRUPT_ENABLE 12 | 150 | #define DMA_D_INTERRUPT_ENABLE 12 |
151 | #define DMA_C_INTERRUPT_ENABLE 11 | 151 | #define DMA_C_INTERRUPT_ENABLE 11 |
152 | #define DMA_B_INTERRUPT_ENABLE 10 | 152 | #define DMA_B_INTERRUPT_ENABLE 10 |
153 | #define DMA_A_INTERRUPT_ENABLE 9 | 153 | #define DMA_A_INTERRUPT_ENABLE 9 |
154 | #define EEPROM_DONE_INTERRUPT_ENABLE 8 | 154 | #define EEPROM_DONE_INTERRUPT_ENABLE 8 |
155 | #define VBUS_INTERRUPT_ENABLE 7 | 155 | #define VBUS_INTERRUPT_ENABLE 7 |
156 | #define CONTROL_STATUS_INTERRUPT_ENABLE 6 | 156 | #define CONTROL_STATUS_INTERRUPT_ENABLE 6 |
157 | #define ROOT_PORT_RESET_INTERRUPT_ENABLE 4 | 157 | #define ROOT_PORT_RESET_INTERRUPT_ENABLE 4 |
158 | #define SUSPEND_REQUEST_INTERRUPT_ENABLE 3 | 158 | #define SUSPEND_REQUEST_INTERRUPT_ENABLE 3 |
159 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT_ENABLE 2 | 159 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT_ENABLE 2 |
160 | #define RESUME_INTERRUPT_ENABLE 1 | 160 | #define RESUME_INTERRUPT_ENABLE 1 |
161 | #define SOF_INTERRUPT_ENABLE 0 | 161 | #define SOF_INTERRUPT_ENABLE 0 |
162 | __le32 irqstat0; | 162 | __le32 irqstat0; |
163 | #define INTA_ASSERTED 12 | 163 | #define INTA_ASSERTED 12 |
164 | #define SETUP_PACKET_INTERRUPT 7 | 164 | #define SETUP_PACKET_INTERRUPT 7 |
165 | #define ENDPOINT_F_INTERRUPT 6 | 165 | #define ENDPOINT_F_INTERRUPT 6 |
166 | #define ENDPOINT_E_INTERRUPT 5 | 166 | #define ENDPOINT_E_INTERRUPT 5 |
167 | #define ENDPOINT_D_INTERRUPT 4 | 167 | #define ENDPOINT_D_INTERRUPT 4 |
168 | #define ENDPOINT_C_INTERRUPT 3 | 168 | #define ENDPOINT_C_INTERRUPT 3 |
169 | #define ENDPOINT_B_INTERRUPT 2 | 169 | #define ENDPOINT_B_INTERRUPT 2 |
170 | #define ENDPOINT_A_INTERRUPT 1 | 170 | #define ENDPOINT_A_INTERRUPT 1 |
171 | #define ENDPOINT_0_INTERRUPT 0 | 171 | #define ENDPOINT_0_INTERRUPT 0 |
172 | __le32 irqstat1; | 172 | __le32 irqstat1; |
173 | #define POWER_STATE_CHANGE_INTERRUPT 27 | 173 | #define POWER_STATE_CHANGE_INTERRUPT 27 |
174 | #define PCI_ARBITER_TIMEOUT_INTERRUPT 26 | 174 | #define PCI_ARBITER_TIMEOUT_INTERRUPT 26 |
175 | #define PCI_PARITY_ERROR_INTERRUPT 25 | 175 | #define PCI_PARITY_ERROR_INTERRUPT 25 |
176 | #define PCI_INTA_INTERRUPT 24 | 176 | #define PCI_INTA_INTERRUPT 24 |
177 | #define PCI_PME_INTERRUPT 23 | 177 | #define PCI_PME_INTERRUPT 23 |
178 | #define PCI_SERR_INTERRUPT 22 | 178 | #define PCI_SERR_INTERRUPT 22 |
179 | #define PCI_PERR_INTERRUPT 21 | 179 | #define PCI_PERR_INTERRUPT 21 |
180 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT 20 | 180 | #define PCI_MASTER_ABORT_RECEIVED_INTERRUPT 20 |
181 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT 19 | 181 | #define PCI_TARGET_ABORT_RECEIVED_INTERRUPT 19 |
182 | #define PCI_RETRY_ABORT_INTERRUPT 17 | 182 | #define PCI_RETRY_ABORT_INTERRUPT 17 |
183 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT 16 | 183 | #define PCI_MASTER_CYCLE_DONE_INTERRUPT 16 |
184 | #define GPIO_INTERRUPT 13 | 184 | #define GPIO_INTERRUPT 13 |
185 | #define DMA_D_INTERRUPT 12 | 185 | #define DMA_D_INTERRUPT 12 |
186 | #define DMA_C_INTERRUPT 11 | 186 | #define DMA_C_INTERRUPT 11 |
187 | #define DMA_B_INTERRUPT 10 | 187 | #define DMA_B_INTERRUPT 10 |
188 | #define DMA_A_INTERRUPT 9 | 188 | #define DMA_A_INTERRUPT 9 |
189 | #define EEPROM_DONE_INTERRUPT 8 | 189 | #define EEPROM_DONE_INTERRUPT 8 |
190 | #define VBUS_INTERRUPT 7 | 190 | #define VBUS_INTERRUPT 7 |
191 | #define CONTROL_STATUS_INTERRUPT 6 | 191 | #define CONTROL_STATUS_INTERRUPT 6 |
192 | #define ROOT_PORT_RESET_INTERRUPT 4 | 192 | #define ROOT_PORT_RESET_INTERRUPT 4 |
193 | #define SUSPEND_REQUEST_INTERRUPT 3 | 193 | #define SUSPEND_REQUEST_INTERRUPT 3 |
194 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT 2 | 194 | #define SUSPEND_REQUEST_CHANGE_INTERRUPT 2 |
195 | #define RESUME_INTERRUPT 1 | 195 | #define RESUME_INTERRUPT 1 |
196 | #define SOF_INTERRUPT 0 | 196 | #define SOF_INTERRUPT 0 |
197 | // offset 0x0030 | 197 | /* offset 0x0030 */ |
198 | __le32 idxaddr; | 198 | __le32 idxaddr; |
199 | __le32 idxdata; | 199 | __le32 idxdata; |
200 | __le32 fifoctl; | 200 | __le32 fifoctl; |
201 | #define PCI_BASE2_RANGE 16 | 201 | #define PCI_BASE2_RANGE 16 |
202 | #define IGNORE_FIFO_AVAILABILITY 3 | 202 | #define IGNORE_FIFO_AVAILABILITY 3 |
203 | #define PCI_BASE2_SELECT 2 | 203 | #define PCI_BASE2_SELECT 2 |
204 | #define FIFO_CONFIGURATION_SELECT 0 | 204 | #define FIFO_CONFIGURATION_SELECT 0 |
205 | u32 _unused2; | 205 | u32 _unused2; |
206 | // offset 0x0040 | 206 | /* offset 0x0040 */ |
207 | __le32 memaddr; | 207 | __le32 memaddr; |
208 | #define START 28 | 208 | #define START 28 |
209 | #define DIRECTION 27 | 209 | #define DIRECTION 27 |
210 | #define FIFO_DIAGNOSTIC_SELECT 24 | 210 | #define FIFO_DIAGNOSTIC_SELECT 24 |
211 | #define MEMORY_ADDRESS 0 | 211 | #define MEMORY_ADDRESS 0 |
212 | __le32 memdata0; | 212 | __le32 memdata0; |
213 | __le32 memdata1; | 213 | __le32 memdata1; |
214 | u32 _unused3; | 214 | u32 _unused3; |
215 | // offset 0x0050 | 215 | /* offset 0x0050 */ |
216 | __le32 gpioctl; | 216 | __le32 gpioctl; |
217 | #define GPIO3_LED_SELECT 12 | 217 | #define GPIO3_LED_SELECT 12 |
218 | #define GPIO3_INTERRUPT_ENABLE 11 | 218 | #define GPIO3_INTERRUPT_ENABLE 11 |
219 | #define GPIO2_INTERRUPT_ENABLE 10 | 219 | #define GPIO2_INTERRUPT_ENABLE 10 |
220 | #define GPIO1_INTERRUPT_ENABLE 9 | 220 | #define GPIO1_INTERRUPT_ENABLE 9 |
221 | #define GPIO0_INTERRUPT_ENABLE 8 | 221 | #define GPIO0_INTERRUPT_ENABLE 8 |
222 | #define GPIO3_OUTPUT_ENABLE 7 | 222 | #define GPIO3_OUTPUT_ENABLE 7 |
223 | #define GPIO2_OUTPUT_ENABLE 6 | 223 | #define GPIO2_OUTPUT_ENABLE 6 |
224 | #define GPIO1_OUTPUT_ENABLE 5 | 224 | #define GPIO1_OUTPUT_ENABLE 5 |
225 | #define GPIO0_OUTPUT_ENABLE 4 | 225 | #define GPIO0_OUTPUT_ENABLE 4 |
226 | #define GPIO3_DATA 3 | 226 | #define GPIO3_DATA 3 |
227 | #define GPIO2_DATA 2 | 227 | #define GPIO2_DATA 2 |
228 | #define GPIO1_DATA 1 | 228 | #define GPIO1_DATA 1 |
229 | #define GPIO0_DATA 0 | 229 | #define GPIO0_DATA 0 |
230 | __le32 gpiostat; | 230 | __le32 gpiostat; |
231 | #define GPIO3_INTERRUPT 3 | 231 | #define GPIO3_INTERRUPT 3 |
232 | #define GPIO2_INTERRUPT 2 | 232 | #define GPIO2_INTERRUPT 2 |
233 | #define GPIO1_INTERRUPT 1 | 233 | #define GPIO1_INTERRUPT 1 |
234 | #define GPIO0_INTERRUPT 0 | 234 | #define GPIO0_INTERRUPT 0 |
235 | } __attribute__ ((packed)); | 235 | } __attribute__ ((packed)); |
236 | 236 | ||
237 | /* usb control, BAR0 + 0x0080 */ | 237 | /* usb control, BAR0 + 0x0080 */ |
238 | struct net2280_usb_regs { | 238 | struct net2280_usb_regs { |
239 | // offset 0x0080 | 239 | /* offset 0x0080 */ |
240 | __le32 stdrsp; | 240 | __le32 stdrsp; |
241 | #define STALL_UNSUPPORTED_REQUESTS 31 | 241 | #define STALL_UNSUPPORTED_REQUESTS 31 |
242 | #define SET_TEST_MODE 16 | 242 | #define SET_TEST_MODE 16 |
243 | #define GET_OTHER_SPEED_CONFIGURATION 15 | 243 | #define GET_OTHER_SPEED_CONFIGURATION 15 |
244 | #define GET_DEVICE_QUALIFIER 14 | 244 | #define GET_DEVICE_QUALIFIER 14 |
245 | #define SET_ADDRESS 13 | 245 | #define SET_ADDRESS 13 |
246 | #define ENDPOINT_SET_CLEAR_HALT 12 | 246 | #define ENDPOINT_SET_CLEAR_HALT 12 |
247 | #define DEVICE_SET_CLEAR_DEVICE_REMOTE_WAKEUP 11 | 247 | #define DEVICE_SET_CLEAR_DEVICE_REMOTE_WAKEUP 11 |
248 | #define GET_STRING_DESCRIPTOR_2 10 | 248 | #define GET_STRING_DESCRIPTOR_2 10 |
249 | #define GET_STRING_DESCRIPTOR_1 9 | 249 | #define GET_STRING_DESCRIPTOR_1 9 |
250 | #define GET_STRING_DESCRIPTOR_0 8 | 250 | #define GET_STRING_DESCRIPTOR_0 8 |
251 | #define GET_SET_INTERFACE 6 | 251 | #define GET_SET_INTERFACE 6 |
252 | #define GET_SET_CONFIGURATION 5 | 252 | #define GET_SET_CONFIGURATION 5 |
253 | #define GET_CONFIGURATION_DESCRIPTOR 4 | 253 | #define GET_CONFIGURATION_DESCRIPTOR 4 |
254 | #define GET_DEVICE_DESCRIPTOR 3 | 254 | #define GET_DEVICE_DESCRIPTOR 3 |
255 | #define GET_ENDPOINT_STATUS 2 | 255 | #define GET_ENDPOINT_STATUS 2 |
256 | #define GET_INTERFACE_STATUS 1 | 256 | #define GET_INTERFACE_STATUS 1 |
257 | #define GET_DEVICE_STATUS 0 | 257 | #define GET_DEVICE_STATUS 0 |
258 | __le32 prodvendid; | 258 | __le32 prodvendid; |
259 | #define PRODUCT_ID 16 | 259 | #define PRODUCT_ID 16 |
260 | #define VENDOR_ID 0 | 260 | #define VENDOR_ID 0 |
261 | __le32 relnum; | 261 | __le32 relnum; |
262 | __le32 usbctl; | 262 | __le32 usbctl; |
263 | #define SERIAL_NUMBER_INDEX 16 | 263 | #define SERIAL_NUMBER_INDEX 16 |
264 | #define PRODUCT_ID_STRING_ENABLE 13 | 264 | #define PRODUCT_ID_STRING_ENABLE 13 |
265 | #define VENDOR_ID_STRING_ENABLE 12 | 265 | #define VENDOR_ID_STRING_ENABLE 12 |
266 | #define USB_ROOT_PORT_WAKEUP_ENABLE 11 | 266 | #define USB_ROOT_PORT_WAKEUP_ENABLE 11 |
267 | #define VBUS_PIN 10 | 267 | #define VBUS_PIN 10 |
268 | #define TIMED_DISCONNECT 9 | 268 | #define TIMED_DISCONNECT 9 |
269 | #define SUSPEND_IMMEDIATELY 7 | 269 | #define SUSPEND_IMMEDIATELY 7 |
270 | #define SELF_POWERED_USB_DEVICE 6 | 270 | #define SELF_POWERED_USB_DEVICE 6 |
271 | #define REMOTE_WAKEUP_SUPPORT 5 | 271 | #define REMOTE_WAKEUP_SUPPORT 5 |
272 | #define PME_POLARITY 4 | 272 | #define PME_POLARITY 4 |
273 | #define USB_DETECT_ENABLE 3 | 273 | #define USB_DETECT_ENABLE 3 |
274 | #define PME_WAKEUP_ENABLE 2 | 274 | #define PME_WAKEUP_ENABLE 2 |
275 | #define DEVICE_REMOTE_WAKEUP_ENABLE 1 | 275 | #define DEVICE_REMOTE_WAKEUP_ENABLE 1 |
276 | #define SELF_POWERED_STATUS 0 | 276 | #define SELF_POWERED_STATUS 0 |
277 | // offset 0x0090 | 277 | /* offset 0x0090 */ |
278 | __le32 usbstat; | 278 | __le32 usbstat; |
279 | #define HIGH_SPEED 7 | 279 | #define HIGH_SPEED 7 |
280 | #define FULL_SPEED 6 | 280 | #define FULL_SPEED 6 |
281 | #define GENERATE_RESUME 5 | 281 | #define GENERATE_RESUME 5 |
282 | #define GENERATE_DEVICE_REMOTE_WAKEUP 4 | 282 | #define GENERATE_DEVICE_REMOTE_WAKEUP 4 |
283 | __le32 xcvrdiag; | 283 | __le32 xcvrdiag; |
284 | #define FORCE_HIGH_SPEED_MODE 31 | 284 | #define FORCE_HIGH_SPEED_MODE 31 |
285 | #define FORCE_FULL_SPEED_MODE 30 | 285 | #define FORCE_FULL_SPEED_MODE 30 |
286 | #define USB_TEST_MODE 24 | 286 | #define USB_TEST_MODE 24 |
287 | #define LINE_STATE 16 | 287 | #define LINE_STATE 16 |
288 | #define TRANSCEIVER_OPERATION_MODE 2 | 288 | #define TRANSCEIVER_OPERATION_MODE 2 |
289 | #define TRANSCEIVER_SELECT 1 | 289 | #define TRANSCEIVER_SELECT 1 |
290 | #define TERMINATION_SELECT 0 | 290 | #define TERMINATION_SELECT 0 |
291 | __le32 setup0123; | 291 | __le32 setup0123; |
292 | __le32 setup4567; | 292 | __le32 setup4567; |
293 | // offset 0x0090 | 293 | /* offset 0x0090 */ |
294 | u32 _unused0; | 294 | u32 _unused0; |
295 | __le32 ouraddr; | 295 | __le32 ouraddr; |
296 | #define FORCE_IMMEDIATE 7 | 296 | #define FORCE_IMMEDIATE 7 |
297 | #define OUR_USB_ADDRESS 0 | 297 | #define OUR_USB_ADDRESS 0 |
298 | __le32 ourconfig; | 298 | __le32 ourconfig; |
299 | } __attribute__ ((packed)); | 299 | } __attribute__ ((packed)); |
300 | 300 | ||
301 | /* pci control, BAR0 + 0x0100 */ | 301 | /* pci control, BAR0 + 0x0100 */ |
302 | struct net2280_pci_regs { | 302 | struct net2280_pci_regs { |
303 | // offset 0x0100 | 303 | /* offset 0x0100 */ |
304 | __le32 pcimstctl; | 304 | __le32 pcimstctl; |
305 | #define PCI_ARBITER_PARK_SELECT 13 | 305 | #define PCI_ARBITER_PARK_SELECT 13 |
306 | #define PCI_MULTI LEVEL_ARBITER 12 | 306 | #define PCI_MULTI LEVEL_ARBITER 12 |
307 | #define PCI_RETRY_ABORT_ENABLE 11 | 307 | #define PCI_RETRY_ABORT_ENABLE 11 |
308 | #define DMA_MEMORY_WRITE_AND_INVALIDATE_ENABLE 10 | 308 | #define DMA_MEMORY_WRITE_AND_INVALIDATE_ENABLE 10 |
309 | #define DMA_READ_MULTIPLE_ENABLE 9 | 309 | #define DMA_READ_MULTIPLE_ENABLE 9 |
310 | #define DMA_READ_LINE_ENABLE 8 | 310 | #define DMA_READ_LINE_ENABLE 8 |
311 | #define PCI_MASTER_COMMAND_SELECT 6 | 311 | #define PCI_MASTER_COMMAND_SELECT 6 |
312 | #define MEM_READ_OR_WRITE 0 | 312 | #define MEM_READ_OR_WRITE 0 |
313 | #define IO_READ_OR_WRITE 1 | 313 | #define IO_READ_OR_WRITE 1 |
314 | #define CFG_READ_OR_WRITE 2 | 314 | #define CFG_READ_OR_WRITE 2 |
315 | #define PCI_MASTER_START 5 | 315 | #define PCI_MASTER_START 5 |
316 | #define PCI_MASTER_READ_WRITE 4 | 316 | #define PCI_MASTER_READ_WRITE 4 |
317 | #define PCI_MASTER_WRITE 0 | 317 | #define PCI_MASTER_WRITE 0 |
318 | #define PCI_MASTER_READ 1 | 318 | #define PCI_MASTER_READ 1 |
319 | #define PCI_MASTER_BYTE_WRITE_ENABLES 0 | 319 | #define PCI_MASTER_BYTE_WRITE_ENABLES 0 |
320 | __le32 pcimstaddr; | 320 | __le32 pcimstaddr; |
321 | __le32 pcimstdata; | 321 | __le32 pcimstdata; |
322 | __le32 pcimststat; | 322 | __le32 pcimststat; |
323 | #define PCI_ARBITER_CLEAR 2 | 323 | #define PCI_ARBITER_CLEAR 2 |
324 | #define PCI_EXTERNAL_ARBITER 1 | 324 | #define PCI_EXTERNAL_ARBITER 1 |
325 | #define PCI_HOST_MODE 0 | 325 | #define PCI_HOST_MODE 0 |
326 | } __attribute__ ((packed)); | 326 | } __attribute__ ((packed)); |
327 | 327 | ||
328 | /* dma control, BAR0 + 0x0180 ... array of four structs like this, | 328 | /* dma control, BAR0 + 0x0180 ... array of four structs like this, |
@@ -330,50 +330,50 @@ struct net2280_pci_regs { | |||
330 | * that can be loaded into some of these registers. | 330 | * that can be loaded into some of these registers. |
331 | */ | 331 | */ |
332 | struct net2280_dma_regs { /* [11.7] */ | 332 | struct net2280_dma_regs { /* [11.7] */ |
333 | // offset 0x0180, 0x01a0, 0x01c0, 0x01e0, | 333 | /* offset 0x0180, 0x01a0, 0x01c0, 0x01e0, */ |
334 | __le32 dmactl; | 334 | __le32 dmactl; |
335 | #define DMA_SCATTER_GATHER_DONE_INTERRUPT_ENABLE 25 | 335 | #define DMA_SCATTER_GATHER_DONE_INTERRUPT_ENABLE 25 |
336 | #define DMA_CLEAR_COUNT_ENABLE 21 | 336 | #define DMA_CLEAR_COUNT_ENABLE 21 |
337 | #define DESCRIPTOR_POLLING_RATE 19 | 337 | #define DESCRIPTOR_POLLING_RATE 19 |
338 | #define POLL_CONTINUOUS 0 | 338 | #define POLL_CONTINUOUS 0 |
339 | #define POLL_1_USEC 1 | 339 | #define POLL_1_USEC 1 |
340 | #define POLL_100_USEC 2 | 340 | #define POLL_100_USEC 2 |
341 | #define POLL_1_MSEC 3 | 341 | #define POLL_1_MSEC 3 |
342 | #define DMA_VALID_BIT_POLLING_ENABLE 18 | 342 | #define DMA_VALID_BIT_POLLING_ENABLE 18 |
343 | #define DMA_VALID_BIT_ENABLE 17 | 343 | #define DMA_VALID_BIT_ENABLE 17 |
344 | #define DMA_SCATTER_GATHER_ENABLE 16 | 344 | #define DMA_SCATTER_GATHER_ENABLE 16 |
345 | #define DMA_OUT_AUTO_START_ENABLE 4 | 345 | #define DMA_OUT_AUTO_START_ENABLE 4 |
346 | #define DMA_PREEMPT_ENABLE 3 | 346 | #define DMA_PREEMPT_ENABLE 3 |
347 | #define DMA_FIFO_VALIDATE 2 | 347 | #define DMA_FIFO_VALIDATE 2 |
348 | #define DMA_ENABLE 1 | 348 | #define DMA_ENABLE 1 |
349 | #define DMA_ADDRESS_HOLD 0 | 349 | #define DMA_ADDRESS_HOLD 0 |
350 | __le32 dmastat; | 350 | __le32 dmastat; |
351 | #define DMA_SCATTER_GATHER_DONE_INTERRUPT 25 | 351 | #define DMA_SCATTER_GATHER_DONE_INTERRUPT 25 |
352 | #define DMA_TRANSACTION_DONE_INTERRUPT 24 | 352 | #define DMA_TRANSACTION_DONE_INTERRUPT 24 |
353 | #define DMA_ABORT 1 | 353 | #define DMA_ABORT 1 |
354 | #define DMA_START 0 | 354 | #define DMA_START 0 |
355 | u32 _unused0[2]; | 355 | u32 _unused0[2]; |
356 | // offset 0x0190, 0x01b0, 0x01d0, 0x01f0, | 356 | /* offset 0x0190, 0x01b0, 0x01d0, 0x01f0, */ |
357 | __le32 dmacount; | 357 | __le32 dmacount; |
358 | #define VALID_BIT 31 | 358 | #define VALID_BIT 31 |
359 | #define DMA_DIRECTION 30 | 359 | #define DMA_DIRECTION 30 |
360 | #define DMA_DONE_INTERRUPT_ENABLE 29 | 360 | #define DMA_DONE_INTERRUPT_ENABLE 29 |
361 | #define END_OF_CHAIN 28 | 361 | #define END_OF_CHAIN 28 |
362 | #define DMA_BYTE_COUNT_MASK ((1<<24)-1) | 362 | #define DMA_BYTE_COUNT_MASK ((1<<24)-1) |
363 | #define DMA_BYTE_COUNT 0 | 363 | #define DMA_BYTE_COUNT 0 |
364 | __le32 dmaaddr; | 364 | __le32 dmaaddr; |
365 | __le32 dmadesc; | 365 | __le32 dmadesc; |
366 | u32 _unused1; | 366 | u32 _unused1; |
367 | } __attribute__ ((packed)); | 367 | } __attribute__ ((packed)); |
368 | 368 | ||
369 | /* dedicated endpoint registers, BAR0 + 0x0200 */ | 369 | /* dedicated endpoint registers, BAR0 + 0x0200 */ |
370 | 370 | ||
371 | struct net2280_dep_regs { /* [11.8] */ | 371 | struct net2280_dep_regs { /* [11.8] */ |
372 | // offset 0x0200, 0x0210, 0x220, 0x230, 0x240 | 372 | /* offset 0x0200, 0x0210, 0x220, 0x230, 0x240 */ |
373 | __le32 dep_cfg; | 373 | __le32 dep_cfg; |
374 | // offset 0x0204, 0x0214, 0x224, 0x234, 0x244 | 374 | /* offset 0x0204, 0x0214, 0x224, 0x234, 0x244 */ |
375 | __le32 dep_rsp; | 375 | __le32 dep_rsp; |
376 | u32 _unused[2]; | 376 | u32 _unused[2]; |
377 | } __attribute__ ((packed)); | 377 | } __attribute__ ((packed)); |
378 | 378 | ||
379 | /* configurable endpoint registers, BAR0 + 0x0300 ... array of seven structs | 379 | /* configurable endpoint registers, BAR0 + 0x0300 ... array of seven structs |
@@ -381,62 +381,62 @@ struct net2280_dep_regs { /* [11.8] */ | |||
381 | * ep0 reserved for control; E and F have only 64 bytes of fifo | 381 | * ep0 reserved for control; E and F have only 64 bytes of fifo |
382 | */ | 382 | */ |
383 | struct net2280_ep_regs { /* [11.9] */ | 383 | struct net2280_ep_regs { /* [11.9] */ |
384 | // offset 0x0300, 0x0320, 0x0340, 0x0360, 0x0380, 0x03a0, 0x03c0 | 384 | /* offset 0x0300, 0x0320, 0x0340, 0x0360, 0x0380, 0x03a0, 0x03c0 */ |
385 | __le32 ep_cfg; | 385 | __le32 ep_cfg; |
386 | #define ENDPOINT_BYTE_COUNT 16 | 386 | #define ENDPOINT_BYTE_COUNT 16 |
387 | #define ENDPOINT_ENABLE 10 | 387 | #define ENDPOINT_ENABLE 10 |
388 | #define ENDPOINT_TYPE 8 | 388 | #define ENDPOINT_TYPE 8 |
389 | #define ENDPOINT_DIRECTION 7 | 389 | #define ENDPOINT_DIRECTION 7 |
390 | #define ENDPOINT_NUMBER 0 | 390 | #define ENDPOINT_NUMBER 0 |
391 | __le32 ep_rsp; | 391 | __le32 ep_rsp; |
392 | #define SET_NAK_OUT_PACKETS 15 | 392 | #define SET_NAK_OUT_PACKETS 15 |
393 | #define SET_EP_HIDE_STATUS_PHASE 14 | 393 | #define SET_EP_HIDE_STATUS_PHASE 14 |
394 | #define SET_EP_FORCE_CRC_ERROR 13 | 394 | #define SET_EP_FORCE_CRC_ERROR 13 |
395 | #define SET_INTERRUPT_MODE 12 | 395 | #define SET_INTERRUPT_MODE 12 |
396 | #define SET_CONTROL_STATUS_PHASE_HANDSHAKE 11 | 396 | #define SET_CONTROL_STATUS_PHASE_HANDSHAKE 11 |
397 | #define SET_NAK_OUT_PACKETS_MODE 10 | 397 | #define SET_NAK_OUT_PACKETS_MODE 10 |
398 | #define SET_ENDPOINT_TOGGLE 9 | 398 | #define SET_ENDPOINT_TOGGLE 9 |
399 | #define SET_ENDPOINT_HALT 8 | 399 | #define SET_ENDPOINT_HALT 8 |
400 | #define CLEAR_NAK_OUT_PACKETS 7 | 400 | #define CLEAR_NAK_OUT_PACKETS 7 |
401 | #define CLEAR_EP_HIDE_STATUS_PHASE 6 | 401 | #define CLEAR_EP_HIDE_STATUS_PHASE 6 |
402 | #define CLEAR_EP_FORCE_CRC_ERROR 5 | 402 | #define CLEAR_EP_FORCE_CRC_ERROR 5 |
403 | #define CLEAR_INTERRUPT_MODE 4 | 403 | #define CLEAR_INTERRUPT_MODE 4 |
404 | #define CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE 3 | 404 | #define CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE 3 |
405 | #define CLEAR_NAK_OUT_PACKETS_MODE 2 | 405 | #define CLEAR_NAK_OUT_PACKETS_MODE 2 |
406 | #define CLEAR_ENDPOINT_TOGGLE 1 | 406 | #define CLEAR_ENDPOINT_TOGGLE 1 |
407 | #define CLEAR_ENDPOINT_HALT 0 | 407 | #define CLEAR_ENDPOINT_HALT 0 |
408 | __le32 ep_irqenb; | 408 | __le32 ep_irqenb; |
409 | #define SHORT_PACKET_OUT_DONE_INTERRUPT_ENABLE 6 | 409 | #define SHORT_PACKET_OUT_DONE_INTERRUPT_ENABLE 6 |
410 | #define SHORT_PACKET_TRANSFERRED_INTERRUPT_ENABLE 5 | 410 | #define SHORT_PACKET_TRANSFERRED_INTERRUPT_ENABLE 5 |
411 | #define DATA_PACKET_RECEIVED_INTERRUPT_ENABLE 3 | 411 | #define DATA_PACKET_RECEIVED_INTERRUPT_ENABLE 3 |
412 | #define DATA_PACKET_TRANSMITTED_INTERRUPT_ENABLE 2 | 412 | #define DATA_PACKET_TRANSMITTED_INTERRUPT_ENABLE 2 |
413 | #define DATA_OUT_PING_TOKEN_INTERRUPT_ENABLE 1 | 413 | #define DATA_OUT_PING_TOKEN_INTERRUPT_ENABLE 1 |
414 | #define DATA_IN_TOKEN_INTERRUPT_ENABLE 0 | 414 | #define DATA_IN_TOKEN_INTERRUPT_ENABLE 0 |
415 | __le32 ep_stat; | 415 | __le32 ep_stat; |
416 | #define FIFO_VALID_COUNT 24 | 416 | #define FIFO_VALID_COUNT 24 |
417 | #define HIGH_BANDWIDTH_OUT_TRANSACTION_PID 22 | 417 | #define HIGH_BANDWIDTH_OUT_TRANSACTION_PID 22 |
418 | #define TIMEOUT 21 | 418 | #define TIMEOUT 21 |
419 | #define USB_STALL_SENT 20 | 419 | #define USB_STALL_SENT 20 |
420 | #define USB_IN_NAK_SENT 19 | 420 | #define USB_IN_NAK_SENT 19 |
421 | #define USB_IN_ACK_RCVD 18 | 421 | #define USB_IN_ACK_RCVD 18 |
422 | #define USB_OUT_PING_NAK_SENT 17 | 422 | #define USB_OUT_PING_NAK_SENT 17 |
423 | #define USB_OUT_ACK_SENT 16 | 423 | #define USB_OUT_ACK_SENT 16 |
424 | #define FIFO_OVERFLOW 13 | 424 | #define FIFO_OVERFLOW 13 |
425 | #define FIFO_UNDERFLOW 12 | 425 | #define FIFO_UNDERFLOW 12 |
426 | #define FIFO_FULL 11 | 426 | #define FIFO_FULL 11 |
427 | #define FIFO_EMPTY 10 | 427 | #define FIFO_EMPTY 10 |
428 | #define FIFO_FLUSH 9 | 428 | #define FIFO_FLUSH 9 |
429 | #define SHORT_PACKET_OUT_DONE_INTERRUPT 6 | 429 | #define SHORT_PACKET_OUT_DONE_INTERRUPT 6 |
430 | #define SHORT_PACKET_TRANSFERRED_INTERRUPT 5 | 430 | #define SHORT_PACKET_TRANSFERRED_INTERRUPT 5 |
431 | #define NAK_OUT_PACKETS 4 | 431 | #define NAK_OUT_PACKETS 4 |
432 | #define DATA_PACKET_RECEIVED_INTERRUPT 3 | 432 | #define DATA_PACKET_RECEIVED_INTERRUPT 3 |
433 | #define DATA_PACKET_TRANSMITTED_INTERRUPT 2 | 433 | #define DATA_PACKET_TRANSMITTED_INTERRUPT 2 |
434 | #define DATA_OUT_PING_TOKEN_INTERRUPT 1 | 434 | #define DATA_OUT_PING_TOKEN_INTERRUPT 1 |
435 | #define DATA_IN_TOKEN_INTERRUPT 0 | 435 | #define DATA_IN_TOKEN_INTERRUPT 0 |
436 | // offset 0x0310, 0x0330, 0x0350, 0x0370, 0x0390, 0x03b0, 0x03d0 | 436 | /* offset 0x0310, 0x0330, 0x0350, 0x0370, 0x0390, 0x03b0, 0x03d0 */ |
437 | __le32 ep_avail; | 437 | __le32 ep_avail; |
438 | __le32 ep_data; | 438 | __le32 ep_data; |
439 | u32 _unused0[2]; | 439 | u32 _unused0[2]; |
440 | } __attribute__ ((packed)); | 440 | } __attribute__ ((packed)); |
441 | 441 | ||
442 | struct net2280_reg_write { | 442 | struct net2280_reg_write { |