net: add Realtek 8139 Ethernet controller support
Subsystems (2)
RFC 5/5 net: add Realtek 8139 Ethernet controller support
This driver is based on Linux 2.6.39 8139too driver.
Signed-off-by Antony Pavlov <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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