Rev 3528 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3528 | Rev 3529 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | #include <print.h> |
42 | #include <print.h> |
43 | #include <ddi/device.h> |
43 | #include <ddi/device.h> |
44 | #include <mm/page.h> |
44 | #include <mm/page.h> |
45 | #include <arch/machine.h> |
45 | #include <arch/machine.h> |
46 | #include <arch/debug/print.h> |
46 | #include <arch/debug/print.h> |
- | 47 | #include <genarch/fb/fb.h> |
|
- | 48 | #include <genarch/fb/visuals.h> |
|
47 | 49 | ||
48 | /* Addresses of devices. */ |
50 | /* Addresses of devices. */ |
49 | #define QEMU_ICP_VIDEORAM 0x16000000 |
51 | #define QEMU_ICP_VIDEORAM 0x16000000 |
50 | #define QEMU_ICP_KBD 0x18000000 |
52 | #define QEMU_ICP_KBD 0x18000000 |
51 | #define QEMU_ICP_HALT_OFFSET 0x10 |
53 | #define QEMU_ICP_HALT_OFFSET 0x10 |
Line 127... | Line 129... | ||
127 | static inline void qemu_icp_irqc_unmask(uint32_t irq) |
129 | static inline void qemu_icp_irqc_unmask(uint32_t irq) |
128 | { |
130 | { |
129 | *((uint32_t *) qemu_icp_hw_map.irqc_unmask) = irq; |
131 | *((uint32_t *) qemu_icp_hw_map.irqc_unmask) = irq; |
130 | } |
132 | } |
131 | 133 | ||
- | 134 | /** Initializes the icp frame buffer */ |
|
- | 135 | void qemu_icp_fb_init(void) |
|
- | 136 | { |
|
- | 137 | fb_init(qemu_icp_get_fb_address(), 640, 480, 2560, VISUAL_BGR_8_8_8_0); |
|
- | 138 | } |
|
132 | 139 | ||
133 | /** Initializes #qemu_icp_hw_map. */ |
140 | /** Initializes #qemu_icp_hw_map. */ |
134 | void qemu_icp_hw_map_init(void) |
141 | void qemu_icp_hw_map_init(void) |
135 | { |
142 | { |
136 | qemu_icp_hw_map.videoram = hw_map(QEMU_ICP_VIDEORAM, PAGE_SIZE); |
143 | qemu_icp_hw_map.videoram = hw_map(QEMU_ICP_VIDEORAM, PAGE_SIZE); |