Rev 3607 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3607 | Rev 3618 | ||
---|---|---|---|
Line 95... | Line 95... | ||
95 | * Initializes the SGCN driver. |
95 | * Initializes the SGCN driver. |
96 | * Maps the physical memory (SRAM) and registers the interrupt. |
96 | * Maps the physical memory (SRAM) and registers the interrupt. |
97 | */ |
97 | */ |
98 | void sgcn_init(void) |
98 | void sgcn_init(void) |
99 | { |
99 | { |
100 | sram_virt_addr = (uintptr_t) as_get_mappable_page(sysinfo_value("sram.area.size")); |
100 | sram_virt_addr = (uintptr_t) as_get_mappable_page( |
- | 101 | sysinfo_value("sram.area.size")); |
|
101 | int result = physmem_map( |
102 | int result = physmem_map( |
102 | (void *) sysinfo_value("sram.address.physical"), |
103 | (void *) sysinfo_value("sram.address.physical"), |
103 | (void *) sram_virt_addr, |
104 | (void *) sram_virt_addr, |
104 | sysinfo_value("sram.area.size") / PAGE_SIZE, |
105 | sysinfo_value("sram.area.size") / PAGE_SIZE, |
105 | AS_AREA_READ | AS_AREA_WRITE |
106 | AS_AREA_READ | AS_AREA_WRITE |
Line 141... | Line 142... | ||
141 | kbd_process_no_fb(&keybuffer, c); |
142 | kbd_process_no_fb(&keybuffer, c); |
142 | } |
143 | } |
143 | } |
144 | } |
144 | 145 | ||
145 | /** @} |
146 | /** @} |
146 | */ |
- | |
147 | 147 | */ |
|
- | 148 |