diff options
author | Klaus Kudielka <klaus.kudielka@gmx.net> | 2007-05-08 03:26:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:03 -0400 |
commit | 1a86b5e34e4d09e3246a983c53929ce38af52275 (patch) | |
tree | 1f7f56f6236508ff021b28e9481a1e834b50d66d /include | |
parent | 7c4e95bf483231d55bc0d491bc585bb9b7e852b8 (diff) |
cyclades: remove custom types
Switch from private uclong, etc over to standard types.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cyclades.h | 180 |
1 files changed, 91 insertions, 89 deletions
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h index a6865f0479f7..4c5b4763f5b8 100644 --- a/include/linux/cyclades.h +++ b/include/linux/cyclades.h | |||
@@ -67,6 +67,8 @@ | |||
67 | #ifndef _LINUX_CYCLADES_H | 67 | #ifndef _LINUX_CYCLADES_H |
68 | #define _LINUX_CYCLADES_H | 68 | #define _LINUX_CYCLADES_H |
69 | 69 | ||
70 | #include <linux/types.h> | ||
71 | |||
70 | struct cyclades_monitor { | 72 | struct cyclades_monitor { |
71 | unsigned long int_count; | 73 | unsigned long int_count; |
72 | unsigned long char_count; | 74 | unsigned long char_count; |
@@ -172,24 +174,24 @@ typedef __u8 ucchar; /* 8 bits, unsigned */ | |||
172 | */ | 174 | */ |
173 | 175 | ||
174 | struct CUSTOM_REG { | 176 | struct CUSTOM_REG { |
175 | uclong fpga_id; /* FPGA Identification Register */ | 177 | __u32 fpga_id; /* FPGA Identification Register */ |
176 | uclong fpga_version; /* FPGA Version Number Register */ | 178 | __u32 fpga_version; /* FPGA Version Number Register */ |
177 | uclong cpu_start; /* CPU start Register (write) */ | 179 | __u32 cpu_start; /* CPU start Register (write) */ |
178 | uclong cpu_stop; /* CPU stop Register (write) */ | 180 | __u32 cpu_stop; /* CPU stop Register (write) */ |
179 | uclong misc_reg; /* Miscelaneous Register */ | 181 | __u32 misc_reg; /* Miscelaneous Register */ |
180 | uclong idt_mode; /* IDT mode Register */ | 182 | __u32 idt_mode; /* IDT mode Register */ |
181 | uclong uart_irq_status; /* UART IRQ status Register */ | 183 | __u32 uart_irq_status; /* UART IRQ status Register */ |
182 | uclong clear_timer0_irq; /* Clear timer interrupt Register */ | 184 | __u32 clear_timer0_irq; /* Clear timer interrupt Register */ |
183 | uclong clear_timer1_irq; /* Clear timer interrupt Register */ | 185 | __u32 clear_timer1_irq; /* Clear timer interrupt Register */ |
184 | uclong clear_timer2_irq; /* Clear timer interrupt Register */ | 186 | __u32 clear_timer2_irq; /* Clear timer interrupt Register */ |
185 | uclong test_register; /* Test Register */ | 187 | __u32 test_register; /* Test Register */ |
186 | uclong test_count; /* Test Count Register */ | 188 | __u32 test_count; /* Test Count Register */ |
187 | uclong timer_select; /* Timer select register */ | 189 | __u32 timer_select; /* Timer select register */ |
188 | uclong pr_uart_irq_status; /* Prioritized UART IRQ stat Reg */ | 190 | __u32 pr_uart_irq_status; /* Prioritized UART IRQ stat Reg */ |
189 | uclong ram_wait_state; /* RAM wait-state Register */ | 191 | __u32 ram_wait_state; /* RAM wait-state Register */ |
190 | uclong uart_wait_state; /* UART wait-state Register */ | 192 | __u32 uart_wait_state; /* UART wait-state Register */ |
191 | uclong timer_wait_state; /* timer wait-state Register */ | 193 | __u32 timer_wait_state; /* timer wait-state Register */ |
192 | uclong ack_wait_state; /* ACK wait State Register */ | 194 | __u32 ack_wait_state; /* ACK wait State Register */ |
193 | }; | 195 | }; |
194 | 196 | ||
195 | /* | 197 | /* |
@@ -199,34 +201,34 @@ struct CUSTOM_REG { | |||
199 | */ | 201 | */ |
200 | 202 | ||
201 | struct RUNTIME_9060 { | 203 | struct RUNTIME_9060 { |
202 | uclong loc_addr_range; /* 00h - Local Address Range */ | 204 | __u32 loc_addr_range; /* 00h - Local Address Range */ |
203 | uclong loc_addr_base; /* 04h - Local Address Base */ | 205 | __u32 loc_addr_base; /* 04h - Local Address Base */ |
204 | uclong loc_arbitr; /* 08h - Local Arbitration */ | 206 | __u32 loc_arbitr; /* 08h - Local Arbitration */ |
205 | uclong endian_descr; /* 0Ch - Big/Little Endian Descriptor */ | 207 | __u32 endian_descr; /* 0Ch - Big/Little Endian Descriptor */ |
206 | uclong loc_rom_range; /* 10h - Local ROM Range */ | 208 | __u32 loc_rom_range; /* 10h - Local ROM Range */ |
207 | uclong loc_rom_base; /* 14h - Local ROM Base */ | 209 | __u32 loc_rom_base; /* 14h - Local ROM Base */ |
208 | uclong loc_bus_descr; /* 18h - Local Bus descriptor */ | 210 | __u32 loc_bus_descr; /* 18h - Local Bus descriptor */ |
209 | uclong loc_range_mst; /* 1Ch - Local Range for Master to PCI */ | 211 | __u32 loc_range_mst; /* 1Ch - Local Range for Master to PCI */ |
210 | uclong loc_base_mst; /* 20h - Local Base for Master PCI */ | 212 | __u32 loc_base_mst; /* 20h - Local Base for Master PCI */ |
211 | uclong loc_range_io; /* 24h - Local Range for Master IO */ | 213 | __u32 loc_range_io; /* 24h - Local Range for Master IO */ |
212 | uclong pci_base_mst; /* 28h - PCI Base for Master PCI */ | 214 | __u32 pci_base_mst; /* 28h - PCI Base for Master PCI */ |
213 | uclong pci_conf_io; /* 2Ch - PCI configuration for Master IO */ | 215 | __u32 pci_conf_io; /* 2Ch - PCI configuration for Master IO */ |
214 | uclong filler1; /* 30h */ | 216 | __u32 filler1; /* 30h */ |
215 | uclong filler2; /* 34h */ | 217 | __u32 filler2; /* 34h */ |
216 | uclong filler3; /* 38h */ | 218 | __u32 filler3; /* 38h */ |
217 | uclong filler4; /* 3Ch */ | 219 | __u32 filler4; /* 3Ch */ |
218 | uclong mail_box_0; /* 40h - Mail Box 0 */ | 220 | __u32 mail_box_0; /* 40h - Mail Box 0 */ |
219 | uclong mail_box_1; /* 44h - Mail Box 1 */ | 221 | __u32 mail_box_1; /* 44h - Mail Box 1 */ |
220 | uclong mail_box_2; /* 48h - Mail Box 2 */ | 222 | __u32 mail_box_2; /* 48h - Mail Box 2 */ |
221 | uclong mail_box_3; /* 4Ch - Mail Box 3 */ | 223 | __u32 mail_box_3; /* 4Ch - Mail Box 3 */ |
222 | uclong filler5; /* 50h */ | 224 | __u32 filler5; /* 50h */ |
223 | uclong filler6; /* 54h */ | 225 | __u32 filler6; /* 54h */ |
224 | uclong filler7; /* 58h */ | 226 | __u32 filler7; /* 58h */ |
225 | uclong filler8; /* 5Ch */ | 227 | __u32 filler8; /* 5Ch */ |
226 | uclong pci_doorbell; /* 60h - PCI to Local Doorbell */ | 228 | __u32 pci_doorbell; /* 60h - PCI to Local Doorbell */ |
227 | uclong loc_doorbell; /* 64h - Local to PCI Doorbell */ | 229 | __u32 loc_doorbell; /* 64h - Local to PCI Doorbell */ |
228 | uclong intr_ctrl_stat; /* 68h - Interrupt Control/Status */ | 230 | __u32 intr_ctrl_stat; /* 68h - Interrupt Control/Status */ |
229 | uclong init_ctrl; /* 6Ch - EEPROM control, Init Control, etc */ | 231 | __u32 init_ctrl; /* 6Ch - EEPROM control, Init Control, etc */ |
230 | }; | 232 | }; |
231 | 233 | ||
232 | /* Values for the Local Base Address re-map register */ | 234 | /* Values for the Local Base Address re-map register */ |
@@ -268,8 +270,8 @@ struct RUNTIME_9060 { | |||
268 | #define ZF_TINACT ZF_TINACT_DEF | 270 | #define ZF_TINACT ZF_TINACT_DEF |
269 | 271 | ||
270 | struct FIRM_ID { | 272 | struct FIRM_ID { |
271 | uclong signature; /* ZFIRM/U signature */ | 273 | __u32 signature; /* ZFIRM/U signature */ |
272 | uclong zfwctrl_addr; /* pointer to ZFW_CTRL structure */ | 274 | __u32 zfwctrl_addr; /* pointer to ZFW_CTRL structure */ |
273 | }; | 275 | }; |
274 | 276 | ||
275 | /* Op. System id */ | 277 | /* Op. System id */ |
@@ -406,24 +408,24 @@ struct FIRM_ID { | |||
406 | */ | 408 | */ |
407 | 409 | ||
408 | struct CH_CTRL { | 410 | struct CH_CTRL { |
409 | uclong op_mode; /* operation mode */ | 411 | __u32 op_mode; /* operation mode */ |
410 | uclong intr_enable; /* interrupt masking */ | 412 | __u32 intr_enable; /* interrupt masking */ |
411 | uclong sw_flow; /* SW flow control */ | 413 | __u32 sw_flow; /* SW flow control */ |
412 | uclong flow_status; /* output flow status */ | 414 | __u32 flow_status; /* output flow status */ |
413 | uclong comm_baud; /* baud rate - numerically specified */ | 415 | __u32 comm_baud; /* baud rate - numerically specified */ |
414 | uclong comm_parity; /* parity */ | 416 | __u32 comm_parity; /* parity */ |
415 | uclong comm_data_l; /* data length/stop */ | 417 | __u32 comm_data_l; /* data length/stop */ |
416 | uclong comm_flags; /* other flags */ | 418 | __u32 comm_flags; /* other flags */ |
417 | uclong hw_flow; /* HW flow control */ | 419 | __u32 hw_flow; /* HW flow control */ |
418 | uclong rs_control; /* RS-232 outputs */ | 420 | __u32 rs_control; /* RS-232 outputs */ |
419 | uclong rs_status; /* RS-232 inputs */ | 421 | __u32 rs_status; /* RS-232 inputs */ |
420 | uclong flow_xon; /* xon char */ | 422 | __u32 flow_xon; /* xon char */ |
421 | uclong flow_xoff; /* xoff char */ | 423 | __u32 flow_xoff; /* xoff char */ |
422 | uclong hw_overflow; /* hw overflow counter */ | 424 | __u32 hw_overflow; /* hw overflow counter */ |
423 | uclong sw_overflow; /* sw overflow counter */ | 425 | __u32 sw_overflow; /* sw overflow counter */ |
424 | uclong comm_error; /* frame/parity error counter */ | 426 | __u32 comm_error; /* frame/parity error counter */ |
425 | uclong ichar; | 427 | __u32 ichar; |
426 | uclong filler[7]; | 428 | __u32 filler[7]; |
427 | }; | 429 | }; |
428 | 430 | ||
429 | 431 | ||
@@ -433,18 +435,18 @@ struct CH_CTRL { | |||
433 | */ | 435 | */ |
434 | 436 | ||
435 | struct BUF_CTRL { | 437 | struct BUF_CTRL { |
436 | uclong flag_dma; /* buffers are in Host memory */ | 438 | __u32 flag_dma; /* buffers are in Host memory */ |
437 | uclong tx_bufaddr; /* address of the tx buffer */ | 439 | __u32 tx_bufaddr; /* address of the tx buffer */ |
438 | uclong tx_bufsize; /* tx buffer size */ | 440 | __u32 tx_bufsize; /* tx buffer size */ |
439 | uclong tx_threshold; /* tx low water mark */ | 441 | __u32 tx_threshold; /* tx low water mark */ |
440 | uclong tx_get; /* tail index tx buf */ | 442 | __u32 tx_get; /* tail index tx buf */ |
441 | uclong tx_put; /* head index tx buf */ | 443 | __u32 tx_put; /* head index tx buf */ |
442 | uclong rx_bufaddr; /* address of the rx buffer */ | 444 | __u32 rx_bufaddr; /* address of the rx buffer */ |
443 | uclong rx_bufsize; /* rx buffer size */ | 445 | __u32 rx_bufsize; /* rx buffer size */ |
444 | uclong rx_threshold; /* rx high water mark */ | 446 | __u32 rx_threshold; /* rx high water mark */ |
445 | uclong rx_get; /* tail index rx buf */ | 447 | __u32 rx_get; /* tail index rx buf */ |
446 | uclong rx_put; /* head index rx buf */ | 448 | __u32 rx_put; /* head index rx buf */ |
447 | uclong filler[5]; /* filler to align structures */ | 449 | __u32 filler[5]; /* filler to align structures */ |
448 | }; | 450 | }; |
449 | 451 | ||
450 | /* | 452 | /* |
@@ -455,27 +457,27 @@ struct BUF_CTRL { | |||
455 | struct BOARD_CTRL { | 457 | struct BOARD_CTRL { |
456 | 458 | ||
457 | /* static info provided by the on-board CPU */ | 459 | /* static info provided by the on-board CPU */ |
458 | uclong n_channel; /* number of channels */ | 460 | __u32 n_channel; /* number of channels */ |
459 | uclong fw_version; /* firmware version */ | 461 | __u32 fw_version; /* firmware version */ |
460 | 462 | ||
461 | /* static info provided by the driver */ | 463 | /* static info provided by the driver */ |
462 | uclong op_system; /* op_system id */ | 464 | __u32 op_system; /* op_system id */ |
463 | uclong dr_version; /* driver version */ | 465 | __u32 dr_version; /* driver version */ |
464 | 466 | ||
465 | /* board control area */ | 467 | /* board control area */ |
466 | uclong inactivity; /* inactivity control */ | 468 | __u32 inactivity; /* inactivity control */ |
467 | 469 | ||
468 | /* host to FW commands */ | 470 | /* host to FW commands */ |
469 | uclong hcmd_channel; /* channel number */ | 471 | __u32 hcmd_channel; /* channel number */ |
470 | uclong hcmd_param; /* pointer to parameters */ | 472 | __u32 hcmd_param; /* pointer to parameters */ |
471 | 473 | ||
472 | /* FW to Host commands */ | 474 | /* FW to Host commands */ |
473 | uclong fwcmd_channel; /* channel number */ | 475 | __u32 fwcmd_channel; /* channel number */ |
474 | uclong fwcmd_param; /* pointer to parameters */ | 476 | __u32 fwcmd_param; /* pointer to parameters */ |
475 | uclong zf_int_queue_addr; /* offset for INT_QUEUE structure */ | 477 | __u32 zf_int_queue_addr; /* offset for INT_QUEUE structure */ |
476 | 478 | ||
477 | /* filler so the structures are aligned */ | 479 | /* filler so the structures are aligned */ |
478 | uclong filler[6]; | 480 | __u32 filler[6]; |
479 | }; | 481 | }; |
480 | 482 | ||
481 | /* Host Interrupt Queue */ | 483 | /* Host Interrupt Queue */ |