diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-05-11 04:15:09 +0000 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-05-11 04:15:09 +0000 |
commit | 5c5bf1945a8f397c3753a04b5bd84f8f1ec386a1 (patch) | |
tree | 180e0a19c54fd6a46f809aad816025a4ca1aecbf /dde_ne2k_pci/main.c | |
parent | fd11239e5a0f745cf40f954f772ed7dcdf95d018 (diff) |
Add ne2k-pci driver.
Diffstat (limited to 'dde_ne2k_pci/main.c')
-rw-r--r-- | dde_ne2k_pci/main.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dde_ne2k_pci/main.c b/dde_ne2k_pci/main.c new file mode 100644 index 00000000..8f04bfeb --- /dev/null +++ b/dde_ne2k_pci/main.c @@ -0,0 +1,32 @@ +#include <dde26.h> /* l4dde26_*() */ +#include <dde26_net.h> /* l4dde26 networking */ + +#include <linux/netdevice.h> /* struct sk_buff */ +#include <linux/pci.h> /* pci_unregister_driver() */ +#include <linux/init.h> // initcall() +#include <linux/delay.h> // 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; +} |