summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/alldrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd_eth_drivers/libbsdport/alldrv.c')
-rw-r--r--bsd_eth_drivers/libbsdport/alldrv.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/bsd_eth_drivers/libbsdport/alldrv.c b/bsd_eth_drivers/libbsdport/alldrv.c
new file mode 100644
index 0000000..0738179
--- /dev/null
+++ b/bsd_eth_drivers/libbsdport/alldrv.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include "libbsdport_api.h"
+
+driver_t *libbsdport_netdriver_table_all[] = {
+ &libbsdport_em_driver,
+ &libbsdport_pcn_driver,
+ &libbsdport_le_pci_driver,
+ &libbsdport_re_driver,
+ 0
+};
+
+/* weak alias defaults to a table that includes all currently supported 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")));