summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/modini.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd_eth_drivers/libbsdport/modini.c')
-rw-r--r--bsd_eth_drivers/libbsdport/modini.c100
1 files changed, 100 insertions, 0 deletions
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 <rtems/rtems_bsdnet.h>
+
+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