Rev 3932 | Rev 3963 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3932 | Rev 3934 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | #include <print.h> |
63 | #include <print.h> |
64 | #include <sysinfo/sysinfo.h> |
64 | #include <sysinfo/sysinfo.h> |
65 | 65 | ||
66 | /* NS16550 as a COM 1 */ |
66 | /* NS16550 as a COM 1 */ |
67 | #define NS16550_IRQ (4 + LEGACY_INTERRUPT_BASE) |
67 | #define NS16550_IRQ (4 + LEGACY_INTERRUPT_BASE) |
68 | #define NS16550_PORT 0x3f8 |
- | |
69 | 68 | ||
70 | bootinfo_t *bootinfo; |
69 | bootinfo_t *bootinfo; |
71 | 70 | ||
72 | static uint64_t iosapic_base = 0xfec00000; |
71 | static uint64_t iosapic_base = 0xfec00000; |
73 | 72 | ||
Line 162... | Line 161... | ||
162 | 161 | ||
163 | #ifdef I460GX |
162 | #ifdef I460GX |
164 | devno_t kbd = device_assign_devno(); |
163 | devno_t kbd = device_assign_devno(); |
165 | 164 | ||
166 | #ifdef CONFIG_NS16550 |
165 | #ifdef CONFIG_NS16550 |
167 | ns16550_init(kbd, NS16550_PORT, NS16550_IRQ, NULL, NULL); |
166 | (void) ns16550_init((ns16550_t *)NS16550_BASE, kbd, NS16550_IRQ, NULL, |
- | 167 | NULL); |
|
168 | #else |
168 | #else |
169 | devno_t mouse = device_assign_devno(); |
169 | devno_t mouse = device_assign_devno(); |
170 | i8042_init(kbd, IRQ_KBD, mouse, IRQ_MOUSE); |
170 | i8042_init(kbd, IRQ_KBD, mouse, IRQ_MOUSE); |
171 | #endif |
171 | #endif |
172 | #endif |
172 | #endif |
Line 247... | Line 247... | ||
247 | #endif |
247 | #endif |
248 | } |
248 | } |
249 | 249 | ||
250 | void arch_reboot(void) |
250 | void arch_reboot(void) |
251 | { |
251 | { |
252 | pio_write_8(0x64, 0xfe); |
252 | pio_write_8((ioport8_t *)0x64, 0xfe); |
253 | while (1) |
253 | while (1) |
254 | ; |
254 | ; |
255 | } |
255 | } |
256 | 256 | ||
257 | /** Construct function pointer |
257 | /** Construct function pointer |