summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/alldrv.c
blob: cd199fdf01989d4f0792e53f6e303366b93ada34 (plain)
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
#include <stdio.h>
#include "libbsdport_api.h"
#include "devicet.h"

driver_t *libbsdport_netdriver_table_all[] = {
	&libbsdport_em_driver,
	&libbsdport_pcn_driver,
	&libbsdport_le_pci_driver,
	&libbsdport_fxp_driver,
	&libbsdport_bge_driver,
	&libbsdport_re_driver,
	0
};

driver_t libbsdport_null_driver = {0};

extern driver_t libbsdport_em_driver
	__attribute__((weak,alias("libbsdport_null_driver")));
extern driver_t libbsdport_pcn_driver
	__attribute__((weak,alias("libbsdport_null_driver")));
extern driver_t libbsdport_le_pci_driver
	__attribute__((weak,alias("libbsdport_null_driver")));
extern driver_t libbsdport_fxp_driver
	__attribute__((weak,alias("libbsdport_null_driver")));
extern driver_t libbsdport_bge_driver
	__attribute__((weak,alias("libbsdport_null_driver")));
extern driver_t libbsdport_re_driver
	__attribute__((weak,alias("libbsdport_null_driver")));


/* weak alias defaults to a table that includes
 * all currently supported drivers.
 *
 * However, the individual entires are weak aliases
 * themselves so that you don't have to link all drivers...
 */
extern driver_t *libbsdport_netdriver_table
	[
	sizeof(libbsdport_netdriver_table_all)/sizeof(libbsdport_netdriver_table_all[0])
	] __attribute__((weak,alias("libbsdport_netdriver_table_all")));