]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
bmac/mace/macmace/mac89x0/cs89x0: Move the Macintosh (Apple) drivers
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 16 May 2011 08:39:01 +0000 (01:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 11 Aug 2011 23:29:07 +0000 (16:29 -0700)
Move the Apple drivers into driver/net/ethernet/apple/ and make the
necessary Kconfig and Makefile changes.

CC: Paul Mackerras <paulus@samba.org>
CC: Paul Mackerras <paulus@au.ibm.com>
CC: Russell Nelson <nelson@crynwr.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
14 files changed:
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/ethernet/Kconfig
drivers/net/ethernet/Makefile
drivers/net/ethernet/apple/Kconfig [new file with mode: 0644]
drivers/net/ethernet/apple/Makefile [new file with mode: 0644]
drivers/net/ethernet/apple/bmac.c [moved from drivers/net/bmac.c with 100% similarity]
drivers/net/ethernet/apple/bmac.h [moved from drivers/net/bmac.h with 100% similarity]
drivers/net/ethernet/apple/cs89x0.c [moved from drivers/net/cs89x0.c with 100% similarity]
drivers/net/ethernet/apple/cs89x0.h [moved from drivers/net/cs89x0.h with 100% similarity]
drivers/net/ethernet/apple/mac89x0.c [moved from drivers/net/mac89x0.c with 100% similarity]
drivers/net/ethernet/apple/mace.c [moved from drivers/net/mace.c with 100% similarity]
drivers/net/ethernet/apple/mace.h [moved from drivers/net/mace.h with 100% similarity]
drivers/net/ethernet/apple/macmace.c [moved from drivers/net/macmace.c with 100% similarity]

index a7ec50f197fc0be64157aafaccb481b404a63689..d81f8f950124f816d8d5bcb7e0cb6a6bc59ce45f 100644 (file)
@@ -237,52 +237,6 @@ config MACB
 
 source "drivers/net/arm/Kconfig"
 
-config MACE
-       tristate "MACE (Power Mac ethernet) support"
-       depends on PPC_PMAC && PPC32
-       select CRC32
-       help
-         Power Macintoshes and clones with Ethernet built-in on the
-         motherboard will usually use a MACE (Medium Access Control for
-         Ethernet) interface. Say Y to include support for the MACE chip.
-
-         To compile this driver as a module, choose M here: the module
-         will be called mace.
-
-config MACE_AAUI_PORT
-       bool "Use AAUI port instead of TP by default"
-       depends on MACE
-       help
-         Some Apple machines (notably the Apple Network Server) which use the
-         MACE ethernet chip have an Apple AUI port (small 15-pin connector),
-         instead of an 8-pin RJ45 connector for twisted-pair ethernet.  Say
-         Y here if you have such a machine.  If unsure, say N.
-         The driver will default to AAUI on ANS anyway, and if you use it as
-         a module, you can provide the port_aaui=0|1 to force the driver.
-
-config BMAC
-       tristate "BMAC (G3 ethernet) support"
-       depends on PPC_PMAC && PPC32
-       select CRC32
-       help
-         Say Y for support of BMAC Ethernet interfaces. These are used on G3
-         computers.
-
-         To compile this driver as a module, choose M here: the module
-         will be called bmac.
-
-config MAC89x0
-       tristate "Macintosh CS89x0 based ethernet cards"
-       depends on MAC
-       ---help---
-         Support for CS89x0 chipset based Ethernet cards.  If you have a
-         Nubus or LC-PDS network (Ethernet) card of this type, say Y and
-         read the Ethernet-HOWTO, available from
-         <http://www.tldp.org/docs.html#howto>.
-
-         To compile this driver as a module, choose M here. This module will
-         be called mac89x0.
-
 config MACSONIC
        tristate "Macintosh SONIC based ethernet (onboard, NuBus, LC, CS)"
        depends on MAC
@@ -296,16 +250,6 @@ config MACSONIC
          To compile this driver as a module, choose M here. This module will
          be called macsonic.
 
-config MACMACE
-       bool "Macintosh (AV) onboard MACE ethernet"
-       depends on MAC
-       select CRC32
-       help
-         Support for the onboard AMD 79C940 MACE Ethernet controller used in
-         the 660AV and 840AV Macintosh.  If you have one of these Macintoshes
-         say Y and read the Ethernet-HOWTO, available from
-         <http://www.tldp.org/docs.html#howto>.
-
 config KORINA
        tristate "Korina (IDT RC32434) Ethernet support"
        depends on NET_ETHERNET && MIKROTIK_RB532
@@ -677,25 +621,6 @@ config FORCEDETH
          To compile this driver as a module, choose M here. The module
          will be called forcedeth.
 
-config CS89x0
-       tristate "CS89x0 support"
-       depends on NET_ETHERNET && (ISA || EISA || MACH_IXDP2351 \
-               || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440)
-       ---help---
-         Support for CS89x0 chipset based Ethernet cards. If you have a
-         network (Ethernet) card of this type, say Y and read the
-         Ethernet-HOWTO, available from
-         <http://www.tldp.org/docs.html#howto> as well as
-         <file:Documentation/networking/cs89x0.txt>.
-
-         To compile this driver as a module, choose M here. The module
-         will be called cs89x0.
-
-config CS89x0_NONISA_IRQ
-       def_bool y
-       depends on CS89x0 != n
-       depends on MACH_IXDP2351 || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440
-
 config TC35815
        tristate "TOSHIBA TC35815 Ethernet support"
        depends on NET_PCI && PCI && MIPS
index b54e308fc19b7fc3491ad51c3866c1072a7b79de..79f93f08c49094edde209cc71aa0e7414a2cdbed 100644 (file)
@@ -38,9 +38,6 @@ obj-$(CONFIG_PLIP) += plip.o
 
 obj-$(CONFIG_ROADRUNNER) += rrunner.o
 
-obj-$(CONFIG_MACE) += mace.o
-obj-$(CONFIG_BMAC) += bmac.o
-
 obj-$(CONFIG_TLAN) += tlan.o
 obj-$(CONFIG_SIS190) += sis190.o
 obj-$(CONFIG_SIS900) += sis900.o
@@ -133,10 +130,7 @@ obj-$(CONFIG_KORINA) += korina.o
 obj-$(CONFIG_MIPS_JAZZ_SONIC) += jazzsonic.o
 obj-$(CONFIG_MIPS_SIM_NET) += mipsnet.o
 obj-$(CONFIG_SGI_IOC3_ETH) += ioc3-eth.o
-obj-$(CONFIG_CS89x0) += cs89x0.o
 obj-$(CONFIG_MACSONIC) += macsonic.o
-obj-$(CONFIG_MACMACE) += macmace.o
-obj-$(CONFIG_MAC89x0) += mac89x0.o
 obj-$(CONFIG_TUN) += tun.o
 obj-$(CONFIG_VETH) += veth.o
 obj-$(CONFIG_NET_NETX) += netx-eth.o
index c38e9026fe075fac9b1e8ee4c0c104a9fb3b88ab..c3c415d853b7f61e394a694b8c93c697f921b266 100644 (file)
@@ -14,6 +14,7 @@ if ETHERNET
 source "drivers/net/ethernet/3com/Kconfig"
 source "drivers/net/ethernet/8390/Kconfig"
 source "drivers/net/ethernet/amd/Kconfig"
+source "drivers/net/ethernet/apple/Kconfig"
 source "drivers/net/ethernet/broadcom/Kconfig"
 source "drivers/net/ethernet/brocade/Kconfig"
 source "drivers/net/ethernet/chelsio/Kconfig"
index 75d7a0280c5332a355baa17f4fcb6aca27835a8d..b67b88d5afd9c113e1cc7a676717a5e168ae3918 100644 (file)
@@ -5,6 +5,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_BROADCOM) += broadcom/
 obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/
 obj-$(CONFIG_NET_VENDOR_CHELSIO) += chelsio/
