diff options
Diffstat (limited to 'drivers/net/ethernet/fujitsu/fmvj18x_cs.c')
-rw-r--r-- | drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c index cfe7a7431730..a7139f588ad2 100644 --- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c +++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c | |||
@@ -99,23 +99,23 @@ static const struct ethtool_ops netdev_ethtool_ops; | |||
99 | /* | 99 | /* |
100 | card type | 100 | card type |
101 | */ | 101 | */ |
102 | typedef enum { MBH10302, MBH10304, TDK, CONTEC, LA501, UNGERMANN, | 102 | enum cardtype { MBH10302, MBH10304, TDK, CONTEC, LA501, UNGERMANN, |
103 | XXX10304, NEC, KME | 103 | XXX10304, NEC, KME |
104 | } cardtype_t; | 104 | }; |
105 | 105 | ||
106 | /* | 106 | /* |
107 | driver specific data structure | 107 | driver specific data structure |
108 | */ | 108 | */ |
109 | typedef struct local_info_t { | 109 | struct local_info { |
110 | struct pcmcia_device *p_dev; | 110 | struct pcmcia_device *p_dev; |
111 | long open_time; | 111 | long open_time; |
112 | uint tx_started:1; | 112 | uint tx_started:1; |
113 | uint tx_queue; | 113 | uint tx_queue; |
114 | u_short tx_queue_len; | 114 | u_short tx_queue_len; |
115 | cardtype_t cardtype; | 115 | enum cardtype cardtype; |
116 | u_short sent; | 116 | u_short sent; |
117 | u_char __iomem *base; | 117 | u_char __iomem *base; |
118 | } local_info_t; | 118 | }; |
119 | 119 | ||
120 | #define MC_FILTERBREAK 64 | 120 | #define MC_FILTERBREAK 64 |
121 | 121 | ||
@@ -232,13 +232,13 @@ static const struct net_device_ops fjn_netdev_ops = { | |||
232 | 232 | ||
233 | static int fmvj18x_probe(struct pcmcia_device *link) | 233 | static int fmvj18x_probe(struct pcmcia_device *link) |
234 | { | 234 | { |
235 | local_info_t *lp; | 235 | struct local_info *lp; |
236 | struct net_device *dev; | 236 | struct net_device *dev; |
237 | 237 | ||
238 | dev_dbg(&link->dev, "fmvj18x_attach()\n"); | 238 | dev_dbg(&link->dev, "fmvj18x_attach()\n"); |
239 | 239 | ||
240 | /* Make up a FMVJ18x specific data structure */ | 240 | /* Make up a FMVJ18x specific data structure */ |
241 | dev = alloc_etherdev(sizeof(local_info_t)); | 241 | dev = alloc_etherdev(sizeof(struct local_info)); |
242 | if (!dev) | 242 | if (!dev) |
243 | return -ENOMEM; | 243 | return -ENOMEM; |
244 | lp = netdev_priv(dev); | 244 | lp = netdev_priv(dev); |
@@ -327,10 +327,10 @@ static int fmvj18x_ioprobe(struct pcmcia_device *p_dev, void *priv_data) | |||
327 | static int fmvj18x_config(struct pcmcia_device *link) | 327 | static int fmvj18x_config(struct pcmcia_device *link) |
328 | { | 328 | { |
329 | struct net_device *dev = link->priv; | 329 | struct net_device *dev = link->priv; |
330 | local_info_t *lp = netdev_priv(dev); | 330 | struct local_info *lp = netdev_priv(dev); |
331 | int i, ret; | 331 | int i, ret; |
332 | unsigned int ioaddr; | 332 | unsigned int ioaddr; |
333 | cardtype_t cardtype; | 333 | enum cardtype cardtype; |
334 | char *card_name = "unknown"; | 334 | char *card_name = "unknown"; |
335 | u8 *buf; | 335 | u8 *buf; |
336 | size_t len; | 336 | size_t len; |
@@ -584,7 +584,7 @@ static int fmvj18x_setup_mfc(struct pcmcia_device *link) | |||
584 | int i; | 584 | int i; |
585 | struct net_device *dev = link->priv; | 585 | struct net_device *dev = link->priv; |
586 | unsigned int ioaddr; | 586 | unsigned int ioaddr; |
587 | local_info_t *lp = netdev_priv(dev); | 587 | struct local_info *lp = netdev_priv(dev); |
588 | 588 | ||
589 | /* Allocate a small memory window */ | 589 | /* Allocate a small memory window */ |
590 | link->resource[3]->flags = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; | 590 | link->resource[3]->flags = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE; |
@@ -626,7 +626,7 @@ static void fmvj18x_release(struct pcmcia_device *link) | |||
626 | { | 626 | { |
627 | 627 | ||
628 | struct net_device *dev = link->priv; | 628 | struct net_device *dev = link->priv; |
629 | local_info_t *lp = netdev_priv(dev); | 629 | struct local_info *lp = netdev_priv(dev); |
630 | u_char __iomem *tmp; | 630 | u_char __iomem *tmp; |
631 | 631 | ||
632 | dev_dbg(&link->dev, "fmvj18x_release\n"); | 632 | dev_dbg(&link->dev, "fmvj18x_release\n"); |
@@ -711,7 +711,7 @@ module_pcmcia_driver(fmvj18x_cs_driver); | |||
711 | static irqreturn_t fjn_interrupt(int dummy, void *dev_id) | 711 | static irqreturn_t fjn_interrupt(int dummy, void *dev_id) |
712 | { | 712 | { |
713 | struct net_device *dev = dev_id; | 713 | struct net_device *dev = dev_id; |
714 | local_info_t *lp = netdev_priv(dev); | 714 | struct local_info *lp = netdev_priv(dev); |
715 | unsigned int ioaddr; | 715 | unsigned int ioaddr; |
716 | unsigned short tx_stat, rx_stat; | 716 | unsigned short tx_stat, rx_stat; |
717 | 717 | ||
@@ -772,7 +772,7 @@ static irqreturn_t fjn_interrupt(int dummy, void *dev_id) | |||
772 | 772 | ||
773 | static void fjn_tx_timeout(struct net_device *dev) | 773 | static void fjn_tx_timeout(struct net_device *dev) |
774 | { | 774 | { |
775 | struct local_info_t *lp = netdev_priv(dev); | 775 | struct local_info *lp = netdev_priv(dev); |
776 | unsigned int ioaddr = dev->base_addr; | 776 | unsigned int ioaddr = dev->base_addr; |
777 | 777 | ||
778 | netdev_notice(dev, "transmit timed out with status %04x, %s?\n", | 778 | netdev_notice(dev, "transmit timed out with status %04x, %s?\n", |
@@ -802,7 +802,7 @@ static void fjn_tx_timeout(struct net_device *dev) | |||
802 | static netdev_tx_t fjn_start_xmit(struct sk_buff *skb, | 802 | static netdev_tx_t fjn_start_xmit(struct sk_buff *skb, |
803 | struct net_device *dev) | 803 | struct net_device *dev) |
804 | { | 804 | { |
805 | struct local_info_t *lp = netdev_priv(dev); | 805 | struct local_info *lp = netdev_priv(dev); |
806 | unsigned int ioaddr = dev->base_addr; | 806 | unsigned int ioaddr = dev->base_addr; |
807 | short length = skb->len; | 807 | short length = skb->len; |
808 | 808 | ||
@@ -874,7 +874,7 @@ static netdev_tx_t fjn_start_xmit(struct sk_buff *skb, | |||
874 | 874 | ||
875 | static void fjn_reset(struct net_device *dev) | 875 | static void fjn_reset(struct net_device *dev) |
876 | { | 876 | { |
877 | struct local_info_t *lp = netdev_priv(dev); | 877 | struct local_info *lp = netdev_priv(dev); |
878 | unsigned int ioaddr = dev->base_addr; | 878 | unsigned int ioaddr = dev->base_addr; |
879 | int i; | 879 | int i; |
880 | 880 | ||
@@ -1058,7 +1058,7 @@ static int fjn_config(struct net_device *dev, struct ifmap *map){ | |||
1058 | 1058 | ||
1059 | static int fjn_open(struct net_device *dev) | 1059 | static int fjn_open(struct net_device *dev) |
1060 | { | 1060 | { |
1061 | struct local_info_t *lp = netdev_priv(dev); | 1061 | struct local_info *lp = netdev_priv(dev); |
1062 | struct pcmcia_device *link = lp->p_dev; | 1062 | struct pcmcia_device *link = lp->p_dev; |
1063 | 1063 | ||
1064 | pr_debug("fjn_open('%s').\n", dev->name); | 1064 | pr_debug("fjn_open('%s').\n", dev->name); |
@@ -1083,7 +1083,7 @@ static int fjn_open(struct net_device *dev) | |||
1083 | 1083 | ||
1084 | static int fjn_close(struct net_device *dev) | 1084 | static int fjn_close(struct net_device *dev) |
1085 | { | 1085 | { |
1086 | struct local_info_t *lp = netdev_priv(dev); | 1086 | struct local_info *lp = netdev_priv(dev); |
1087 | struct pcmcia_device *link = lp->p_dev; | 1087 | struct pcmcia_device *link = lp->p_dev; |
1088 | unsigned int ioaddr = dev->base_addr; | 1088 | unsigned int ioaddr = dev->base_addr; |
1089 | 1089 | ||