summaryrefslogtreecommitdiff
path: root/dde_pcnet32/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'dde_pcnet32/main.c')
-rw-r--r--dde_pcnet32/main.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/dde_pcnet32/main.c b/dde_pcnet32/main.c
new file mode 100644
index 00000000..cee28551
--- /dev/null
+++ b/dde_pcnet32/main.c
@@ -0,0 +1,29 @@
+#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)
+{
+ l4dde26_init();
+ l4dde26_process_init();
+ l4dde26_softirq_init();
+
+ printk("Initializing skb subsystem\n");
+ skb_init();
+
+ l4dde26_do_initcalls();
+
+ mach_device_init();
+ trivfs_init();
+ trivfs_server();
+
+ return 0;
+}