Changeset 9693835 in mainline
- Timestamp:
- 2009-03-13T09:00:58Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b16e9d
- Parents:
- 648c9d9
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r648c9d9 r9693835 330 330 @ "generic" Keyboard or serial line 331 331 @ "none" No input device 332 ! [PLATFORM=ia32|PLATFORM=arm32|PLATFORM=amd64|PLATFORM=mips32 ] CONFIG_HID_IN (choice)332 ! [PLATFORM=ia32|PLATFORM=arm32|PLATFORM=amd64|PLATFORM=mips32|PLATFORM=sparc64] CONFIG_HID_IN (choice) 333 333 334 334 % Output device class 335 335 @ "generic" Monitor or serial line 336 336 @ "none" No output device 337 ! [PLATFORM=ia32|PLATFORM=amd64| (PLATFORM=mips32&MACHINE=msim)] CONFIG_HID_OUT (choice)337 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|(PLATFORM=mips32&MACHINE=msim)] CONFIG_HID_OUT (choice) 338 338 339 339 % Output device class … … 366 366 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32] CONFIG_ARM_PRN (y/n) 367 367 368 % Support for NS16550 controller 369 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64] CONFIG_NS16550 (y/n) 370 371 % Support for Z8530 controller 372 ! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboardl)&PLATFORM=sparc64] CONFIG_Z8530 (y/n) 373 368 374 % i8042 controller support 369 375 ! [CONFIG_PC_KBD=y] CONFIG_I8042 (y) 370 376 377 % Sun keyboard support 378 ! [PLATFORM=sparc64&(CONFIG_NS16550=y|CONFIG_Z8530=y] CONFIG_SUN_KBD (y) 379 371 380 % Dummy serial line input 372 381 ! [CONFIG_MIPS_KBD=y|CONFIG_ARM_KBD=y] CONFIG_DSRLNIN (y) … … 384 393 #! [(CONFIG_HID_IN=keyboard&PLATFORM=sparc64)|(CONFIG_HID_IN=serial&PLATFORM=ia64)] CONFIG_NS16550 (y/n) 385 394 386 #% Support for Z8530 controller387 #! [(CONFIG_HID_IN!=none|CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=sparc64] CONFIG_Z8530 (y/n)388 389 395 #% Support for Serengeti console 390 396 #! [(CONFIG_HID_IN=serial|CONFIG_HID_OUT=serial)&MACHINE=serengeti] CONFIG_SGCN (y/n) … … 393 399 #! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&MACHINE=i460GX] CONFIG_PC_KBD (y/n) 394 400 395 #% Sun keyboard support396 #! [(CONFIG_HID_IN=generic|CONFIG_HID_IN=keyboard)&PLATFORM=sparc64] CONFIG_SUN_KBD (y/n)397 398 401 % EGA support 399 402 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_EGA (y/n) … … 409 412 410 413 % Framebuffer support 411 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&PLATFORM=arm32] CONFIG_FB (y/n) 412 413 % Framebuffer support 414 ! [CONFIG_HID_OUT=none] CONFIG_FB (n) 414 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=monitor)&(PLATFORM=arm32|PLATFORM=sparc64)] CONFIG_FB (y/n) 415 415 416 416 % Framebuffer width … … 424 424 @ "1600" 425 425 @ "2048" 426 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_ FB=y] CONFIG_VESA_WIDTH (choice)426 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_VESA_WIDTH (choice) 427 427 428 428 % Framebuffer height … … 437 437 @ "1200" 438 438 @ "1536" 439 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_ FB=y] CONFIG_VESA_HEIGHT (choice)439 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_VESA_HEIGHT (choice) 440 440 441 441 % Framebuffer depth … … 443 443 @ "16" 444 444 @ "24" 445 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_ FB=y] CONFIG_VESA_BPP (choice)445 ! [(PLATFORM=ia32|PLATFORM=amd64)&CONFIG_HID_OUT!=none&CONFIG_FB=y] CONFIG_VESA_BPP (choice) 446 446 447 447 % Start AP processors by the loader -
kernel/arch/sparc64/Makefile.inc
r648c9d9 r9693835 77 77 arch/$(KARCH)/src/drivers/kbd.c \ 78 78 arch/$(KARCH)/src/drivers/sgcn.c \ 79 arch/$(KARCH)/src/drivers/pci.c 79 arch/$(KARCH)/src/drivers/pci.c \ 80 arch/$(KARCH)/src/drivers/fhc.c 80 81 81 82 ifeq ($(CONFIG_FB),y) … … 94 95 arch/$(KARCH)/src/mm/tsb.c 95 96 endif 96 97 ifdef CONFIG_Z853098 ARCH_SOURCES += \99 arch/$(KARCH)/src/drivers/fhc.c100 endif -
kernel/arch/sparc64/src/console.c
r648c9d9 r9693835 63 63 { 64 64 #ifdef CONFIG_FB 65 ofw_tree_property_t *prop; 66 ofw_tree_node_t *screen; 67 ofw_tree_node_t *keyboard; 65 ofw_tree_property_t *prop_scr = ofw_tree_getprop(aliases, "screen"); 66 if (!prop_scr) 67 panic("Cannot find property 'screen'."); 68 if (!prop_scr->value) 69 panic("Cannot find screen alias."); 70 ofw_tree_node_t *screen = ofw_tree_lookup(prop_scr->value); 71 if (!screen) 72 panic("Cannot find %s.", prop_scr->value); 68 73 69 prop = ofw_tree_getprop(aliases, "screen"); 70 if (!prop) 71 panic("Cannot find property 'screen'."); 72 if (!prop->value) 73 panic("Cannot find screen alias."); 74 screen = ofw_tree_lookup(prop->value); 75 if (!screen) 76 panic("Cannot find %s.", prop->value); 74 scr_init(screen); 75 #endif 77 76 78 scr_init(screen); 79 80 prop = ofw_tree_getprop(aliases, "keyboard"); 81 if (!prop) 77 #ifdef CONFIG_SUN_KBD 78 ofw_tree_property_t *prop_kbd = ofw_tree_getprop(aliases, "keyboard"); 79 if (!prop_kbd) 82 80 panic("Cannot find property 'keyboard'."); 83 if (!prop ->value)81 if (!prop_kbd->value) 84 82 panic("Cannot find keyboard alias."); 85 keyboard = ofw_tree_lookup(prop->value);83 ofw_tree_node_t *keyboard = ofw_tree_lookup(prop_kbd->value); 86 84 if (!keyboard) 87 panic("Cannot find %s.", prop ->value);88 85 panic("Cannot find %s.", prop_kbd->value); 86 89 87 kbd_init(keyboard); 90 #else91 panic("Standard console requires FB, "92 "but the kernel is not compiled with FB support.");93 88 #endif 94 89 } -
kernel/arch/sparc64/src/drivers/kbd.c
r648c9d9 r9693835 58 58 kbd_type_t kbd_type = KBD_UNKNOWN; 59 59 60 #if defined (CONFIG_Z8530) || defined (CONFIG_NS16550)60 #ifdef CONFIG_SUN_KBD 61 61 62 62 /** Initialize keyboard. … … 169 169 offset; 170 170 171 indev_t *kbrdin = z8530_init(z8530, devno, inr, cir, cir_arg);172 if (kbrdin )173 kbrd_init(kbrdin );171 indev_t *kbrdin_z8530 = z8530_init(z8530, devno, inr, cir, cir_arg); 172 if (kbrdin_z8530) 173 kbrd_init(kbrdin_z8530); 174 174 175 175 /* … … 192 192 offset; 193 193 194 indev_t *kbrdin = ns16550_init(ns16550, devno, inr, cir, cir_arg);195 if (kbrdin )196 kbrd_init(kbrdin );194 indev_t *kbrdin_ns16550 = ns16550_init(ns16550, devno, inr, cir, cir_arg); 195 if (kbrdin_ns16550) 196 kbrd_init(kbrdin_ns16550); 197 197 198 198 /* … … 215 215 } 216 216 217 #endif 217 #endif 218 218 219 /** @} 219 220 */ -
kernel/genarch/include/drivers/z8530/z8530.h
r648c9d9 r9693835 121 121 } z8530_instance_t; 122 122 123 extern devin_t *z8530_init(z8530_t *, devno_t, inr_t, cir_t, void *);123 extern indev_t *z8530_init(z8530_t *, devno_t, inr_t, cir_t, void *); 124 124 125 125 #endif -
kernel/genarch/src/drivers/dsrln/dsrlnin.c
r648c9d9 r9693835 40 40 #include <arch/asm.h> 41 41 42 indev_operations_t kbrdin_ops = {42 static indev_operations_t kbrdin_ops = { 43 43 .poll = NULL 44 44 }; -
kernel/genarch/src/drivers/i8042/i8042.c
r648c9d9 r9693835 43 43 #include <mm/slab.h> 44 44 45 indev_operations_t kbrdin_ops = {45 static indev_operations_t kbrdin_ops = { 46 46 .poll = NULL 47 47 }; -
kernel/genarch/src/drivers/ns16550/ns16550.c
r648c9d9 r9693835 43 43 #define LSR_DATA_READY 0x01 44 44 45 indev_operations_t kbrdin_ops = {45 static indev_operations_t kbrdin_ops = { 46 46 .poll = NULL 47 47 }; … … 65 65 if (pio_read_8(&dev->lsr) & LSR_DATA_READY) { 66 66 uint8_t x = pio_read_8(&dev->rbr); 67 chardev_push_character(&instance->kbrdin, x);67 indev_push_character(&instance->kbrdin, x); 68 68 } 69 69 } -
kernel/genarch/src/drivers/z8530/z8530.c
r648c9d9 r9693835 41 41 #include <mm/slab.h> 42 42 43 indev_operations_t kbrdin_ops = {43 static indev_operations_t kbrdin_ops = { 44 44 .poll = NULL 45 45 }; … … 83 83 if (z8530_read(&dev->ctl_a, RR0) & RR0_RCA) { 84 84 uint8_t x = z8530_read(&dev->ctl_a, RR8); 85 chardev_push_character(&instance->kbrdin, x);85 indev_push_character(&instance->kbrdin, x); 86 86 } 87 87 }
Note:
See TracChangeset
for help on using the changeset viewer.