Przeglądaj źródła

atl*: Move the Atheros drivers

Move the Atheros drivers into drivers/net/ethernet/atheros/ and
make the necessary Kconfig and Makefile changes.

CC: Jay Cliburn <jcliburn@gmail.com>
CC: Chris Snook <chris.snook@gmail.com>
CC: Jie Yang <jie.yang@atheros.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Jeff Kirsher 14 lat temu
rodzic
commit
2b133ad6e9

+ 1 - 1
MAINTAINERS

@@ -1282,7 +1282,7 @@ L:	netdev@vger.kernel.org
 W:	http://sourceforge.net/projects/atl1
 W:	http://atl1.sourceforge.net
 S:	Maintained
-F:	drivers/net/atlx/
+F:	drivers/net/ethernet/atheros/
 
 ATM
 M:	Chas Williams <chas@cmf.nrl.navy.mil>

+ 0 - 45
drivers/net/Kconfig

@@ -760,17 +760,6 @@ config FEC_MPC52xx_MDIO
 	  If not sure, enable.
 	  If compiled as module, it will be called fec_mpc52xx_phy.
 
-config ATL2
-	tristate "Atheros L2 Fast Ethernet support"
-	depends on PCI
-	select CRC32
-	select MII
-	help
-	  This driver supports the Atheros L2 fast ethernet adapter.
-
-	  To compile this driver as a module, choose M here.  The module
-	  will be called atl2.
-
 config XILINX_EMACLITE
 	tristate "Xilinx 10/100 Ethernet Lite support"
 	depends on PPC32 || MICROBLAZE
@@ -1031,40 +1020,6 @@ config XILINX_LL_TEMAC
 	  This driver supports the Xilinx 10/100/1000 LocalLink TEMAC
 	  core used in Xilinx Spartan and Virtex FPGAs
 
-config ATL1
-	tristate "Atheros/Attansic L1 Gigabit Ethernet support"
-	depends on PCI
-	select CRC32
-	select MII
-	help
-	  This driver supports the Atheros/Attansic L1 gigabit ethernet
-	  adapter.
-
-	  To compile this driver as a module, choose M here.  The module
-	  will be called atl1.
-
-config ATL1E
-	tristate "Atheros L1E Gigabit Ethernet support (EXPERIMENTAL)"
-	depends on PCI && EXPERIMENTAL
-	select CRC32
-	select MII
-	help
-	  This driver supports the Atheros L1E gigabit ethernet adapter.
-
-	  To compile this driver as a module, choose M here.  The module
-	  will be called atl1e.
-
-config ATL1C
-	tristate "Atheros L1C Gigabit Ethernet support (EXPERIMENTAL)"
-	depends on PCI && EXPERIMENTAL
-	select CRC32
-	select MII
-	help
-	  This driver supports the Atheros L1C gigabit ethernet adapter.
-
-	  To compile this driver as a module, choose M here.  The module
-	  will be called atl1c.
-
 config JME
 	tristate "JMicron(R) PCI-Express Gigabit Ethernet support"
 	depends on PCI

+ 0 - 4
drivers/net/Makefile

@@ -13,10 +13,6 @@ obj-$(CONFIG_TI_DAVINCI_CPDMA) += davinci_cpdma.o
 obj-$(CONFIG_IP1000) += ipg.o
 obj-$(CONFIG_CAN) += can/
 obj-$(CONFIG_BONDING) += bonding/
-obj-$(CONFIG_ATL1) += atlx/
-obj-$(CONFIG_ATL2) += atlx/
-obj-$(CONFIG_ATL1E) += atl1e/
-obj-$(CONFIG_ATL1C) += atl1c/
 obj-$(CONFIG_GIANFAR) += gianfar_driver.o
 obj-$(CONFIG_PTP_1588_CLOCK_GIANFAR) += gianfar_ptp.o
 obj-$(CONFIG_JME) += jme.o

+ 1 - 0
drivers/net/ethernet/Kconfig

@@ -14,6 +14,7 @@ if ETHERNET
 source "drivers/net/ethernet/3com/Kconfig"
 source "drivers/net/ethernet/amd/Kconfig"
 source "drivers/net/ethernet/apple/Kconfig"
+source "drivers/net/ethernet/atheros/Kconfig"
 source "drivers/net/ethernet/broadcom/Kconfig"
 source "drivers/net/ethernet/brocade/Kconfig"
 source "drivers/net/ethernet/chelsio/Kconfig"

+ 1 - 0
drivers/net/ethernet/Makefile

@@ -6,6 +6,7 @@ obj-$(CONFIG_NET_VENDOR_3COM) += 3com/
 obj-$(CONFIG_NET_VENDOR_8390) += 8390/
 obj-$(CONFIG_NET_VENDOR_AMD) += amd/
 obj-$(CONFIG_NET_VENDOR_APPLE) += apple/
+obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/
 obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/
 obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/
 obj-$(CONFIG_NET_VENDOR_CHELSIO) += chelsio/

+ 65 - 0
drivers/net/ethernet/atheros/Kconfig

