Changeset ccd1a14 in mainline for uspace/srv/kbd/port
- Timestamp:
- 2009-04-25T11:54:17Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9701d49
- Parents:
- ebfabf6
- Location:
- uspace/srv/kbd/port
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