diff --git a/drivers/net/ethernet/apple/Kconfig b/drivers/net/ethernet/apple/Kconfig
new file mode 100644 (file)
index 0000000..fc796bc
--- /dev/null
@@ -0,0 +1,96 @@
+#
+# Apple device configuration
+#
+
+config NET_VENDOR_APPLE
+       bool "Apple devices"
+       depends on (PPC_PMAC && PPC32) || MAC || ISA || EISA || MACH_IXDP2351 \
+                  || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440
+       ---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 IBM devices. If you say Y, you will be asked for
+         your specific card in the following questions.
+
+if NET_VENDOR_APPLE
+
+config MACE
+       tristate "MACE (Power Mac ethernet) support"
+       depends on PPC_PMAC && PPC32
+       select CRC32
+       ---help---
+         Power Macintoshes and clones with Ethernet built-in on the
+         motherboard will usually use a MACE (Medium Access Control for
+         Ethernet) interface. Say Y to include support for the MACE chip.
+
+         To compile this driver as a module, choose M here: the module
+         will be called mace.
+
+config MACE_AAUI_PORT
+       bool "Use AAUI port instead of TP by default"
+       depends on MACE
+       ---help---
+         Some Apple machines (notably the Apple Network Server) which use the
+         MACE ethernet chip have an Apple AUI port (small 15-pin connector),
+         instead of an 8-pin RJ45 connector for twisted-pair ethernet.  Say
+         Y here if you have such a machine.  If unsure, say N.
+         The driver will default to AAUI on ANS anyway, and if you use it as
+         a module, you can provide the port_aaui=0|1 to force the driver.
+
+config BMAC
+       tristate "BMAC (G3 ethernet) support"
+       depends on PPC_PMAC && PPC32
+       select CRC32
+       ---help---
+         Say Y for support of BMAC Ethernet interfaces. These are used on G3
+         computers.
+
+         To compile this driver as a module, choose M here: the module
+         will be called bmac.
+
+config MAC89x0
+       tristate "Macintosh CS89x0 based ethernet cards"
+       depends on MAC
+       ---help---
+         Support for CS89x0 chipset based Ethernet cards.  If you have a
+         Nubus or LC-PDS network (Ethernet) card of this type, say Y and
+         read the Ethernet-HOWTO, available from
+         <http://www.tldp.org/docs.html#howto>.
+
+         To compile this driver as a module, choose M here. This module will
+         be called mac89x0.
+
+config MACMACE
+       bool "Macintosh (AV) onboard MACE ethernet"
+       depends on MAC
+       select CRC32
+       ---help---
+         Support for the onboard AMD 79C940 MACE Ethernet controller used in
+         the 660AV and 840AV Macintosh.  If you have one of these Macintoshes
+         say Y and read the Ethernet-HOWTO, available from
+         <http://www.tldp.org/docs.html#howto>.
+
+config CS89x0
+       tristate "CS89x0 support"
+       depends on (ISA || EISA || MACH_IXDP2351 \
+               || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440)
+       ---help---
+         Support for CS89x0 chipset based Ethernet cards. If you have a
+         network (Ethernet) card of this type, say Y and read the
+         Ethernet-HOWTO, available from
+         <http://www.tldp.org/docs.html#howto> as well as
+         <file:Documentation/networking/cs89x0.txt>.
+
+         To compile this driver as a module, choose M here. The module
+         will be called cs89x0.
+
+config CS89x0_NONISA_IRQ
+       def_bool y
+       depends on CS89x0 != n
+       depends on MACH_IXDP2351 || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440
+
+endif # NET_VENDOR_APPLE
diff --git a/drivers/net/ethernet/apple/Makefile b/drivers/net/ethernet/apple/Makefile
new file mode 100644 (file)
index 0000000..9d30086
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Makefile for the Apple network device drivers.
+#
+
+obj-$(CONFIG_MACE) += mace.o
+obj-$(CONFIG_BMAC) += bmac.o
+obj-$(CONFIG_MAC89x0) += mac89x0.o
+obj-$(CONFIG_CS89x0) += cs89x0.o
+obj-$(CONFIG_MACMACE) += macmace.o