summaryrefslogtreecommitdiff
path: root/dde_e100/main.c
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-05-19 15:21:02 +0200
committerZheng Da <zhengda1936@gmail.com>2010-05-19 15:21:02 +0200
commit4e80880ba4b1eec6723848386b2da56e5b17fc5b (patch)
treeffecfc3027d20e2276e39e2581d970307fd5751f /dde_e100/main.c
parent4fc0eb5c612281074bd1ba55a4d6d32041ee7a6e (diff)
parentb5f62597a03930390d6b34e3e166aa2573854116 (diff)
Merge branch 'dde' of ssh://git.sv.gnu.org/srv/git/hurd/incubator into dde
Diffstat (limited to 'dde_e100/main.c')
-rw-r--r--dde_e100/main.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/dde_e100/main.c b/dde_e100/main.c
new file mode 100644
index 00000000..8f04bfeb
--- /dev/null
+++ b/dde_e100/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;
+}