Rev 1841 | Rev 1844 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1841 | Rev 1842 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | /** @file |
32 | /** @file |
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| - | 35 | #include <arch/drivers/kbd.h> |
|
| 35 | #ifdef CONFIG_Z8530 |
36 | #ifdef CONFIG_Z8530 |
| 36 | #include <genarch/kbd/z8530.h> |
37 | #include <genarch/kbd/z8530.h> |
| 37 | #endif |
38 | #endif |
| 38 | #ifdef CONFIG_16650A |
39 | #ifdef CONFIG_16650A |
| 39 | #include <genarch/kbd/16650a.h> |
40 | #include <genarch/kbd/16650a.h> |
| 40 | #endif |
41 | #endif |
| - | 42 | ||
| 41 | #include <arch/boot/boot.h> |
43 | #include <arch/boot/boot.h> |
| 42 | #include <arch/mm/page.h> |
44 | #include <arch/mm/page.h> |
| 43 | #include <arch/types.h> |
45 | #include <arch/types.h> |
| 44 | #include <typedefs.h> |
46 | #include <typedefs.h> |
| - | 47 | #include <align.h> |
|
| 45 | 48 | ||
| 46 | volatile uint8_t *kbd_virt_address = NULL; |
49 | volatile uint8_t *kbd_virt_address = NULL; |
| 47 | 50 | ||
| 48 | void kbd_init() |
51 | void kbd_init() |
| 49 | { |
52 | { |
| 50 | size_t offset; |
53 | size_t offset; |
| 51 | uintptr_t aligned_addr; |
54 | uintptr_t aligned_addr; |
| 52 | 55 | ||
| - | 56 | /* FIXME: supply value read from OpenFirmware */ |
|
| - | 57 | bootinfo.keyboard.size = 8; |
|
| - | 58 | ||
| 53 | /* |
59 | /* |
| 54 | * We need to pass aligned address to hw_map(). |
60 | * We need to pass aligned address to hw_map(). |
| 55 | * However, the physical keyboard address can |
61 | * However, the physical keyboard address can |
| 56 | * be pretty much unaligned on some systems |
62 | * be pretty much unaligned on some systems |
| 57 | * (e.g. Ultra 5, Ultras 60). |
63 | * (e.g. Ultra 5, Ultras 60). |