Rev 1896 | Rev 1931 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1896 | Rev 1897 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <arch/console.h> |
35 | #include <arch/console.h> |
36 | #include <arch/types.h> |
36 | #include <arch/types.h> |
37 | #include <typedefs.h> |
37 | #include <typedefs.h> |
38 | #include <genarch/fb/fb.h> |
- | |
39 | #include <arch/drivers/fb.h> |
- | |
40 | 38 | ||
- | 39 | #include <arch/drivers/scr.h> |
|
41 | #include <arch/drivers/kbd.h> |
40 | #include <arch/drivers/kbd.h> |
- | 41 | ||
42 | #ifdef CONFIG_Z8530 |
42 | #ifdef CONFIG_Z8530 |
43 | #include <genarch/kbd/z8530.h> |
43 | #include <genarch/kbd/z8530.h> |
44 | #endif |
44 | #endif |
45 | #ifdef CONFIG_NS16550 |
45 | #ifdef CONFIG_NS16550 |
46 | #include <genarch/kbd/ns16550.h> |
46 | #include <genarch/kbd/ns16550.h> |
Line 50... | Line 50... | ||
50 | #include <console/console.h> |
50 | #include <console/console.h> |
51 | #include <arch/asm.h> |
51 | #include <arch/asm.h> |
52 | #include <arch/register.h> |
52 | #include <arch/register.h> |
53 | #include <proc/thread.h> |
53 | #include <proc/thread.h> |
54 | #include <arch/mm/tlb.h> |
54 | #include <arch/mm/tlb.h> |
55 | #include <arch/boot/boot.h> |
- | |
56 | #include <genarch/ofw/ofw_tree.h> |
55 | #include <genarch/ofw/ofw_tree.h> |
57 | #include <arch.h> |
56 | #include <arch.h> |
58 | #include <panic.h> |
57 | #include <panic.h> |
59 | #include <print.h> |
58 | #include <print.h> |
60 | 59 | ||
Line 81... | Line 80... | ||
81 | panic("Can't find screen alias.\n"); |
80 | panic("Can't find screen alias.\n"); |
82 | screen = ofw_tree_lookup(prop->value); |
81 | screen = ofw_tree_lookup(prop->value); |
83 | if (!screen) |
82 | if (!screen) |
84 | panic("Can't find %s\n", prop->value); |
83 | panic("Can't find %s\n", prop->value); |
85 | 84 | ||
86 | fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, |
- | |
87 | bootinfo.screen.bpp, bootinfo.screen.scanline, true); |
85 | scr_init(screen); |
88 | 86 | ||
89 | prop = ofw_tree_getprop(aliases, "keyboard"); |
87 | prop = ofw_tree_getprop(aliases, "keyboard"); |
90 | if (!prop) |
88 | if (!prop) |
91 | panic("Can't find property \"keyboard\".\n"); |
89 | panic("Can't find property \"keyboard\".\n"); |
92 | if (!prop->value) |
90 | if (!prop->value) |
93 | panic("Can't find keyboard alias.\n"); |
91 | panic("Can't find keyboard alias.\n"); |