From a8bf95d0249565f4210ccab5c13232d501ce0c2d Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Wed, 22 Apr 2009 22:06:58 +0000 Subject: - importing updated version from SLAC as of 20090422 --- bsd_eth_drivers/libbsdport/modini.c | 100 ++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 bsd_eth_drivers/libbsdport/modini.c (limited to 'bsd_eth_drivers/libbsdport/modini.c') diff --git a/bsd_eth_drivers/libbsdport/modini.c b/bsd_eth_drivers/libbsdport/modini.c new file mode 100644 index 0000000..3156c16 --- /dev/null +++ b/bsd_eth_drivers/libbsdport/modini.c @@ -0,0 +1,100 @@ +#include "devicet.h" +#include + +struct { + struct device dev; + struct { + char space[4096]; + } softc; +} thele = { + { + bushdr: { +/* mvme5500 { x, x, x } */ +/* qemu */ { 0, 3, 0 } + }, + type: DEV_TYPE_PCI, + name: "le", + nameunit: { 'l', 'e', '1', 0}, + unit: 1, + }, + { + { 0, } + } +}; + +void *thelesoftc = &thele.softc; + + +struct { + struct device dev; + struct { + char space[4096]; + } softc; +} theem = { + { + bushdr: { +/* mvme5500 { 2, 0xa, 0 } */ +/* cpci */ { 7, 0, 0 } + }, + type: DEV_TYPE_PCI, + name: "em", + nameunit: { 'e', 'm', '1', 0}, + unit: 1, + }, + { + { 0, } + } +}; + +void *theemsoftc = &theem.softc; + +struct { + struct device dev; + struct { + char space[4096]; + } softc; +} thepcn = { + { + bushdr: { +/* mvme5500 { x, 0xx, x } */ +/* cpci */ { 4, 6, 0 } + }, + type: DEV_TYPE_PCI, + name: "pcn", + nameunit: { 'p', 'c', 'n', '1', 0}, + unit: 1, + }, + { + { 0, } + } +}; + +void *thepcnsoftc = &thepcn.softc; + +extern driver_t rtems_em_driver; +extern driver_t rtems_le_pci_driver; +extern driver_t rtems_pcn_driver; + +driver_t *rtems_netdriver_table[] = { + &rtems_em_driver, + &rtems_le_pci_driver, + &rtems_pcn_driver, + 0 +}; + +struct rtems_bsdnet_ifconfig pcncfg = { + name: "pcn", + rbuf_count:20, + xbuf_count:3, +}; + +#ifdef DEBUG_MODULAR +void +_cexpModuleInitialize(void *unused) +{ +extern void * rtems_callout_initialize(); +extern void * rtems_taskqueue_initialize(); + rtems_callout_initialize(); + rtems_taskqueue_initialize(); +} +#endif -- cgit v1.2.3