diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-24 13:15:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-24 13:15:13 -0400 |
commit | a319a2773a13bab56a0d0b3744ba8703324313b5 (patch) | |
tree | f02c86acabd1031439fd422a167784007e84ebb1 /drivers/net/3c59x.c | |
parent | e18fa700c9a31360bc8f193aa543b7ef7b39a06b (diff) | |
parent | 183798799216fad36c7219fe8d4d6dee6b8fa755 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits)
net/ieee80211: fix more crypto-related build breakage
[PATCH] Spidernet: add ethtool -S (show statistics)
[NET] GT96100: Delete bitrotting ethernet driver
[PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM
[PATCH] Cirrus Logic ep93xx ethernet driver
r8169: the MMIO region of the 8167 stands behin BAR#1
e1000, ixgb: Remove pointless wrappers
[PATCH] Remove powerpc specific parts of 3c509 driver
[PATCH] s2io: Switch to pci_get_device
[PATCH] gt96100: move to pci_get_device API
[PATCH] ehea: bugfix for register access functions
[PATCH] e1000 disable device on PCI error
drivers/net/phy/fixed: #if 0 some incomplete code
drivers/net: const-ify ethtool_ops declarations
[PATCH] ethtool: allow const ethtool_ops
[PATCH] sky2: big endian
[PATCH] sky2: fiber support
[PATCH] sky2: tx pause bug fix
drivers/net: Trim trailing whitespace
[PATCH] ehea: IBM eHEA Ethernet Device Driver
...
Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and
drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by
commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 that just happened to be
next to unrelated changes in this update.
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r-- | drivers/net/3c59x.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 29dede2eaa85..af301f09d674 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -729,7 +729,7 @@ static int vortex_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | |||
729 | #endif | 729 | #endif |
730 | static void vortex_tx_timeout(struct net_device *dev); | 730 | static void vortex_tx_timeout(struct net_device *dev); |
731 | static void acpi_set_WOL(struct net_device *dev); | 731 | static void acpi_set_WOL(struct net_device *dev); |
732 | static struct ethtool_ops vortex_ethtool_ops; | 732 | static const struct ethtool_ops vortex_ethtool_ops; |
733 | static void set_8021q_mode(struct net_device *dev, int enable); | 733 | static void set_8021q_mode(struct net_device *dev, int enable); |
734 | 734 | ||
735 | /* This driver uses 'options' to pass the media type, full-duplex flag, etc. */ | 735 | /* This driver uses 'options' to pass the media type, full-duplex flag, etc. */ |
@@ -796,7 +796,7 @@ static void poll_vortex(struct net_device *dev) | |||
796 | local_irq_disable(); | 796 | local_irq_disable(); |
797 | (vp->full_bus_master_rx ? boomerang_interrupt:vortex_interrupt)(dev->irq,dev,NULL); | 797 | (vp->full_bus_master_rx ? boomerang_interrupt:vortex_interrupt)(dev->irq,dev,NULL); |
798 | local_irq_restore(flags); | 798 | local_irq_restore(flags); |
799 | } | 799 | } |
800 | #endif | 800 | #endif |
801 | 801 | ||
802 | #ifdef CONFIG_PM | 802 | #ifdef CONFIG_PM |
@@ -904,7 +904,7 @@ static int vortex_eisa_remove(struct device *device) | |||
904 | 904 | ||
905 | vp = netdev_priv(dev); | 905 | vp = netdev_priv(dev); |
906 | ioaddr = vp->ioaddr; | 906 | ioaddr = vp->ioaddr; |
907 | 907 | ||
908 | unregister_netdev(dev); | 908 | unregister_netdev(dev); |
909 | iowrite16(TotalReset|0x14, ioaddr + EL3_CMD); | 909 | iowrite16(TotalReset|0x14, ioaddr + EL3_CMD); |
910 | release_region(dev->base_addr, VORTEX_TOTAL_SIZE); | 910 | release_region(dev->base_addr, VORTEX_TOTAL_SIZE); |
@@ -935,7 +935,7 @@ static int __init vortex_eisa_init(void) | |||
935 | eisa_found = 1; | 935 | eisa_found = 1; |
936 | } | 936 | } |
937 | #endif | 937 | #endif |
938 | 938 | ||
939 | /* Special code to work-around the Compaq PCI BIOS32 problem. */ | 939 | /* Special code to work-around the Compaq PCI BIOS32 problem. */ |
940 | if (compaq_ioaddr) { | 940 | if (compaq_ioaddr) { |
941 | vortex_probe1(NULL, ioport_map(compaq_ioaddr, VORTEX_TOTAL_SIZE), | 941 | vortex_probe1(NULL, ioport_map(compaq_ioaddr, VORTEX_TOTAL_SIZE), |
@@ -953,7 +953,7 @@ static int __devinit vortex_init_one(struct pci_dev *pdev, | |||
953 | struct vortex_chip_info *vci; | 953 | struct vortex_chip_info *vci; |
954 | void __iomem *ioaddr; | 954 | void __iomem *ioaddr; |
955 | 955 | ||
956 | /* wake up and enable device */ | 956 | /* wake up and enable device */ |
957 | rc = pci_enable_device(pdev); | 957 | rc = pci_enable_device(pdev); |
958 | if (rc < 0) | 958 | if (rc < 0) |
959 | goto out; | 959 | goto out; |
@@ -1089,7 +1089,7 @@ static int __devinit vortex_probe1(struct device *gendev, | |||
1089 | if (request_region(dev->base_addr, vci->io_size, print_name) != NULL) | 1089 | if (request_region(dev->base_addr, vci->io_size, print_name) != NULL) |
1090 | vp->must_free_region = 1; | 1090 | vp->must_free_region = 1; |
1091 | 1091 | ||
1092 | /* enable bus-mastering if necessary */ | 1092 | /* enable bus-mastering if necessary */ |
1093 | if (vci->flags & PCI_USES_MASTER) | 1093 | if (vci->flags & PCI_USES_MASTER) |
1094 | pci_set_master(pdev); | 1094 | pci_set_master(pdev); |
1095 | 1095 | ||
@@ -1131,7 +1131,7 @@ static int __devinit vortex_probe1(struct device *gendev, | |||
1131 | vp->tx_ring_dma = vp->rx_ring_dma + sizeof(struct boom_rx_desc) * RX_RING_SIZE; | 1131 | vp->tx_ring_dma = vp->rx_ring_dma + sizeof(struct boom_rx_desc) * RX_RING_SIZE; |
1132 | 1132 | ||
1133 | /* if we are a PCI driver, we store info in pdev->driver_data | 1133 | /* if we are a PCI driver, we store info in pdev->driver_data |
1134 | * instead of a module list */ | 1134 | * instead of a module list */ |
1135 | if (pdev) | 1135 | if (pdev) |
1136 | pci_set_drvdata(pdev, dev); | 1136 | pci_set_drvdata(pdev, dev); |
1137 | if (edev) | 1137 | if (edev) |
@@ -1393,7 +1393,7 @@ static int __devinit vortex_probe1(struct device *gendev, | |||
1393 | dev->tx_timeout = vortex_tx_timeout; | 1393 | dev->tx_timeout = vortex_tx_timeout; |
1394 | dev->watchdog_timeo = (watchdog * HZ) / 1000; | 1394 | dev->watchdog_timeo = (watchdog * HZ) / 1000; |
1395 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1395 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1396 | dev->poll_controller = poll_vortex; | 1396 | dev->poll_controller = poll_vortex; |
1397 | #endif | 1397 | #endif |
1398 | if (pdev) { | 1398 | if (pdev) { |
1399 | vp->pm_state_valid = 1; | 1399 | vp->pm_state_valid = 1; |
@@ -1875,11 +1875,11 @@ static void vortex_tx_timeout(struct net_device *dev) | |||
1875 | vp->stats.tx_dropped++; | 1875 | vp->stats.tx_dropped++; |
1876 | netif_wake_queue(dev); | 1876 | netif_wake_queue(dev); |
1877 | } | 1877 | } |
1878 | 1878 | ||
1879 | /* Issue Tx Enable */ | 1879 | /* Issue Tx Enable */ |
1880 | iowrite16(TxEnable, ioaddr + EL3_CMD); | 1880 | iowrite16(TxEnable, ioaddr + EL3_CMD); |
1881 | dev->trans_start = jiffies; | 1881 | dev->trans_start = jiffies; |
1882 | 1882 | ||
1883 | /* Switch to register set 7 for normal use. */ | 1883 | /* Switch to register set 7 for normal use. */ |
1884 | EL3WINDOW(7); | 1884 | EL3WINDOW(7); |
1885 | } | 1885 | } |
@@ -2316,10 +2316,10 @@ boomerang_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
2316 | if ((vp->tx_ring[entry].status & DN_COMPLETE) == 0) | 2316 | if ((vp->tx_ring[entry].status & DN_COMPLETE) == 0) |
2317 | break; /* It still hasn't been processed. */ | 2317 | break; /* It still hasn't been processed. */ |
2318 | #endif | 2318 | #endif |
2319 | 2319 | ||
2320 | if (vp->tx_skbuff[entry]) { | 2320 | if (vp->tx_skbuff[entry]) { |
2321 | struct sk_buff *skb = vp->tx_skbuff[entry]; | 2321 | struct sk_buff *skb = vp->tx_skbuff[entry]; |
2322 | #if DO_ZEROCOPY | 2322 | #if DO_ZEROCOPY |
2323 | int i; | 2323 | int i; |
2324 | for (i=0; i<=skb_shinfo(skb)->nr_frags; i++) | 2324 | for (i=0; i<=skb_shinfo(skb)->nr_frags; i++) |
2325 | pci_unmap_single(VORTEX_PCI(vp), | 2325 | pci_unmap_single(VORTEX_PCI(vp), |
@@ -2633,7 +2633,7 @@ vortex_close(struct net_device *dev) | |||
2633 | "not using them!\n", dev->name); | 2633 | "not using them!\n", dev->name); |
2634 | } | 2634 | } |
2635 | #endif | 2635 | #endif |
2636 | 2636 | ||
2637 | free_irq(dev->irq, dev); | 2637 | free_irq(dev->irq, dev); |
2638 | 2638 | ||
2639 | if (vp->full_bus_master_rx) { /* Free Boomerang bus master Rx buffers. */ | 2639 | if (vp->full_bus_master_rx) { /* Free Boomerang bus master Rx buffers. */ |
@@ -2675,7 +2675,7 @@ dump_tx_ring(struct net_device *dev) | |||
2675 | if (vortex_debug > 0) { | 2675 | if (vortex_debug > 0) { |
2676 | struct vortex_private *vp = netdev_priv(dev); | 2676 | struct vortex_private *vp = netdev_priv(dev); |
2677 | void __iomem *ioaddr = vp->ioaddr; | 2677 | void __iomem *ioaddr = vp->ioaddr; |
2678 | 2678 | ||
2679 | if (vp->full_bus_master_tx) { | 2679 | if (vp->full_bus_master_tx) { |
2680 | int i; | 2680 | int i; |
2681 | int stalled = ioread32(ioaddr + PktStatus) & 0x04; /* Possible racy. But it's only debug stuff */ | 2681 | int stalled = ioread32(ioaddr + PktStatus) & 0x04; /* Possible racy. But it's only debug stuff */ |
@@ -2873,7 +2873,7 @@ static void vortex_get_drvinfo(struct net_device *dev, | |||
2873 | } | 2873 | } |
2874 | } | 2874 | } |
2875 | 2875 | ||
2876 | static struct ethtool_ops vortex_ethtool_ops = { | 2876 | static const struct ethtool_ops vortex_ethtool_ops = { |
2877 | .get_drvinfo = vortex_get_drvinfo, | 2877 | .get_drvinfo = vortex_get_drvinfo, |
2878 | .get_strings = vortex_get_strings, | 2878 | .get_strings = vortex_get_strings, |
2879 | .get_msglevel = vortex_get_msglevel, | 2879 | .get_msglevel = vortex_get_msglevel, |
@@ -2928,7 +2928,7 @@ static void set_rx_mode(struct net_device *dev) | |||
2928 | int new_mode; | 2928 | int new_mode; |
2929 | 2929 | ||
2930 | if (dev->flags & IFF_PROMISC) { | 2930 | if (dev->flags & IFF_PROMISC) { |
2931 | if (vortex_debug > 0) | 2931 | if (vortex_debug > 3) |
2932 | printk(KERN_NOTICE "%s: Setting promiscuous mode.\n", dev->name); | 2932 | printk(KERN_NOTICE "%s: Setting promiscuous mode.\n", dev->name); |
2933 | new_mode = SetRxFilter|RxStation|RxMulticast|RxBroadcast|RxProm; | 2933 | new_mode = SetRxFilter|RxStation|RxMulticast|RxBroadcast|RxProm; |
2934 | } else if ((dev->mc_list) || (dev->flags & IFF_ALLMULTI)) { | 2934 | } else if ((dev->mc_list) || (dev->flags & IFF_ALLMULTI)) { |
@@ -3169,7 +3169,7 @@ static int __init vortex_init(void) | |||
3169 | { | 3169 | { |
3170 | int pci_rc, eisa_rc; | 3170 | int pci_rc, eisa_rc; |
3171 | 3171 | ||
3172 | pci_rc = pci_module_init(&vortex_driver); | 3172 | pci_rc = pci_register_driver(&vortex_driver); |
3173 | eisa_rc = vortex_eisa_init(); | 3173 | eisa_rc = vortex_eisa_init(); |
3174 | 3174 | ||
3175 | if (pci_rc == 0) | 3175 | if (pci_rc == 0) |
@@ -3190,7 +3190,7 @@ static void __exit vortex_eisa_cleanup(void) | |||
3190 | /* Take care of the EISA devices */ | 3190 | /* Take care of the EISA devices */ |
3191 | eisa_driver_unregister(&vortex_eisa_driver); | 3191 | eisa_driver_unregister(&vortex_eisa_driver); |
3192 | #endif | 3192 | #endif |
3193 | 3193 | ||
3194 | if (compaq_net_device) { | 3194 | if (compaq_net_device) { |
3195 | vp = compaq_net_device->priv; | 3195 | vp = compaq_net_device->priv; |
3196 | ioaddr = ioport_map(compaq_net_device->base_addr, | 3196 | ioaddr = ioport_map(compaq_net_device->base_addr, |