diff options
38 files changed, 5357 insertions, 2306 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index ae9e7a579b94..6bb9232514b4 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
| @@ -2058,6 +2058,13 @@ config BNX2 | |||
| 2058 | To compile this driver as a module, choose M here: the module | 2058 | To compile this driver as a module, choose M here: the module |
| 2059 | will be called bnx2. This is recommended. | 2059 | will be called bnx2. This is recommended. |
| 2060 | 2060 | ||
| 2061 | config SPIDER_NET | ||
| 2062 | tristate "Spider Gigabit Ethernet driver" | ||
| 2063 | depends on PCI && PPC_BPA | ||
| 2064 | help | ||
| 2065 | This driver supports the Gigabit Ethernet chips present on the | ||
| 2066 | Cell Processor-Based Blades from IBM. | ||
| 2067 | |||
| 2061 | config GIANFAR | 2068 | config GIANFAR |
| 2062 | tristate "Gianfar Ethernet" | 2069 | tristate "Gianfar Ethernet" |
| 2063 | depends on 85xx || 83xx | 2070 | depends on 85xx || 83xx |
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 5baafcd55610..8645c843cf4d 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
| @@ -54,6 +54,8 @@ obj-$(CONFIG_STNIC) += stnic.o 8390.o | |||
| 54 | obj-$(CONFIG_FEALNX) += fealnx.o | 54 | obj-$(CONFIG_FEALNX) += fealnx.o |
| 55 | obj-$(CONFIG_TIGON3) += tg3.o | 55 | obj-$(CONFIG_TIGON3) += tg3.o |
| 56 | obj-$(CONFIG_BNX2) += bnx2.o | 56 | obj-$(CONFIG_BNX2) += bnx2.o |
| 57 | spidernet-y += spider_net.o spider_net_ethtool.o sungem_phy.o | ||
| 58 | obj-$(CONFIG_SPIDER_NET) += spidernet.o | ||
| 57 | obj-$(CONFIG_TC35815) += tc35815.o | 59 | obj-$(CONFIG_TC35815) += tc35815.o |
| 58 | obj-$(CONFIG_SKGE) += skge.o | 60 | obj-$(CONFIG_SKGE) += skge.o |
| 59 | obj-$(CONFIG_SK98LIN) += sk98lin/ | 61 | obj-$(CONFIG_SK98LIN) += sk98lin/ |
diff --git a/drivers/net/ac3200.c b/drivers/net/ac3200.c index 91791ba37769..8a0af5453e21 100644 --- a/drivers/net/ac3200.c +++ b/drivers/net/ac3200.c | |||
| @@ -275,7 +275,7 @@ static int __init ac_probe1(int ioaddr, struct net_device *dev) | |||
| 275 | return 0; | 275 | return 0; |
| 276 | out2: | 276 | out2: |
| 277 | if (ei_status.reg0) | 277 | if (ei_status.reg0) |
| 278 | iounmap((void *)dev->mem_start); | 278 | iounmap(ei_status.mem); |
| 279 | out1: | 279 | out1: |
| 280 | free_irq(dev->irq, dev); | 280 | free_irq(dev->irq, dev); |
| 281 | out: | 281 | out: |
diff --git a/drivers/net/atarilance.c b/drivers/net/atarilance.c index ad011214c7f2..e01b6a78ec63 100644 --- a/drivers/net/atarilance.c +++ b/drivers/net/atarilance.c | |||
| @@ -235,7 +235,7 @@ struct lance_private { | |||
| 235 | #define MEM lp->mem | 235 | #define MEM lp->mem |
| 236 | #define DREG IO->data | 236 | #define DREG IO->data |
| 237 | #define AREG IO->addr | 237 | #define AREG IO->addr |
| 238 | #define REGA(a) ( AREG = (a), DREG ) | 238 | #define REGA(a) (*( AREG = (a), &DREG )) |
| 239 | 239 | ||
| 240 | /* Definitions for packet buffer access: */ | 240 | /* Definitions for packet buffer access: */ |
| 241 | #define PKT_BUF_SZ 1544 | 241 | #define PKT_BUF_SZ 1544 |
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 6440a892bb81..e54fc10f6846 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c | |||
| @@ -1140,7 +1140,7 @@ dm9000_phy_write(struct net_device *dev, int phyaddr_unused, int reg, int value) | |||
| 1140 | } | 1140 | } |
| 1141 | 1141 | ||
| 1142 | static int | 1142 | static int |
| 1143 | dm9000_drv_suspend(struct device *dev, u32 state, u32 level) | 1143 | dm9000_drv_suspend(struct device *dev, pm_message_t state, u32 level) |
| 1144 | { | 1144 | { |
| 1145 | struct net_device *ndev = dev_get_drvdata(dev); | 1145 | struct net_device *ndev = dev_get_drvdata(dev); |
| 1146 | 1146 | ||
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 7d93948aec83..d6eefdb71c17 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
| @@ -1372,7 +1372,7 @@ static int nv_change_mtu(struct net_device *dev, int new_mtu) | |||
| 1372 | 1372 | ||
| 1373 | /* synchronized against open : rtnl_lock() held by caller */ | 1373 | /* synchronized against open : rtnl_lock() held by caller */ |
| 1374 | if (netif_running(dev)) { | 1374 | if (netif_running(dev)) { |
| 1375 | u8 *base = get_hwbase(dev); | 1375 | u8 __iomem *base = get_hwbase(dev); |
| 1376 | /* | 1376 | /* |
| 1377 | * It seems that the nic preloads valid ring entries into an | 1377 | * It seems that the nic preloads valid ring entries into an |
| 1378 | * internal buffer. The procedure for flushing everything is | 1378 | * internal buffer. The procedure for flushing everything is |
| @@ -1423,7 +1423,7 @@ static int nv_change_mtu(struct net_device *dev, int new_mtu) | |||
| 1423 | 1423 | ||
| 1424 | static void nv_copy_mac_to_hw(struct net_device *dev) | 1424 | static void nv_copy_mac_to_hw(struct net_device *dev) |
| 1425 | { | 1425 | { |
| 1426 | u8 *base = get_hwbase(dev); | 1426 | u8 __iomem *base = get_hwbase(dev); |
| 1427 | u32 mac[2]; | 1427 | u32 mac[2]; |
| 1428 | 1428 | ||
| 1429 | mac[0] = (dev->dev_addr[0] << 0) + (dev->dev_addr[1] << 8) + | 1429 | mac[0] = (dev->dev_addr[0] << 0) + (dev->dev_addr[1] << 8) + |
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c index dc5d089bf184..3d56cf5a4e23 100644 --- a/drivers/net/iseries_veth.c +++ b/drivers/net/iseries_veth.c | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | * Copyright (C) 2001 Kyle A. Lucke (klucke@us.ibm.com), IBM Corp. | 4 | * Copyright (C) 2001 Kyle A. Lucke (klucke@us.ibm.com), IBM Corp. |
| 5 | * Substantially cleaned up by: | 5 | * Substantially cleaned up by: |
| 6 | * Copyright (C) 2003 David Gibson <dwg@au1.ibm.com>, IBM Corporation. | 6 | * Copyright (C) 2003 David Gibson <dwg@au1.ibm.com>, IBM Corporation. |
| 7 | * Copyright (C) 2004-2005 Michael Ellerman, IBM Corporation. | ||
| 7 | * | 8 | * |
| 8 | * This program is free software; you can redistribute it and/or | 9 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as | 10 | * modify it under the terms of the GNU General Public License as |
diff --git a/drivers/net/s2io-regs.h b/drivers/net/s2io-regs.h index 2234a8f05eb2..7cefe5507b9e 100644 --- a/drivers/net/s2io-regs.h +++ b/drivers/net/s2io-regs.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /************************************************************************ | 1 | /************************************************************************ |
| 2 | * regs.h: A Linux PCI-X Ethernet driver for S2IO 10GbE Server NIC | 2 | * regs.h: A Linux PCI-X Ethernet driver for Neterion 10GbE Server NIC |
| 3 | * Copyright(c) 2002-2005 Neterion Inc. | 3 | * Copyright(c) 2002-2005 Neterion Inc. |
| 4 | 4 | ||
| 5 | * This software may be used and distributed according to the terms of | 5 | * This software may be used and distributed according to the terms of |
| @@ -713,13 +713,16 @@ typedef struct _XENA_dev_config { | |||
| 713 | u64 mc_err_reg; | 713 | u64 mc_err_reg; |
| 714 | #define MC_ERR_REG_ECC_DB_ERR_L BIT(14) | 714 | #define MC_ERR_REG_ECC_DB_ERR_L BIT(14) |
| 715 | #define MC_ERR_REG_ECC_DB_ERR_U BIT(15) | 715 | #define MC_ERR_REG_ECC_DB_ERR_U BIT(15) |
| 716 | #define MC_ERR_REG_MIRI_ECC_DB_ERR_0 BIT(18) | ||
| 717 | #define MC_ERR_REG_MIRI_ECC_DB_ERR_1 BIT(20) | ||
| 716 | #define MC_ERR_REG_MIRI_CRI_ERR_0 BIT(22) | 718 | #define MC_ERR_REG_MIRI_CRI_ERR_0 BIT(22) |
| 717 | #define MC_ERR_REG_MIRI_CRI_ERR_1 BIT(23) | 719 | #define MC_ERR_REG_MIRI_CRI_ERR_1 BIT(23) |
| 718 | #define MC_ERR_REG_SM_ERR BIT(31) | 720 | #define MC_ERR_REG_SM_ERR BIT(31) |
| 719 | #define MC_ERR_REG_ECC_ALL_SNG (BIT(6) | \ | 721 | #define MC_ERR_REG_ECC_ALL_SNG (BIT(2) | BIT(3) | BIT(4) | BIT(5) |\ |
| 720 | BIT(7) | BIT(17) | BIT(19)) | 722 | BIT(6) | BIT(7) | BIT(17) | BIT(19)) |
| 721 | #define MC_ERR_REG_ECC_ALL_DBL (BIT(14) | \ | 723 | #define MC_ERR_REG_ECC_ALL_DBL (BIT(10) | BIT(11) | BIT(12) |\ |
| 722 | BIT(15) | BIT(18) | BIT(20)) | 724 | BIT(13) | BIT(14) | BIT(15) |\ |
| 725 | BIT(18) | BIT(20)) | ||
| 723 | u64 mc_err_mask; | 726 | u64 mc_err_mask; |
