change the kernel build such that it exports a dynamic section and this has symbols...
[newos.git] / dev / devs.c
blob02d08ff503edbc6a6c9468e9c771c625e412dba3
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #include <kernel/kernel.h>
6 #include <dev/devs.h>
7 #include <kernel/vfs.h>
8 #include <kernel/debug.h>
10 #include <libc/string.h>
12 #ifdef ARCH_i386
13 #include <dev/arch/i386/ide/ide_bus.h>
14 #include <dev/arch/i386/console/console_dev.h>
15 #include <dev/arch/i386/keyboard/keyboard.h>
16 #include <dev/arch/i386/rtl8139/rtl8139_dev.h>
17 #endif
18 #ifdef ARCH_sh4
19 #include <dev/arch/sh4/maple/maple_bus.h>
20 #include <dev/arch/sh4/console/console_dev.h>
21 #include <dev/arch/sh4/rtl8139/rtl8139_dev.h>
22 #endif
23 #include <dev/common/null.h>
24 #include <dev/common/zero.h>
26 int devs_init(kernel_args *ka)
29 null_dev_init(ka);
30 zero_dev_init(ka);
31 #ifdef ARCH_i386
32 // ide_bus_init(ka);
33 keyboard_dev_init(ka);
34 console_dev_init(ka);
35 rtl8139_dev_init(ka);
36 #endif
38 #ifdef ARCH_sh4
39 maple_bus_init(ka);
40 console_dev_init(ka);
41 rtl8139_dev_init(ka);
42 #endif
44 return 0;