@@ -0,0 +1,65 @@
+#
+# Atheros device configuration
+#
+
+config NET_VENDOR_ATHEROS
+	bool "Atheros devices"
+	depends on PCI
+	---help---
+	  If you have a network (Ethernet) card belonging to this class, say Y
+	  and read the Ethernet-HOWTO, available from
+	  <http://www.tldp.org/docs.html#howto>.
+
+	  Note that the answer to this question doesn't directly affect the
+	  kernel: saying N will just cause the configurator to skip all
+	  the questions about Atheros devices. If you say Y, you will be asked
+	  for your specific card in the following questions.
+
+if NET_VENDOR_ATHEROS
+
+config ATL2
+	tristate "Atheros L2 Fast Ethernet support"
+	depends on PCI
+	select CRC32
+	select MII
+	---help---
+	  This driver supports the Atheros L2 fast ethernet adapter.
+
+	  To compile this driver as a module, choose M here.  The module
+	  will be called atl2.
+
+config ATL1
+	tristate "Atheros/Attansic L1 Gigabit Ethernet support"
+	depends on PCI
+	select CRC32
+	select MII
+	---help---
+	  This driver supports the Atheros/Attansic L1 gigabit ethernet
+	  adapter.
+
+	  To compile this driver as a module, choose M here.  The module
+	  will be called atl1.
+
+config ATL1E
+	tristate "Atheros L1E Gigabit Ethernet support (EXPERIMENTAL)"
+	depends on PCI && EXPERIMENTAL
+	select CRC32
+	select MII
+	---help---
+	  This driver supports the Atheros L1E gigabit ethernet adapter.
+
+	  To compile this driver as a module, choose M here.  The module
+	  will be called atl1e.
+
+config ATL1C
+	tristate "Atheros L1C Gigabit Ethernet support (EXPERIMENTAL)"
+	depends on PCI && EXPERIMENTAL
+	select CRC32
+	select MII
+	---help---
+	  This driver supports the Atheros L1C gigabit ethernet adapter.
+
+	  To compile this driver as a module, choose M here.  The module
+	  will be called atl1c.
+
+endif # NET_VENDOR_ATHEROS

+ 8 - 0
drivers/net/ethernet/atheros/Makefile

@@ -0,0 +1,8 @@
+#
+# Makefile for the Atheros network device drivers.
+#
+
+obj-$(CONFIG_ATL1) += atlx/
+obj-$(CONFIG_ATL2) += atlx/
+obj-$(CONFIG_ATL1E) += atl1e/
+obj-$(CONFIG_ATL1C) += atl1c/

+ 0 - 0
drivers/net/atl1c/Makefile → drivers/net/ethernet/atheros/atl1c/Makefile


+ 0 - 0
drivers/net/atl1c/atl1c.h → drivers/net/ethernet/atheros/atl1c/atl1c.h


+ 0 - 0
drivers/net/atl1c/atl1c_ethtool.c → drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c


+ 0 - 0
drivers/net/atl1c/atl1c_hw.c → drivers/net/ethernet/atheros/atl1c/atl1c_hw.c


+ 0 - 0
drivers/net/atl1c/atl1c_hw.h → drivers/net/ethernet/atheros/atl1c/atl1c_hw.h


+ 0 - 0
drivers/net/atl1c/atl1c_main.c → drivers/net/ethernet/atheros/atl1c/atl1c_main.c


+ 0 - 0
drivers/net/atl1e/Makefile → drivers/net/ethernet/atheros/atl1e/Makefile


+ 0 - 0
drivers/net/atl1e/atl1e.h → drivers/net/ethernet/atheros/atl1e/atl1e.h


+ 0 - 0
drivers/net/atl1e/atl1e_ethtool.c → drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c


+ 0 - 0
drivers/net/atl1e/atl1e_hw.c → drivers/net/ethernet/atheros/atl1e/atl1e_hw.c


+ 0 - 0
drivers/net/atl1e/atl1e_hw.h → drivers/net/ethernet/atheros/atl1e/atl1e_hw.h


+ 0 - 0
drivers/net/atl1e/atl1e_main.c → drivers/net/ethernet/atheros/atl1e/atl1e_main.c


+ 0 - 0
drivers/net/atl1e/atl1e_param.c → drivers/net/ethernet/atheros/atl1e/atl1e_param.c


+ 0 - 0
drivers/net/atlx/Makefile → drivers/net/ethernet/atheros/atlx/Makefile


+ 0 - 0
drivers/net/atlx/atl1.c → drivers/net/ethernet/atheros/atlx/atl1.c


+ 0 - 0
drivers/net/atlx/atl1.h → drivers/net/ethernet/atheros/atlx/atl1.h


+ 0 - 0
drivers/net/atlx/atl2.c → drivers/net/ethernet/atheros/atlx/atl2.c


+ 0 - 0
drivers/net/atlx/atl2.h → drivers/net/ethernet/atheros/atlx/atl2.h


+ 0 - 0
drivers/net/atlx/atlx.c → drivers/net/ethernet/atheros/atlx/atlx.c


+ 0 - 0
drivers/net/atlx/atlx.h → drivers/net/ethernet/atheros/atlx/atlx.h