aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/cyclades.c49
-rw-r--r--include/linux/cyclades.h180
2 files changed, 115 insertions, 114 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 7f73bff0c81c..29b5375feeba 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -669,7 +669,6 @@
669 spin_unlock_irqrestore(&cy_card[info->card].card_lock, flags); \ 669 spin_unlock_irqrestore(&cy_card[info->card].card_lock, flags); \
670 } while (0) 670 } while (0)
671 671
672#include <linux/types.h>
673#include <linux/kernel.h> 672#include <linux/kernel.h>
674#include <linux/pci.h> 673#include <linux/pci.h>
675 674
@@ -845,7 +844,7 @@ MODULE_DEVICE_TABLE(pci, cy_pci_dev_id);
845 844
846static void cy_start(struct tty_struct *); 845static void cy_start(struct tty_struct *);
847static void set_line_char(struct cyclades_port *); 846static void set_line_char(struct cyclades_port *);
848static int cyz_issue_cmd(struct cyclades_card *, uclong, ucchar, uclong); 847static int cyz_issue_cmd(struct cyclades_card *, __u32, __u8, __u32);
849#ifdef CONFIG_ISA 848#ifdef CONFIG_ISA
850static unsigned detect_isa_irq(void __iomem *); 849static unsigned detect_isa_irq(void __iomem *);
851#endif /* CONFIG_ISA */ 850#endif /* CONFIG_ISA */
@@ -1498,7 +1497,7 @@ static irqreturn_t cyy_interrupt(int irq, void *dev_id)
1498 1497
1499static int 1498static int
1500cyz_fetch_msg(struct cyclades_card *cinfo, 1499cyz_fetch_msg(struct cyclades_card *cinfo,
1501 uclong * channel, ucchar * cmd, uclong * param) 1500 __u32 * channel, __u8 * cmd, __u32 * param)
1502{ 1501{
1503 struct FIRM_ID __iomem *firm_id; 1502 struct FIRM_ID __iomem *firm_id;
1504 struct ZFW_CTRL __iomem *zfw_ctrl; 1503 struct ZFW_CTRL __iomem *zfw_ctrl;
@@ -1518,7 +1517,7 @@ cyz_fetch_msg(struct cyclades_card *cinfo,
1518 if (loc_doorbell) { 1517 if (loc_doorbell) {
1519 *cmd = (char)(0xff & loc_doorbell); 1518 *cmd = (char)(0xff & loc_doorbell);
1520 *channel = cy_readl(&board_ctrl->fwcmd_channel); 1519 *channel = cy_readl(&board_ctrl->fwcmd_channel);
1521 *param = (uclong) cy_readl(&board_ctrl->fwcmd_param); 1520 *param = (__u32) cy_readl(&board_ctrl->fwcmd_param);
1522 cy_writel(&((struct RUNTIME_9060 __iomem *)(cinfo->ctl_addr))-> 1521 cy_writel(&((struct RUNTIME_9060 __iomem *)(cinfo->ctl_addr))->
1523 loc_doorbell, 0xffffffff); 1522 loc_doorbell, 0xffffffff);
1524 return 1; 1523 return 1;
@@ -1528,12 +1527,12 @@ cyz_fetch_msg(struct cyclades_card *cinfo,
1528 1527
1529static int 1528static int
1530cyz_issue_cmd(struct cyclades_card *cinfo, 1529cyz_issue_cmd(struct cyclades_card *cinfo,
1531 uclong channel, ucchar cmd, uclong param) 1530 __u32 channel, __u8 cmd, __u32 param)
1532{ 1531{
1533 struct FIRM_ID __iomem *firm_id; 1532 struct FIRM_ID __iomem *firm_id;
1534 struct ZFW_CTRL __iomem *zfw_ctrl; 1533 struct ZFW_CTRL __iomem *zfw_ctrl;
1535 struct BOARD_CTRL __iomem *board_ctrl; 1534 struct BOARD_CTRL __iomem *board_ctrl;
1536 uclong __iomem *pci_doorbell; 1535 __u32 __iomem *pci_doorbell;
1537 int index; 1536 int index;
1538 1537
1539 firm_id = cinfo->base_addr + ID_ADDRESS; 1538 firm_id = cinfo->base_addr + ID_ADDRESS;
@@ -1574,7 +1573,7 @@ cyz_handle_rx(struct cyclades_port *info,
1574#else 1573#else
1575 char data; 1574 char data;
1576#endif 1575#endif
1577 volatile uclong rx_put, rx_get, new_rx_get, rx_bufsize, rx_bufaddr; 1576 volatile __u32 rx_put, rx_get, new_rx_get, rx_bufsize, rx_bufaddr;
1578 1577
1579 rx_get = new_rx_get = cy_readl(&buf_ctrl->rx_get); 1578 rx_get = new_rx_get = cy_readl(&buf_ctrl->rx_get);
1580 rx_put = cy_readl(&buf_ctrl->rx_put); 1579 rx_put = cy_readl(&buf_ctrl->rx_put);
@@ -1670,7 +1669,7 @@ cyz_handle_tx(struct cyclades_port *info,
1670#ifdef BLOCKMOVE 1669#ifdef BLOCKMOVE
1671 int small_count; 1670 int small_count;
1672#endif 1671#endif
1673 volatile uclong tx_put, tx_get, tx_bufsize, tx_bufaddr; 1672 volatile __u32 tx_put, tx_get, tx_bufsize, tx_bufaddr;
1674 1673
1675 if (info->xmit_cnt <= 0) /* Nothing to transmit */ 1674 if (info->xmit_cnt <= 0) /* Nothing to transmit */
1676 return; 1675 return;
@@ -1755,10 +1754,10 @@ static void cyz_handle_cmd(struct cyclades_card *cinfo)
1755 static volatile struct BOARD_CTRL __iomem *board_ctrl; 1754 static volatile struct BOARD_CTRL __iomem *board_ctrl;
1756 static volatile struct CH_CTRL __iomem *ch_ctrl; 1755 static volatile struct CH_CTRL __iomem *ch_ctrl;
1757 static volatile struct BUF_CTRL __iomem *buf_ctrl; 1756 static volatile struct BUF_CTRL __iomem *buf_ctrl;
1758 uclong channel; 1757 __u32 channel;
1759 ucchar cmd; 1758 __u8 cmd;
1760 uclong param; 1759 __u32 param;
1761 uclong hw_ver, fw_ver; 1760 __u32 hw_ver, fw_ver;
1762 int special_count; 1761 int special_count;
1763 int delta_count; 1762 int delta_count;
1764 1763
@@ -1892,7 +1891,7 @@ static void cyz_rx_restart(unsigned long arg)
1892 struct cyclades_port *info = (struct cyclades_port *)arg; 1891 struct cyclades_port *info = (struct cyclades_port *)arg;
1893 int retval; 1892 int retval;
1894 int card = info->card; 1893 int card = info->card;
1895 uclong channel = (info->line) - (cy_card[card].first_line); 1894 __u32 channel = (info->line) - (cy_card[card].first_line);
1896 unsigned long flags; 1895 unsigned long flags;
1897 1896
1898 CY_LOCK(info, flags); 1897 CY_LOCK(info, flags);
@@ -2289,7 +2288,7 @@ static void shutdown(struct cyclades_port *info)
2289 2288
2290 if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { 2289 if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) {
2291 cy_writel(&ch_ctrl[channel].rs_control, 2290 cy_writel(&ch_ctrl[channel].rs_control,
2292 (uclong)(cy_readl(&ch_ctrl[channel].rs_control)& 2291 (__u32)(cy_readl(&ch_ctrl[channel].rs_control)&
2293 ~(C_RS_RTS | C_RS_DTR))); 2292 ~(C_RS_RTS | C_RS_DTR)));
2294 retval = cyz_issue_cmd(&cy_card[info->card], channel, 2293 retval = cyz_issue_cmd(&cy_card[info->card], channel,
2295 C_CM_IOCTLM, 0L); 2294 C_CM_IOCTLM, 0L);
@@ -3026,7 +3025,7 @@ static int cy_chars_in_buffer(struct tty_struct *tty)
3026 static volatile struct CH_CTRL *ch_ctrl; 3025 static volatile struct CH_CTRL *ch_ctrl;
3027 static volatile struct BUF_CTRL *buf_ctrl; 3026 static volatile struct BUF_CTRL *buf_ctrl;
3028 int char_count; 3027 int char_count;
3029 volatile uclong tx_put, tx_get, tx_bufsize; 3028 volatile __u32 tx_put, tx_get, tx_bufsize;
3030 3029
3031 firm_id = cy_card[card].base_addr + ID_ADDRESS; 3030 firm_id = cy_card[card].base_addr + ID_ADDRESS;
3032 zfw_ctrl = cy_card[card].base_addr + 3031 zfw_ctrl = cy_card[card].base_addr +
@@ -3055,10 +3054,10 @@ static int cy_chars_in_buffer(struct tty_struct *tty)
3055 * ------------------------------------------------------------ 3054 * ------------------------------------------------------------
3056 */ 3055 */
3057 3056
3058static void cyy_baud_calc(struct cyclades_port *info, uclong baud) 3057static void cyy_baud_calc(struct cyclades_port *info, __u32 baud)
3059{ 3058{
3060 int co, co_val, bpr; 3059 int co, co_val, bpr;
3061 uclong cy_clock = ((info->chip_rev >= CD1400_REV_J) ? 60000000 : 3060 __u32 cy_clock = ((info->chip_rev >= CD1400_REV_J) ? 60000000 :
3062 25000000); 3061 25000000);
3063 3062
3064 if (baud == 0) { 3063 if (baud == 0) {
@@ -3348,7 +3347,7 @@ static void set_line_char(struct cyclades_port *info)
3348 struct BOARD_CTRL __iomem *board_ctrl; 3347 struct BOARD_CTRL __iomem *board_ctrl;
3349 struct CH_CTRL __iomem *ch_ctrl; 3348 struct CH_CTRL __iomem *ch_ctrl;
3350 struct BUF_CTRL __iomem *buf_ctrl; 3349 struct BUF_CTRL __iomem *buf_ctrl;
3351 uclong sw_flow; 3350 __u32 sw_flow;
3352 int retval; 3351 int retval;
3353 3352
3354 firm_id = cy_card[card].base_addr + ID_ADDRESS; 3353 firm_id = cy_card[card].base_addr + ID_ADDRESS;
@@ -4721,7 +4720,7 @@ static int __init cy_detect_isa(void)
4721#endif /* CONFIG_ISA */ 4720#endif /* CONFIG_ISA */
4722} /* cy_detect_isa */ 4721} /* cy_detect_isa */
4723 4722
4724static void plx_init(void __iomem * addr, uclong initctl) 4723static void plx_init(void __iomem * addr, __u32 initctl)
4725{ 4724{
4726 /* Reset PLX */ 4725 /* Reset PLX */
4727 cy_writel(addr + initctl, cy_readl(addr + initctl) | 0x40000000); 4726 cy_writel(addr + initctl, cy_readl(addr + initctl) | 0x40000000);
@@ -4747,14 +4746,14 @@ static int __init cy_detect_pci(void)
4747 struct pci_dev *pdev = NULL; 4746 struct pci_dev *pdev = NULL;
4748 unsigned char cyy_rev_id; 4747 unsigned char cyy_rev_id;
4749 unsigned char cy_pci_irq = 0; 4748 unsigned char cy_pci_irq = 0;
4750 uclong cy_pci_phys0, cy_pci_phys2; 4749 __u32 cy_pci_phys0, cy_pci_phys2;
4751 void __iomem *cy_pci_addr0, *cy_pci_addr2; 4750 void __iomem *cy_pci_addr0, *cy_pci_addr2;
4752 unsigned short i, j, cy_pci_nchan, plx_ver; 4751 unsigned short i, j, cy_pci_nchan, plx_ver;
4753 unsigned short device_id, dev_index = 0; 4752 unsigned short device_id, dev_index = 0;
4754 uclong mailbox; 4753 __u32 mailbox;
4755 uclong ZeIndex = 0; 4754 __u32 ZeIndex = 0;
4756 void __iomem *Ze_addr0[NR_CARDS], *Ze_addr2[NR_CARDS]; 4755 void __iomem *Ze_addr0[NR_CARDS], *Ze_addr2[NR_CARDS];
4757 uclong Ze_phys0[NR_CARDS], Ze_phys2[NR_CARDS]; 4756 __u32 Ze_phys0[NR_CARDS], Ze_phys2[NR_CARDS];
4758 unsigned char Ze_irq[NR_CARDS]; 4757 unsigned char Ze_irq[NR_CARDS];
4759 struct pci_dev *Ze_pdev[NR_CARDS]; 4758 struct pci_dev *Ze_pdev[NR_CARDS];
4760 4759
@@ -4959,7 +4958,7 @@ static int __init cy_detect_pci(void)
4959 cy_pci_irq); 4958 cy_pci_irq);
4960 4959
4961 mailbox = 4960 mailbox =
4962 (uclong)cy_readl(&((struct RUNTIME_9060 __iomem *) 4961 (__u32)cy_readl(&((struct RUNTIME_9060 __iomem *)
4963 cy_pci_addr0)->mail_box_0); 4962 cy_pci_addr0)->mail_box_0);
4964 4963
4965 if (pci_resource_flags(pdev, 2) & IORESOURCE_IO) { 4964 if (pci_resource_flags(pdev, 2) & IORESOURCE_IO) {
@@ -5122,7 +5121,7 @@ static int __init cy_detect_pci(void)
5122 Ze_pdev[j] = Ze_pdev[j + 1]; 5121 Ze_pdev[j] = Ze_pdev[j + 1];
5123 } 5122 }
5124 ZeIndex--; 5123 ZeIndex--;
5125 mailbox = (uclong)cy_readl(&((struct RUNTIME_9060 __iomem *) 5124 mailbox = (__u32)cy_readl(&((struct RUNTIME_9060 __iomem *)
5126 cy_pci_addr0)->mail_box_0); 5125 cy_pci_addr0)->mail_box_0);
5127#ifdef CY_PCI_DEBUG 5126#ifdef CY_PCI_DEBUG
5128 printk("Cyclades-Z/PCI: relocate winaddr=0x%lx ctladdr=0x%lx\n", 5127 printk("Cyclades-Z/PCI: relocate winaddr=0x%lx ctladdr=0x%lx\n",
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
70struct cyclades_monitor { 72struct 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
174struct CUSTOM_REG { 176struct 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
201struct RUNTIME_9060 { 203struct 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
270struct FIRM_ID { 272struct 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
408struct CH_CTRL { 410struct 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
435struct BUF_CTRL { 437struct 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 {
455struct BOARD_CTRL { 457struct 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 */