Rev 2927 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 3403 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <console/chardev.h> |
37 | #include <console/chardev.h> |
38 | #include <arch/drivers/msim.h> |
38 | #include <arch/drivers/msim.h> |
39 | #include <arch/cp0.h> |
39 | #include <arch/cp0.h> |
40 | #include <console/console.h> |
40 | #include <console/console.h> |
41 | #include <sysinfo/sysinfo.h> |
41 | #include <sysinfo/sysinfo.h> |
- | 42 | #include <ddi/ddi.h> |
|
42 | 43 | ||
43 | /** Address of devices. */ |
- | |
44 | #define MSIM_VIDEORAM 0xB0000000 |
- | |
45 | #define MSIM_KBD_ADDRESS 0xB0000000 |
- | |
46 | #define MSIM_KBD_IRQ 2 |
44 | static parea_t msim_parea; |
47 | - | ||
48 | static chardev_t console; |
45 | static chardev_t console; |
49 | static irq_t msim_irq; |
46 | static irq_t msim_irq; |
50 | 47 | ||
51 | static void msim_write(chardev_t *dev, const char ch); |
48 | static void msim_write(chardev_t *dev, const char ch); |
52 | static void msim_enable(chardev_t *dev); |
49 | static void msim_enable(chardev_t *dev); |
Line 156... | Line 153... | ||
156 | 153 | ||
157 | sysinfo_set_item_val("kbd", NULL, true); |
154 | sysinfo_set_item_val("kbd", NULL, true); |
158 | sysinfo_set_item_val("kbd.devno", NULL, devno); |
155 | sysinfo_set_item_val("kbd.devno", NULL, devno); |
159 | sysinfo_set_item_val("kbd.inr", NULL, MSIM_KBD_IRQ); |
156 | sysinfo_set_item_val("kbd.inr", NULL, MSIM_KBD_IRQ); |
160 | sysinfo_set_item_val("kbd.address.virtual", NULL, MSIM_KBD_ADDRESS); |
157 | sysinfo_set_item_val("kbd.address.virtual", NULL, MSIM_KBD_ADDRESS); |
- | 158 | ||
- | 159 | msim_parea.pbase = KA2PA(MSIM_VIDEORAM); |
|
- | 160 | msim_parea.vbase = MSIM_VIDEORAM; |
|
- | 161 | msim_parea.frames = 1; |
|
- | 162 | msim_parea.cacheable = false; |
|
- | 163 | ddi_parea_register(&msim_parea); |
|
- | 164 | ||
- | 165 | sysinfo_set_item_val("fb", NULL, true); |
|
- | 166 | sysinfo_set_item_val("fb.kind", NULL, 3); |
|
- | 167 | sysinfo_set_item_val("fb.address.physical", NULL, KA2PA(MSIM_VIDEORAM)); |
|
161 | } |
168 | } |
162 | 169 | ||
163 | /** @} |
170 | /** @} |
164 | */ |
171 | */ |