summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetko Manolov <petkan@users.sourceforge.net>2003-01-28 20:48:24 +1100
committerGreg Kroah-Hartman <greg@kroah.com>2003-01-28 20:48:24 +1100
commit1fda844ac8613c0e2b74f8aef90fee7194fbcea6 (patch)
treeaf66dfd34b8a439f8129df8fcb598c4e37962fad
parent212659ca448cdce099d9f83a6af82df2cb3851b4 (diff)
[PATCH] USB: pegasus & mii cset
Some ethernet drivers other than those in .../drivers/net need generic MII code too and this cset shows how we do it for .../drivers/usb/net; For now only pegasus.c is using this feature, but as soon as we find more MII compliant controllers we'll put them in Makefile.mii too. Note: drivers which use the generic mii routines should bracket the code with #ifdef CONFIG_MII #endif since CONFIG_MII may not be present. See pegasus.c for more details.
-rw-r--r--drivers/net/Kconfig8
-rw-r--r--drivers/net/Makefile4
-rw-r--r--drivers/usb/net/Makefile.mii5
3 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 3a66d85f19ed..49d1b678ba27 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -212,6 +212,14 @@ config NET_ETHERNET
kernel: saying N will just cause the configurator to skip all
the questions about Ethernet network cards. If unsure, say N.
+config MII
+ tristate "generic Media Independent Interface device support"
+ depends on NET_ETHERNET
+ help
+ Most ethernet controllers have MII transceiver either as an external
+ or internal device. It is safe to say Y or M here even if your
+ ethernet card lack MII.
+
config ARM_AM79C961A
bool "ARM EBSA110 AM79C961A support"
depends on NET_ETHERNET && ARM && ARCH_EBSA110
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index f6a0725f3925..f0781ba2d1de 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -63,6 +63,7 @@ obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o mii.o
# end link order section
#
+obj-$(CONFIG_MII) += mii.o
obj-$(CONFIG_AIRONET4500) += aironet4500_core.o
obj-$(CONFIG_AIRONET4500_CS) += aironet4500_core.o
obj-$(CONFIG_AIRONET4500_NONCS) += aironet4500_card.o
@@ -199,3 +200,6 @@ obj-$(CONFIG_NET_WIRELESS) += wireless/
obj-$(CONFIG_NET_TULIP) += tulip/
obj-$(CONFIG_HAMRADIO) += hamradio/
obj-$(CONFIG_IRDA) += irda/
+
+
+include $(TOPDIR)/drivers/usb/net/Makefile.mii
diff --git a/drivers/usb/net/Makefile.mii b/drivers/usb/net/Makefile.mii
new file mode 100644
index 000000000000..5fa1204701a2
--- /dev/null
+++ b/drivers/usb/net/Makefile.mii
@@ -0,0 +1,5 @@
+#
+# Makefile for USB Network drivers which require generic MII code.
+#
+
+obj-$(CONFIG_USB_PEGASUS) += mii.o