aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/forcedeth.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-10-11 03:56:12 -0400
committerJeff Garzik <jeff@garzik.org>2006-10-11 03:56:12 -0400
commit24fcbacedb0d83cabc6761acbecfbf751265ce52 (patch)
tree7147b206304b028c3cfd5de6317e5c8510098ca9 /drivers/net/forcedeth.c
parent2f614fe04f4463ff22234133319067d7361f54e5 (diff)
parent53a5fbdc2dff55161a206ed1a1385a8fa8055c34 (diff)
Merge branch 'master' into upstream-fixes
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r--drivers/net/forcedeth.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index 35467e0ac538..c5ed635bce36 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -2397,7 +2397,7 @@ static void nv_link_irq(struct net_device *dev)
2397 dprintk(KERN_DEBUG "%s: link change notification done.\n", dev->name); 2397 dprintk(KERN_DEBUG "%s: link change notification done.\n", dev->name);
2398} 2398}
2399 2399
2400static irqreturn_t nv_nic_irq(int foo, void *data, struct pt_regs *regs) 2400static irqreturn_t nv_nic_irq(int foo, void *data)
2401{ 2401{
2402 struct net_device *dev = (struct net_device *) data; 2402 struct net_device *dev = (struct net_device *) data;
2403 struct fe_priv *np = netdev_priv(dev); 2403 struct fe_priv *np = netdev_priv(dev);
@@ -2490,7 +2490,7 @@ static irqreturn_t nv_nic_irq(int foo, void *data, struct pt_regs *regs)
2490 return IRQ_RETVAL(i); 2490 return IRQ_RETVAL(i);
2491} 2491}
2492 2492
2493static irqreturn_t nv_nic_irq_tx(int foo, void *data, struct pt_regs *regs) 2493static irqreturn_t nv_nic_irq_tx(int foo, void *data)
2494{ 2494{
2495 struct net_device *dev = (struct net_device *) data; 2495 struct net_device *dev = (struct net_device *) data;
2496 struct fe_priv *np = netdev_priv(dev); 2496 struct fe_priv *np = netdev_priv(dev);
@@ -2577,7 +2577,7 @@ static int nv_napi_poll(struct net_device *dev, int *budget)
2577#endif 2577#endif
2578 2578
2579#ifdef CONFIG_FORCEDETH_NAPI 2579#ifdef CONFIG_FORCEDETH_NAPI
2580static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs) 2580static irqreturn_t nv_nic_irq_rx(int foo, void *data)
2581{ 2581{
2582 struct net_device *dev = (struct net_device *) data; 2582 struct net_device *dev = (struct net_device *) data;
2583 u8 __iomem *base = get_hwbase(dev); 2583 u8 __iomem *base = get_hwbase(dev);
@@ -2595,7 +2595,7 @@ static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs)
2595 return IRQ_HANDLED; 2595 return IRQ_HANDLED;
2596} 2596}
2597#else 2597#else
2598static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs) 2598static irqreturn_t nv_nic_irq_rx(int foo, void *data)
2599{ 2599{
2600 struct net_device *dev = (struct net_device *) data; 2600 struct net_device *dev = (struct net_device *) data;
2601 struct fe_priv *np = netdev_priv(dev); 2601 struct fe_priv *np = netdev_priv(dev);
@@ -2643,7 +2643,7 @@ static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs)
2643} 2643}
2644#endif 2644#endif
2645 2645
2646static irqreturn_t nv_nic_irq_other(int foo, void *data, struct pt_regs *regs) 2646static irqreturn_t nv_nic_irq_other(int foo, void *data)
2647{ 2647{
2648 struct net_device *dev = (struct net_device *) data; 2648 struct net_device *dev = (struct net_device *) data;
2649 struct fe_priv *np = netdev_priv(dev); 2649 struct fe_priv *np = netdev_priv(dev);
@@ -2698,7 +2698,7 @@ static irqreturn_t nv_nic_irq_other(int foo, void *data, struct pt_regs *regs)
2698 return IRQ_RETVAL(i); 2698 return IRQ_RETVAL(i);
2699} 2699}
2700 2700
2701static irqreturn_t nv_nic_irq_test(int foo, void *data, struct pt_regs *regs) 2701static irqreturn_t nv_nic_irq_test(int foo, void *data)
2702{ 2702{
2703 struct net_device *dev = (struct net_device *) data; 2703 struct net_device *dev = (struct net_device *) data;
2704 struct fe_priv *np = netdev_priv(dev); 2704 struct fe_priv *np = netdev_priv(dev);
@@ -2908,22 +2908,22 @@ static void nv_do_nic_poll(unsigned long data)
2908 pci_push(base); 2908 pci_push(base);
2909 2909
2910 if (!using_multi_irqs(dev)) { 2910 if (!using_multi_irqs(dev)) {
2911 nv_nic_irq(0, dev, NULL); 2911 nv_nic_irq(0, dev);
2912 if (np->msi_flags & NV_MSI_X_ENABLED) 2912 if (np->msi_flags & NV_MSI_X_ENABLED)
2913 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_ALL].vector); 2913 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_ALL].vector);
2914 else 2914 else
2915 enable_irq_lockdep(dev->irq); 2915 enable_irq_lockdep(dev->irq);
2916 } else { 2916 } else {
2917 if (np->nic_poll_irq & NVREG_IRQ_RX_ALL) { 2917 if (np->nic_poll_irq & NVREG_IRQ_RX_ALL) {
2918 nv_nic_irq_rx(0, dev, NULL); 2918 nv_nic_irq_rx(0, dev);
2919 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector); 2919 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector);
2920 } 2920 }
2921 if (np->nic_poll_irq & NVREG_IRQ_TX_ALL) { 2921 if (np->nic_poll_irq & NVREG_IRQ_TX_ALL) {
2922 nv_nic_irq_tx(0, dev, NULL); 2922 nv_nic_irq_tx(0, dev);
2923 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector); 2923 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector);
2924 } 2924 }
2925 if (np->nic_poll_irq & NVREG_IRQ_OTHER) { 2925 if (np->nic_poll_irq & NVREG_IRQ_OTHER) {
2926 nv_nic_irq_other(0, dev, NULL); 2926 nv_nic_irq_other(0, dev);
2927 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector); 2927 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector);
2928 } 2928 }
2929 } 2929 }