Changeset d0688a3 in mainline
- Timestamp:
- 2009-03-13T10:08:39Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- afdce6eb
- Parents:
- 449d4ecc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r449d4ecc rd0688a3 342 342 @ "generic" Monitor or serial line 343 343 @ "none" No output device 344 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64| (PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)] CONFIG_HID_OUT (choice)344 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)] CONFIG_HID_OUT (choice) 345 345 346 346 % Output device class … … 410 410 411 411 % Framebuffer support 412 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64 )] CONFIG_FB (y/n)412 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n) 413 413 414 414 % Framebuffer support -
defaults/ppc32/Makefile.config
r449d4ecc rd0688a3 23 23 CONFIG_TEST = y 24 24 25 # Input device class26 CONFIG_HID_IN = keyboard27 28 25 # Output device class 29 CONFIG_HID_OUT = monitor26 CONFIG_HID_OUT = generic 30 27 31 28 # Framebuffer support -
kernel/arch/ppc32/src/drivers/cuda.c
r449d4ecc rd0688a3 27 27 */ 28 28 29 /** @addtogroup ppc32 29 /** @addtogroup ppc32 30 30 * @{ 31 31 */ … … 205 205 206 206 207 /* Called from getc(). */ 208 static void cuda_resume(chardev_t *d) 209 { 210 } 211 212 213 /* Called from getc(). */ 214 static void cuda_suspend(chardev_t *d) 215 { 216 } 217 218 219 static char key_read(chardev_t *d) 220 { 221 char ch; 222 223 ch = 0; 224 return ch; 225 } 226 227 228 static chardev_t kbrd; 229 static chardev_operations_t ops = { 230 .suspend = cuda_suspend, 231 .resume = cuda_resume, 232 .read = key_read 207 static indev_t kbrd; 208 static indev_operations_t ops = { 209 .poll = NULL 233 210 }; 234 211 … … 252 229 { 253 230 int scan_code = cuda_get_scancode(); 254 231 255 232 if (scan_code != -1) { 256 233 uint8_t scancode = (uint8_t) scan_code; 257 234 if ((scancode & 0x80) != 0x80) 258 chardev_push_character(&kbrd, lchars[scancode & 0x7f]);235 indev_push_character(&kbrd, lchars[scancode & 0x7f]); 259 236 } 260 237 } … … 269 246 cuda = (uint8_t *) hw_map(base, size); 270 247 271 chardev_initialize("cuda_kbd", &kbrd, &ops);248 indev_initialize("cuda_kbd", &kbrd, &ops); 272 249 stdin = &kbrd; 273 250 -
kernel/arch/ppc32/src/ppc32.c
r449d4ecc rd0688a3 80 80 { 81 81 if (config.cpu_active == 1) { 82 83 #ifdef CONFIG_FB 82 84 /* Initialize framebuffer */ 83 85 if (bootinfo.screen.addr) { … … 110 112 fb_init(&prop); 111 113 } 114 #endif 112 115 113 116 /* Initialize IRQ routing */ … … 160 163 void arch_grab_console(void) 161 164 { 165 #ifdef CONFIG_FB 162 166 fb_redraw(); 167 #endif 163 168 } 164 169
Note:
See TracChangeset
for help on using the changeset viewer.