summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/modini.c
blob: 3156c16f8b19871ebbffa727fae08a6d23b8b415 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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