]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/net.c
Slightly permute the USB_LEGKEY stuff.
[netwatch.git] / net / net.c
index 1462f09e30ae44c466140949299598820b99e743..d762b47fa85c9949b74dcc9595c02217e85cb07b 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -13,6 +13,7 @@
 #include <pci-bother.h>
 #include <output.h>
 #include <minilib.h>
+#include <tables.h>
 #include <lwip/init.h>
 #include "net.h"
 
@@ -28,8 +29,6 @@
 #include "netif/etharp.h"
 #include "netif/ppp_oe.h"
 
-#include "rfb.h"
-
 static struct nic *_nic = 0x0;
 static struct netif _netif;
 
@@ -139,15 +138,19 @@ int eth_register(struct nic *nic)
        return 0;
 }
 
+typedef void(*thunk_t)();
+
+TABLE(thunk_t, protocols);
+
 void eth_init()
 {
-       extern void httpd_init();
+       int i;
        
        /* Required for DMA to work. :( */
        smram_tseg_set_state(SMRAM_TSEG_OPEN);
-       lwip_init();
-       httpd_init();
 
-       rfb_init();
+       lwip_init();
 
+       for (i = 0; i < TABLE_LENGTH(protocols); i++)
+               protocols_table[i]();
 }
This page took 0.023317 seconds and 4 git commands to generate.