Skip to contentSkip to conversation

net: add Realtek 8139 Ethernet controller support

RFC Superseded Antony Pavlov 1 participant 1 message Aug 11, 2011

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC 5/5 net: add Realtek 8139 Ethernet controller support

This driver is based on Linux 2.6.39 8139too driver.

---
 drivers/net/Kconfig     |    8 +
 drivers/pci/Makefile    |    1 +
 drivers/pci/rtl8139.c   |  667 +++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/pci_ids.h |    5 +
 4 files changed, 681 insertions(+), 0 deletions(-)
 create mode 100644 drivers/pci/rtl8139.c
drivers/net/Kconfig +8 -0
index 19e35db..eded3ee 100644
@@ -100,6 +100,14 @@ config TSE_USE_DEDICATED_DESC_MEM
 	  reserved with a malloc but directly mapped to the memory
 	  address (defined in config.h)
 
+config 8139
+	depends on PCI
+	bool "RealTek RTL-8139 PCI Fast Ethernet Adapter support"
+	select MIIDEV
+	help
+	  This is a driver for the Fast Ethernet PCI network cards based on
+	  the RTL 8139 chips.
+
 source "drivers/net/usb/Kconfig"
 
 endmenu
drivers/pci/Makefile +1 -0
index 69aba36..74048f9 100644
@@ -2,6 +2,7 @@
 # Makefile for the PCI bus specific drivers.
 #
 obj-y		+= pci.o
+obj-$(CONFIG_8139)	+= rtl8139.o
 
 ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
 
drivers/pci/rtl8139.c new file +667 -0

667 lines not on this page · raw message

include/linux/pci_ids.h +5 -0
index 49e2954..17ac7fd 100644
@@ -134,3 +134,8 @@
 #define PCI_CLASS_SP_OTHER		0x1180
 
 #define PCI_CLASS_OTHERS		0xff
+
+/* Vendors and devices.  Sort key: vendor first, device next. */
+
+#define PCI_VENDOR_ID_REALTEK		0x10ec
+#define PCI_DEVICE_ID_REALTEK_8139	0x8139
Signature · 7 lines
1.7.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox