Skip to contentSkip to conversation

Add PCINet Driver

PATCH New Ira W. Snyder 1 participant 1 message Aug 18, 2008 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add PCINet Driver

This adds a virtual network interface that uses the PCI bus for communication. This is extremely useful for boards in PCISLAVE mode, so you do not need extra cables to communicate with them.

There is a corresponding Linux driver to be run on the host system.

---
 cpu/mpc83xx/cpu.c    |    4 +-
 drivers/net/Makefile |    1 +
 drivers/net/pcinet.c |  503 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/pcinet.h |   73 ++++++++
 4 files changed, 580 insertions(+), 1 deletions(-)
 create mode 100644 drivers/net/pcinet.c
 create mode 100644 drivers/net/pcinet.h
cpu/mpc83xx/cpu.c +3 -1
index aa9b18d..79c0363 100644
@@ -364,6 +364,8 @@ int cpu_eth_init(bd_t *bis)
 #if defined(CONFIG_TSEC_ENET)
 	tsec_standard_init(bis);
 #endif
-
+#ifdef CONFIG_PCINET_ETHERNET
+	pcinet_initialize(bis, 0, "PCINET");
+#endif
 	return 0;
 }
drivers/net/Makefile +1 -0
index 439c354..2435e63 100644
@@ -52,6 +52,7 @@ COBJS-$(CONFIG_NETCONSOLE) += netconsole.o
 COBJS-$(CONFIG_DRIVER_NS7520_ETHERNET) += ns7520_eth.o
 COBJS-$(CONFIG_NS8382X) += ns8382x.o
 COBJS-$(CONFIG_DRIVER_NS9750_ETHERNET) += ns9750_eth.o
+COBJS-$(CONFIG_PCINET_ETHERNET) += pcinet.o
 COBJS-$(CONFIG_PCNET) += pcnet.o
 COBJS-$(CONFIG_PLB2800_ETHER) += plb2800_eth.o
 COBJS-$(CONFIG_DRIVER_RTL8019) += rtl8019.o
drivers/net/pcinet.c new file +503 -0

503 lines not on this page · raw message

drivers/net/pcinet.h new file +73 -0

73 lines not on this page · raw message

Signature · 1 line
1.5.4.3