Changeset 907bb49 in mainline for uspace/lib/libc/generic/kbd.c
- Timestamp:
- 2009-03-18T22:22:31Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 266daf5a
- Parents:
- eada065e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/kbd.c
reada065e r907bb49 38 38 #include <ipc/ipc.h> 39 39 #include <ipc/console.h> 40 #include <console.h> 40 41 #include <async.h> 41 42 42 43 int kbd_get_event(kbd_event_t *ev) 43 44 { 44 int cons ole_phone = get_console_phone();45 int cons_phone = console_phone_get(); 45 46 ipcarg_t r0, r1, r2, r3; 46 47 int rc; 47 48 48 rc = async_req_0_4(console_phone, CONSOLE_GETKEY, &r0, &r1, &r2, &r3); 49 if (cons_phone < 0) 50 return -1; 51 52 rc = async_req_0_4(cons_phone, CONSOLE_GETKEY, &r0, &r1, &r2, &r3); 49 53 if (rc < 0) 50 54 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.