Rev 1844 | Rev 1896 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1844 | Rev 1849 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | 58 | ||
59 | /* |
59 | /* |
60 | * We need to pass aligned address to hw_map(). |
60 | * We need to pass aligned address to hw_map(). |
61 | * However, the physical keyboard address can |
61 | * However, the physical keyboard address can |
62 | * be pretty much unaligned on some systems |
62 | * be pretty much unaligned on some systems |
63 | * (e.g. Ultra 5, Ultras 60). |
63 | * (e.g. Ultra 5, Ultra 60). |
64 | */ |
64 | */ |
65 | aligned_addr = ALIGN_DOWN(bootinfo.keyboard.addr, PAGE_SIZE); |
65 | aligned_addr = ALIGN_DOWN(bootinfo.keyboard.addr, PAGE_SIZE); |
66 | offset = bootinfo.keyboard.addr - aligned_addr; |
66 | offset = bootinfo.keyboard.addr - aligned_addr; |
67 | kbd_virt_address = (uint8_t *) hw_map(aligned_addr, offset + bootinfo.keyboard.size) + offset; |
67 | kbd_virt_address = (uint8_t *) hw_map(aligned_addr, offset + bootinfo.keyboard.size) + offset; |
68 | 68 |