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 /drivers | |
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 'drivers')
-rw-r--r-- | drivers/char/cyclades.c | 49 |
1 files changed, 24 insertions, 25 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 | ||
846 | static void cy_start(struct tty_struct *); | 845 | static void cy_start(struct tty_struct *); |
847 | static void set_line_char(struct cyclades_port *); | 846 | static void set_line_char(struct cyclades_port *); |
848 | static int cyz_issue_cmd(struct cyclades_card *, uclong, ucchar, uclong); | 847 | static int cyz_issue_cmd(struct cyclades_card *, __u32, __u8, __u32); |
849 | #ifdef CONFIG_ISA | 848 | #ifdef CONFIG_ISA |
850 | static unsigned detect_isa_irq(void __iomem *); | 849 | static 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 | ||
1499 | static int | 1498 | static int |
1500 | cyz_fetch_msg(struct cyclades_card *cinfo, | 1499 | cyz_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 | ||
1529 | static int | 1528 | static int |
1530 | cyz_issue_cmd(struct cyclades_card *cinfo, | 1529 | cyz_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 | ||
3058 | static void cyy_baud_calc(struct cyclades_port *info, uclong baud) | 3057 | static 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 | ||
4724 | static void plx_init(void __iomem * addr, uclong initctl) | 4723 | static 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", |