Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

broadcom: Move the Broadcom drivers

Moves the drivers for Broadcom devices into
drivers/net/ethernet/broadcom/ and the necessary Kconfig and Makefile
changes.

CC: Eilon Greenstein <eilong@broadcom.com>
CC: Michael Chan <mchan@broadcom.com>
CC: Matt Carlson <mcarlson@broadcom.com>
CC: Gary Zambrano <zambrano@broadcom.com>
CC: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

+141 -115
+5 -5
MAINTAINERS
··· 1526 1526 M: Gary Zambrano <zambrano@broadcom.com> 1527 1527 L: netdev@vger.kernel.org 1528 1528 S: Supported 1529 - F: drivers/net/b44.* 1529 + F: drivers/net/ethernet/broadcom/b44.* 1530 1530 1531 1531 BROADCOM BNX2 GIGABIT ETHERNET DRIVER 1532 1532 M: Michael Chan <mchan@broadcom.com> 1533 1533 L: netdev@vger.kernel.org 1534 1534 S: Supported 1535 - F: drivers/net/bnx2.* 1536 - F: drivers/net/bnx2_* 1535 + F: drivers/net/ethernet/broadcom/bnx2.* 1536 + F: drivers/net/ethernet/broadcom/bnx2_* 1537 1537 1538 1538 BROADCOM BNX2X 10 GIGABIT ETHERNET DRIVER 1539 1539 M: Eilon Greenstein <eilong@broadcom.com> 1540 1540 L: netdev@vger.kernel.org 1541 1541 S: Supported 1542 - F: drivers/net/bnx2x/ 1542 + F: drivers/net/ethernet/broadcom/bnx2x/ 1543 1543 1544 1544 BROADCOM TG3 GIGABIT ETHERNET DRIVER 1545 1545 M: Matt Carlson <mcarlson@broadcom.com> 1546 1546 M: Michael Chan <mchan@broadcom.com> 1547 1547 L: netdev@vger.kernel.org 1548 1548 S: Supported 1549 - F: drivers/net/tg3.* 1549 + F: drivers/net/ethernet/broadcom/tg3.* 1550 1550 1551 1551 BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER 1552 1552 M: Brett Rudley <brudley@broadcom.com>
-99
drivers/net/Kconfig
··· 997 997 To compile this driver as a module, choose M here. The module 998 998 will be called apricot. 999 999 1000 - config B44 1001 - tristate "Broadcom 440x/47xx ethernet support" 1002 - depends on SSB_POSSIBLE && HAS_DMA 1003 - select SSB 1004 - select MII 1005 - help 1006 - If you have a network (Ethernet) controller of this type, say Y 1007 - or M and read the Ethernet-HOWTO, available from 1008 - <http://www.tldp.org/docs.html#howto>. 1009 - 1010 - To compile this driver as a module, choose M here. The module 1011 - will be called b44. 1012 - 1013 - # Auto-select SSB PCI-HOST support, if possible 1014 - config B44_PCI_AUTOSELECT 1015 - bool 1016 - depends on B44 && SSB_PCIHOST_POSSIBLE 1017 - select SSB_PCIHOST 1018 - default y 1019 - 1020 - # Auto-select SSB PCICORE driver, if possible 1021 - config B44_PCICORE_AUTOSELECT 1022 - bool 1023 - depends on B44 && SSB_DRIVER_PCICORE_POSSIBLE 1024 - select SSB_DRIVER_PCICORE 1025 - default y 1026 - 1027 - config B44_PCI 1028 - bool 1029 - depends on B44_PCI_AUTOSELECT && B44_PCICORE_AUTOSELECT 1030 - default y 1031 - 1032 1000 config FORCEDETH 1033 1001 tristate "nForce Ethernet support" 1034 1002 depends on NET_PCI && PCI ··· 1433 1465 help 1434 1466 This driver supports the 10/100 Ethernet Lite from Xilinx. 1435 1467 1436 - config BCM63XX_ENET 1437 - tristate "Broadcom 63xx internal mac support" 1438 - depends on BCM63XX 1439 - select MII 1440 - select PHYLIB 1441 - help 1442 - This driver supports the ethernet MACs in the Broadcom 63xx 1443 - MIPS chipset family (BCM63XX). 1444 - 1445 1468 config FTMAC100 1446 1469 tristate "Faraday FTMAC100 10/100 Ethernet support" 1447 1470 depends on ARM ··· 1642 1683 To compile this driver as a module, choose M here: the module 1643 1684 will be called r8169. This is recommended. 1644 1685 1645 - config SB1250_MAC 1646 - tristate "SB1250 Gigabit Ethernet support" 1647 - depends on SIBYTE_SB1xxx_SOC 1648 - select PHYLIB 1649 - ---help--- 1650 - This driver supports Gigabit Ethernet interfaces based on the 1651 - Broadcom SiByte family of System-On-a-Chip parts. They include 1652 - the BCM1120, BCM1125, BCM1125H, BCM1250, BCM1255, BCM1280, BCM1455 1653 - and BCM1480 chips. 1654 - 1655 - To compile this driver as a module, choose M here: the module 1656 - will be called sb1250-mac. 1657 - 1658 1686 config SIS190 1659 1687 tristate "SiS190/SiS191 gigabit ethernet support" 1660 1688 depends on PCI ··· 1734 1788 1735 1789 To compile this driver as a module, choose M here. The module 1736 1790 will be called via-velocity. 1737 - 1738 - config TIGON3 1739 - tristate "Broadcom Tigon3 support" 1740 - depends on PCI 1741 - select PHYLIB 1742 - help 1743 - This driver supports Broadcom Tigon3 based gigabit Ethernet cards. 1744 - 1745 - To compile this driver as a module, choose M here: the module 1746 - will be called tg3. This is recommended. 1747 - 1748 - config BNX2 1749 - tristate "Broadcom NetXtremeII support" 1750 - depends on PCI 1751 - select CRC32 1752 - select FW_LOADER 1753 - help 1754 - This driver supports Broadcom NetXtremeII gigabit Ethernet cards. 1755 - 1756 - To compile this driver as a module, choose M here: the module 1757 - will be called bnx2. This is recommended. 1758 - 1759 - config CNIC 1760 - tristate "Broadcom CNIC support" 1761 - depends on PCI 1762 - select BNX2 1763 - select UIO 1764 - help 1765 - This driver supports offload features of Broadcom NetXtremeII 1766 - gigabit Ethernet cards. 1767 - 1768 - To compile this driver as a module, choose M here: the module 1769 - will be called cnic. This is recommended. 1770 1791 1771 1792 config SPIDER_NET 1772 1793 tristate "Spider Gigabit Ethernet driver" ··· 2239 2326 depends on PCI 2240 2327 help 2241 2328 Tehuti Networks 10G Ethernet NIC 2242 - 2243 - config BNX2X 2244 - tristate "Broadcom NetXtremeII 10Gb support" 2245 - depends on PCI 2246 - select FW_LOADER 2247 - select ZLIB_INFLATE 2248 - select LIBCRC32C 2249 - select MDIO 2250 - help 2251 - This driver supports Broadcom NetXtremeII 10 gigabit Ethernet cards. 2252 - To compile this driver as a module, choose M here: the module 2253 - will be called bnx2x. This is recommended. 2254 2329 2255 2330 config QLCNIC 2256 2331 tristate "QLOGIC QLCNIC 1/10Gb Converged Ethernet NIC Support"
-7
drivers/net/Makefile
··· 77 77 obj-$(CONFIG_NATSEMI) += natsemi.o 78 78 obj-$(CONFIG_NS83820) += ns83820.o 79 79 obj-$(CONFIG_FEALNX) += fealnx.o 80 - obj-$(CONFIG_TIGON3) += tg3.o 81 - obj-$(CONFIG_BNX2) += bnx2.o 82 - obj-$(CONFIG_CNIC) += cnic.o 83 - obj-$(CONFIG_BNX2X) += bnx2x/ 84 80 spidernet-y += spider_net.o spider_net_ethtool.o 85 81 obj-$(CONFIG_SPIDER_NET) += spidernet.o sungem_phy.o 86 82 obj-$(CONFIG_GELIC_NET) += ps3_gelic.o ··· 113 117 ifeq ($(CONFIG_FEC_MPC52xx_MDIO),y) 114 118 obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx_phy.o 115 119 endif 116 - obj-$(CONFIG_SB1250_MAC) += sb1250-mac.o 117 - obj-$(CONFIG_B44) += b44.o 118 120 obj-$(CONFIG_FORCEDETH) += forcedeth.o 119 - obj-$(CONFIG_BCM63XX_ENET) += bcm63xx_enet.o 120 121 obj-$(CONFIG_FTGMAC100) += ftgmac100.o 121 122 obj-$(CONFIG_FTMAC100) += ftmac100.o 122 123
drivers/net/b44.c drivers/net/ethernet/broadcom/b44.c
drivers/net/b44.h drivers/net/ethernet/broadcom/b44.h
drivers/net/bcm63xx_enet.c drivers/net/ethernet/broadcom/bcm63xx_enet.c
drivers/net/bcm63xx_enet.h drivers/net/ethernet/broadcom/bcm63xx_enet.h
drivers/net/bnx2.c drivers/net/ethernet/broadcom/bnx2.c
drivers/net/bnx2.h drivers/net/ethernet/broadcom/bnx2.h
drivers/net/bnx2_fw.h drivers/net/ethernet/broadcom/bnx2_fw.h
drivers/net/bnx2x/Makefile drivers/net/ethernet/broadcom/bnx2x/Makefile
drivers/net/bnx2x/bnx2x.h drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_cmn.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/bnx2x/bnx2x_cmn.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/bnx2x/bnx2x_dcb.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
drivers/net/bnx2x/bnx2x_dcb.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h
drivers/net/bnx2x/bnx2x_dump.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_dump.h
drivers/net/bnx2x/bnx2x_ethtool.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/bnx2x/bnx2x_fw_defs.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_fw_defs.h
drivers/net/bnx2x/bnx2x_fw_file_hdr.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_fw_file_hdr.h
drivers/net/bnx2x/bnx2x_hsi.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
drivers/net/bnx2x/bnx2x_init.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h
drivers/net/bnx2x/bnx2x_init_ops.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h
drivers/net/bnx2x/bnx2x_link.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
drivers/net/bnx2x/bnx2x_link.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h
drivers/net/bnx2x/bnx2x_main.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/bnx2x/bnx2x_reg.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
drivers/net/bnx2x/bnx2x_sp.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
drivers/net/bnx2x/bnx2x_sp.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
drivers/net/bnx2x/bnx2x_stats.c drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
drivers/net/bnx2x/bnx2x_stats.h drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h
+2 -2
drivers/net/cnic.c drivers/net/ethernet/broadcom/cnic.c
··· 45 45 #include "bnx2x/bnx2x_reg.h" 46 46 #include "bnx2x/bnx2x_fw_defs.h" 47 47 #include "bnx2x/bnx2x_hsi.h" 48 - #include "../scsi/bnx2i/57xx_iscsi_constants.h" 49 - #include "../scsi/bnx2i/57xx_iscsi_hsi.h" 48 + #include "../../../scsi/bnx2i/57xx_iscsi_constants.h" 49 + #include "../../../scsi/bnx2i/57xx_iscsi_hsi.h" 50 50 #include "cnic.h" 51 51 #include "cnic_defs.h" 52 52
drivers/net/cnic.h drivers/net/ethernet/broadcom/cnic.h
drivers/net/cnic_defs.h drivers/net/ethernet/broadcom/cnic_defs.h
drivers/net/cnic_if.h drivers/net/ethernet/broadcom/cnic_if.h
+1
drivers/net/ethernet/Kconfig
··· 14 14 source "drivers/net/ethernet/3com/Kconfig" 15 15 source "drivers/net/ethernet/8390/Kconfig" 16 16 source "drivers/net/ethernet/amd/Kconfig" 17 + source "drivers/net/ethernet/broadcom/Kconfig" 17 18 18 19 endif # ETHERNET
+1
drivers/net/ethernet/Makefile
··· 5 5 obj-$(CONFIG_NET_VENDOR_3COM) += 3com/ 6 6 obj-$(CONFIG_NET_VENDOR_8390) += 8390/ 7 7 obj-$(CONFIG_NET_VENDOR_AMD) += amd/ 8 + obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/
+119
drivers/net/ethernet/broadcom/Kconfig
··· 1 + # 2 + # Broadcom device configuration 3 + # 4 + 5 + config NET_VENDOR_BROADCOM 6 + bool "Broadcom devices" 7 + depends on (SSB_POSSIBLE && HAS_DMA) || PCI || BCM63XX || \ 8 + SIBYTE_SB1xxx_SOC 9 + ---help--- 10 + If you have a network (Ethernet) chipset belonging to this class, 11 + say Y. 12 + 13 + Note that the answer to this question does not directly affect 14 + the kernel: saying N will just case the configurator to skip all 15 + the questions regarding AMD chipsets. If you say Y, you will be asked 16 + for your specific chipset/driver in the following questions. 17 + 18 + if NET_VENDOR_BROADCOM 19 + 20 + config B44 21 + tristate "Broadcom 440x/47xx ethernet support" 22 + depends on SSB_POSSIBLE && HAS_DMA 23 + select SSB 24 + select MII 25 + ---help--- 26 + If you have a network (Ethernet) controller of this type, say Y 27 + or M and read the Ethernet-HOWTO, available from 28 + <http://www.tldp.org/docs.html#howto>. 29 + 30 + To compile this driver as a module, choose M here. The module 31 + will be called b44. 32 + 33 + # Auto-select SSB PCI-HOST support, if possible 34 + config B44_PCI_AUTOSELECT 35 + bool 36 + depends on B44 && SSB_PCIHOST_POSSIBLE 37 + select SSB_PCIHOST 38 + default y 39 + 40 + # Auto-select SSB PCICORE driver, if possible 41 + config B44_PCICORE_AUTOSELECT 42 + bool 43 + depends on B44 && SSB_DRIVER_PCICORE_POSSIBLE 44 + select SSB_DRIVER_PCICORE 45 + default y 46 + 47 + config B44_PCI 48 + bool 49 + depends on B44_PCI_AUTOSELECT && B44_PCICORE_AUTOSELECT 50 + default y 51 + 52 + config BCM63XX_ENET 53 + tristate "Broadcom 63xx internal mac support" 54 + depends on BCM63XX 55 + select MII 56 + select PHYLIB 57 + help 58 + This driver supports the ethernet MACs in the Broadcom 63xx 59 + MIPS chipset family (BCM63XX). 60 + 61 + config BNX2 62 + tristate "Broadcom NetXtremeII support" 63 + depends on PCI 64 + select CRC32 65 + select FW_LOADER 66 + ---help--- 67 + This driver supports Broadcom NetXtremeII gigabit Ethernet cards. 68 + 69 + To compile this driver as a module, choose M here: the module 70 + will be called bnx2. This is recommended. 71 + 72 + config CNIC 73 + tristate "Broadcom CNIC support" 74 + depends on PCI 75 + select BNX2 76 + select UIO 77 + ---help--- 78 + This driver supports offload features of Broadcom NetXtremeII 79 + gigabit Ethernet cards. 80 + 81 + To compile this driver as a module, choose M here: the module 82 + will be called cnic. This is recommended. 83 + 84 + config SB1250_MAC 85 + tristate "SB1250 Gigabit Ethernet support" 86 + depends on SIBYTE_SB1xxx_SOC 87 + select PHYLIB 88 + ---help--- 89 + This driver supports Gigabit Ethernet interfaces based on the 90 + Broadcom SiByte family of System-On-a-Chip parts. They include 91 + the BCM1120, BCM1125, BCM1125H, BCM1250, BCM1255, BCM1280, BCM1455 92 + and BCM1480 chips. 93 + 94 + To compile this driver as a module, choose M here: the module 95 + will be called sb1250-mac. 96 + 97 + config TIGON3 98 + tristate "Broadcom Tigon3 support" 99 + depends on PCI 100 + select PHYLIB 101 + ---help--- 102 + This driver supports Broadcom Tigon3 based gigabit Ethernet cards. 103 + 104 + To compile this driver as a module, choose M here: the module 105 + will be called tg3. This is recommended. 106 + 107 + config BNX2X 108 + tristate "Broadcom NetXtremeII 10Gb support" 109 + depends on PCI 110 + select FW_LOADER 111 + select ZLIB_INFLATE 112 + select LIBCRC32C 113 + select MDIO 114 + ---help--- 115 + This driver supports Broadcom NetXtremeII 10 gigabit Ethernet cards. 116 + To compile this driver as a module, choose M here: the module 117 + will be called bnx2x. This is recommended. 118 + 119 + endif # NET_VENDOR_BROADCOM
+11
drivers/net/ethernet/broadcom/Makefile
··· 1 + # 2 + # Makefile for the Broadcom network device drivers. 3 + # 4 + 5 + obj-$(CONFIG_B44) += b44.o 6 + obj-$(CONFIG_BCM63XX_ENET) += bcm63xx_enet.o 7 + obj-$(CONFIG_BNX2) += bnx2.o 8 + obj-$(CONFIG_CNIC) += cnic.o 9 + obj-$(CONFIG_BNX2X) += bnx2x/ 10 + obj-$(CONFIG_SB1250_MAC) += sb1250-mac.o 11 + obj-$(CONFIG_TIGON3) += tg3.o
drivers/net/sb1250-mac.c drivers/net/ethernet/broadcom/sb1250-mac.c
drivers/net/tg3.c drivers/net/ethernet/broadcom/tg3.c
drivers/net/tg3.h drivers/net/ethernet/broadcom/tg3.h
+1 -1
drivers/scsi/bnx2fc/bnx2fc.h
··· 58 58 59 59 #include "57xx_hsi_bnx2fc.h" 60 60 #include "bnx2fc_debug.h" 61 - #include "../../net/cnic_if.h" 61 + #include "../../net/ethernet/broadcom/cnic_if.h" 62 62 #include "bnx2fc_constants.h" 63 63 64 64 #define BNX2FC_NAME "bnx2fc"
+1 -1
drivers/scsi/bnx2i/bnx2i.h
··· 40 40 #include <scsi/libiscsi.h> 41 41 #include <scsi/scsi_transport_iscsi.h> 42 42 43 - #include "../../net/cnic_if.h" 43 + #include "../../net/ethernet/broadcom/cnic_if.h" 44 44 #include "57xx_iscsi_hsi.h" 45 45 #include "57xx_iscsi_constants.h" 46 46