Changeset ccd1a14 in mainline
- Timestamp:
- 2009-04-25T11:54:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9701d49
- Parents:
- ebfabf6
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/drivers/ski.c
rebfabf6 rccd1a14 216 216 void ski_kbd_grab(void) 217 217 { 218 kbd_disabled = false; 219 } 220 221 void ski_kbd_release(void) 222 { 218 223 kbd_disabled = true; 219 224 } 220 225 221 void ski_kbd_release(void)222 {223 kbd_disabled = false;224 }225 226 226 /** @} 227 227 */ -
kernel/arch/sparc64/src/drivers/sgcn.c
rebfabf6 rccd1a14 280 280 void sgcn_grab(void) 281 281 { 282 kbd_disabled = true;282 kbd_disabled = false; 283 283 } 284 284 -
uspace/srv/console/console.c
rebfabf6 rccd1a14 65 65 int prev_console = 0; 66 66 67 /** Phone to the keyboard driver. */ 68 static int kbd_phone; 69 67 70 /** Information about framebuffer */ 68 71 struct { … … 150 153 { 151 154 ipc_call_sync_0_0(fb_info.phone, FB_SCREEN_RECLAIM); 155 } 156 157 static void kbd_yield(void) 158 { 159 ipc_call_sync_0_0(kbd_phone, KBD_YIELD); 160 } 161 162 static void kbd_reclaim(void) 163 { 164 ipc_call_sync_0_0(kbd_phone, KBD_RECLAIM); 152 165 } 153 166 … … 342 355 gcons_in_kernel(); 343 356 screen_yield(); 357 kbd_yield(); 344 358 async_serialize_end(); 345 359 … … 357 371 if (active_console == KERNEL_CONSOLE) { 358 372 screen_reclaim(); 373 kbd_reclaim(); 359 374 gcons_redraw_console(); 360 375 } … … 666 681 667 682 ipcarg_t phonehash; 668 int kbd_phone;669 683 size_t ib_size; 670 684 int i; -
uspace/srv/kbd/generic/kbd.c
rebfabf6 rccd1a14 194 194 retval = 0; 195 195 break; 196 case KBD_YIELD: 197 kbd_port_yield(); 198 retval = 0; 199 break; 200 case KBD_RECLAIM: 201 kbd_port_reclaim(); 202 retval = 0; 203 break; 196 204 default: 197 205 retval = EINVAL; -
uspace/srv/kbd/include/kbd.h
rebfabf6 rccd1a14 39 39 40 40 #include <key_buffer.h> 41 #include <ipc/ipc.h> 41 42 42 43 #define KBD_EVENT 1024 … … 45 46 #define KBD_MS_MIDDLE 1027 46 47 #define KBD_MS_MOVE 1028 48 49 typedef enum { 50 KBD_YIELD = IPC_FIRST_USER_METHOD, 51 KBD_RECLAIM 52 } kbd_request_t; 47 53 48 54 extern int cir_service; -
uspace/srv/kbd/include/kbd_port.h
rebfabf6 rccd1a14 39 39 40 40 extern int kbd_port_init(void); 41 extern void kbd_port_yield(void); 42 extern void kbd_port_reclaim(void); 41 43 42 44 #endif -
uspace/srv/kbd/port/dummy.c
rebfabf6 rccd1a14 43 43 } 44 44 45 void kbd_port_yield(void) 46 { 47 } 48 49 void kbd_port_reclaim(void) 50 { 51 } 52 45 53 /** @} 46 54 */ -
uspace/srv/kbd/port/gxemul.c
rebfabf6 rccd1a14 70 70 } 71 71 72 void kbd_port_yield(void) 73 { 74 } 75 76 void kbd_port_reclaim(void) 77 { 78 } 79 72 80 /** Process data sent when a key is pressed. 73 81 * -
uspace/srv/kbd/port/i8042.c
rebfabf6 rccd1a14 152 152 } 153 153 154 void kbd_port_yield(void) 155 { 156 } 157 158 void kbd_port_reclaim(void) 159 { 160 } 161 154 162 static void i8042_irq_handler(ipc_callid_t iid, ipc_call_t *call) 155 163 { -
uspace/srv/kbd/port/msim.c
rebfabf6 rccd1a14 70 70 } 71 71 72 void kbd_port_yield(void) 73 { 74 } 75 76 void kbd_port_reclaim(void) 77 { 78 } 79 72 80 static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call) 73 81 { 74 82 int scan_code = IPC_GET_ARG2(*call); 75 // static int esc_count=0;76 77 // if (scan_code == 0x1b) {78 // esc_count++;79 // if (esc_count == 3)80 // __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);81 // } else {82 // esc_count=0;83 // }84 85 // if (fb_fb)86 // return kbd_arch_process_fb(keybuffer, scan_code);87 88 83 kbd_push_scancode(scan_code); 89 84 } -
uspace/srv/kbd/port/ns16550.c
rebfabf6 rccd1a14 107 107 } 108 108 109 void ns16550_port_yield(void) 110 { 111 } 112 113 void ns16550_port_reclaim(void) 114 { 115 } 116 109 117 static void ns16550_irq_handler(ipc_callid_t iid, ipc_call_t *call) 110 118 { -
uspace/srv/kbd/port/sgcn.c
rebfabf6 rccd1a14 121 121 } 122 122 123 void kbd_port_yield(void) 124 { 125 } 126 127 void kbd_port_reclaim(void) 128 { 129 } 130 123 131 /** 124 132 * Handler of the "key pressed" event. Reads codes of all the pressed keys from -
uspace/srv/kbd/port/ski.c
rebfabf6 rccd1a14 43 43 #include <sys/types.h> 44 44 #include <thread.h> 45 #include <bool.h> 45 46 46 47 #define SKI_GETCHAR 21 … … 50 51 static void *ski_thread_impl(void *arg); 51 52 static int32_t ski_getchar(void); 53 54 static volatile bool polling_disabled = false; 52 55 53 56 /** Initialize Ski port driver. */ … … 65 68 } 66 69 70 void kbd_port_yield(void) 71 { 72 polling_disabled = true; 73 } 74 75 void kbd_port_reclaim(void) 76 { 77 polling_disabled = false; 78 } 79 67 80 /** Thread to poll Ski for keypresses. */ 68 81 static void *ski_thread_impl(void *arg) … … 72 85 73 86 while (1) { 74 while ( 1) {87 while (polling_disabled == false) { 75 88 c = ski_getchar(); 76 89 if (c == 0) -
uspace/srv/kbd/port/sun.c
rebfabf6 rccd1a14 63 63 } 64 64 65 void kbd_port_yield(void) 66 { 67 } 68 69 void kbd_port_reclaim(void) 70 { 71 } 72 65 73 /** @} 66 74 */ -
uspace/srv/kbd/port/z8530.c
rebfabf6 rccd1a14 96 96 } 97 97 98 void z8530_port_yield(void) 99 { 100 } 101 102 void z8530_port_reclaim(void) 103 { 104 } 105 98 106 static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call) 99 107 {
Note:
See TracChangeset
for help on using the changeset viewer.