Changeset 86ffa27f in mainline for uspace/srv/hid
- Timestamp:
- 2011-08-07T11:21:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc574511
- Parents:
- 15f3c3f (diff), e8067c0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv/hid
- Files:
-
- 3 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r15f3c3f r86ffa27f 357 357 console_serialize_end(); 358 358 359 if ( __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE)) {359 if (console_kcon()) { 360 360 prev_console = active_console; 361 361 active_console = kernel_console; … … 711 711 console_serialize_start(); 712 712 continue; 713 case CONSOLE_KCON_ENABLE:714 change_console(kernel_console);715 break;716 713 } 717 714 async_answer_3(callid, EOK, arg1, arg2, arg3); … … 833 830 } 834 831 835 /* Disable kernel output to the console */836 __SYSCALL0(SYS_DEBUG_DISABLE_CONSOLE);837 838 832 /* Initialize the screen */ 839 833 console_serialize_start(); -
uspace/srv/hid/fb/Makefile
r15f3c3f r86ffa27f 84 84 EXTRA_CFLAGS += -DNIAGARA_ENABLED 85 85 endif 86 87 ifeq ($(MACHINE),serengeti)88 SOURCES += \89 sgcn.c \90 serial_console.c91 EXTRA_CFLAGS += -DSGCN_ENABLED92 endif93 86 endif 94 87 -
uspace/srv/hid/fb/main.c
r15f3c3f r86ffa27f 40 40 #include "msim.h" 41 41 #include "ski.h" 42 #include "sgcn.h"43 42 #include "niagara.h" 44 43 #include "main.h" … … 92 91 } 93 92 #endif 94 #ifdef SGCN_ENABLED95 if ((!initialized) && (fb_kind == 4)) {96 if (sgcn_init() == 0)97 initialized = true;98 }99 #endif100 93 #ifdef NIAGARA_ENABLED 101 94 if ((!initialized) && (fb_kind == 5)) { -
uspace/srv/hid/fb/niagara.c
r15f3c3f r86ffa27f 29 29 */ 30 30 31 /** @defgroup niagarafb SGCN31 /** @defgroup niagarafb 32 32 * @brief userland driver of the Niagara console output 33 33 * @{ -
uspace/srv/hid/fb/niagara.h
r15f3c3f r86ffa27f 27 27 */ 28 28 29 /** @defgroup sgcnfb SGCN30 * @brief userland driver of the Serengeticonsole output29 /** @defgroup niagarafb 30 * @brief userland driver of the Niagara console output 31 31 * @{ 32 32 */ -
uspace/srv/hid/input/Makefile
r15f3c3f r86ffa27f 49 49 port/ns16550.c \ 50 50 port/pl050.c \ 51 port/sgcn.c \52 51 port/ski.c \ 53 port/z8530.c \54 52 proto/adb.c \ 55 53 proto/mousedev.c \ -
uspace/srv/hid/input/ctl/stty.c
r15f3c3f r86ffa27f 34 34 * @file 35 35 * @brief Serial TTY-like keyboard controller driver. 36 * 37 * Keyboard emulation on a serial terminal. 36 38 */ 37 39 … … 63 65 #include <stdio.h> 64 66 67 /** 68 * Sequnece definitions are primarily for Xterm. Additionally we define 69 * sequences that are unique to Gnome terminal -- most are the same but 70 * some differ. 71 */ 65 72 static int seq_defs[] = { 66 73 /* Not shifted */ … … 81 88 0, KC_MINUS, 0x2d, GSP_END, 82 89 0, KC_EQUALS, 0x3d, GSP_END, 90 83 91 0, KC_BACKSPACE, 0x08, GSP_END, 84 92 … … 216 224 0, KC_RIGHT, 0x1b, 0x5b, 0x43, GSP_END, 217 225 226 /* 227 * Sequences specific to Gnome terminal 228 */ 229 0, KC_BACKSPACE, 0x7f, GSP_END, /* ASCII DEL */ 230 0, KC_HOME, 0x1b, 0x4f, 0x48, GSP_END, 231 0, KC_END, 0x1b, 0x4f, 0x46, GSP_END, 232 218 233 0, 0 219 234 }; -
uspace/srv/hid/input/generic/gsp.c
r15f3c3f r86ffa27f 104 104 if (key == 0) break; 105 105 106 /* Insert one sequence. */ 106 /* Insert one sequence. */ 107 107 rc = gsp_insert_seq(p, dp, mods, key); 108 108 if (rc != 0) … … 197 197 198 198 if (t == NULL) { 199 printf("gsp_step: not found\n"); 199 printf("gsp_step: not found, state=%d, input=0x%x\n", 200 state, input); 200 201 *mods = 0; 201 202 *key = 0; … … 205 206 *mods = t->out_mods; 206 207 *key = t->out_key; 208 207 209 return t->new_state; 208 210 } -
uspace/srv/hid/input/generic/input.c
r15f3c3f r86ffa27f 410 410 #endif 411 411 #if defined(MACHINE_msim) 412 kbd_add_dev(&msim_port, & pc_ctl);412 kbd_add_dev(&msim_port, &stty_ctl); 413 413 #endif 414 414 #if (defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)) && defined(CONFIG_FB) … … 424 424 kbd_add_dev(&niagara_port, &stty_ctl); 425 425 #endif 426 #if defined(UARCH_sparc64) && defined(MACHINE_serengeti)427 kbd_add_dev(&sgcn_port, &stty_ctl);428 #endif429 426 #if defined(UARCH_sparc64) && defined(MACHINE_generic) 430 kbd_add_dev(&z8530_port, &sun_ctl);431 427 kbd_add_dev(&ns16550_port, &sun_ctl); 432 428 #endif … … 556 552 printf("%s: HelenOS input service\n", NAME); 557 553 558 sysarg_t fhc;559 554 sysarg_t obio; 560 555 … … 562 557 list_initialize(&mouse_devs); 563 558 564 if (((sysinfo_get_value("kbd.cir.fhc", &fhc) == EOK) && (fhc)) 565 || ((sysinfo_get_value("kbd.cir.obio", &obio) == EOK) && (obio))) 559 if ((sysinfo_get_value("kbd.cir.obio", &obio) == EOK) && (obio)) 566 560 irc_service = true; 567 561 -
uspace/srv/hid/input/include/kbd_port.h
r15f3c3f r86ffa27f 56 56 extern kbd_port_ops_t ns16550_port; 57 57 extern kbd_port_ops_t pl050_port; 58 extern kbd_port_ops_t sgcn_port;59 58 extern kbd_port_ops_t ski_port; 60 extern kbd_port_ops_t z8530_port;61 59 62 60 #endif -
uspace/srv/hid/input/port/niagara.c
r15f3c3f r86ffa27f 154 154 155 155 /** 156 * Thread to poll SGCNfor keypresses.156 * Thread to poll Niagara console for keypresses. 157 157 */ 158 158 static void niagara_thread_impl(void *arg)
Note:
See TracChangeset
for help on using the changeset viewer.