From 2f10589b68e536fb341335362be204a5c97e173e Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Fri, 7 May 2010 01:23:03 +0000 Subject: Add DDE rtl8139. --- dde_rtl8139/main.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dde_rtl8139/main.c (limited to 'dde_rtl8139/main.c') diff --git a/dde_rtl8139/main.c b/dde_rtl8139/main.c new file mode 100644 index 00000000..8f04bfeb --- /dev/null +++ b/dde_rtl8139/main.c @@ -0,0 +1,32 @@ +#include /* l4dde26_*() */ +#include /* l4dde26 networking */ + +#include /* struct sk_buff */ +#include /* pci_unregister_driver() */ +#include // initcall() +#include // msleep() + +int using_std = 1; + +void netif_rx_handle (char *data, int len, struct net_device *dev); + +int main(int argc, char **argv) +{ + extern void ds_server(void); + l4dde26_init(); + l4dde26_process_init(); + l4dde26_softirq_init(); + + printk("Initializing skb subsystem\n"); + skb_init(); + + l4dde26_do_initcalls(); + + mach_device_init(); + trivfs_init(); + + cthread_detach (cthread_fork (ds_server, NULL)); + trivfs_server(); + + return 0; +} -- cgit v1.2.3