Changeset 17aca1c in mainline for uspace/srv/hid
- Timestamp:
- 2011-02-04T20:56:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0397e5a4, e29e09cf
- Parents:
- e778543 (diff), 0b37882 (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:
-
- 20 edited
-
adb_mouse/adb_dev.c (modified) (3 diffs)
-
adb_mouse/adb_mouse.c (modified) (4 diffs)
-
char_mouse/char_mouse.c (modified) (4 diffs)
-
char_mouse/chardev.c (modified) (3 diffs)
-
console/console.c (modified) (22 diffs)
-
console/gcons.c (modified) (1 diff)
-
fb/ega.c (modified) (7 diffs)
-
fb/fb.c (modified) (11 diffs)
-
fb/main.c (modified) (3 diffs)
-
fb/serial_console.c (modified) (5 diffs)
-
fb/serial_console.h (modified) (1 diff)
-
kbd/generic/kbd.c (modified) (5 diffs)
-
kbd/port/adb.c (modified) (3 diffs)
-
kbd/port/chardev.c (modified) (3 diffs)
-
kbd/port/gxemul.c (modified) (2 diffs)
-
kbd/port/msim.c (modified) (2 diffs)
-
kbd/port/ns16550.c (modified) (2 diffs)
-
kbd/port/pl050.c (modified) (2 diffs)
-
kbd/port/z8530.c (modified) (2 diffs)
-
s3c24xx_ts/s3c24xx_ts.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/adb_mouse/adb_dev.c
re778543 r17aca1c 34 34 */ 35 35 36 #include <ipc/ipc.h>37 36 #include <ipc/adb.h> 38 37 #include <async.h> … … 68 67 69 68 /* NB: The callback connection is slotted for removal */ 70 sysarg_t taskhash; 71 sysarg_t phonehash; 72 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) { 69 if (async_connect_to_me(dev_phone, 0, 0, 0, adb_dev_events) != 0) { 73 70 printf(NAME ": Failed to create callback from device\n"); 74 71 return false; 75 72 } 76 77 async_new_connection(taskhash, phonehash, 0, NULL, adb_dev_events); 78 73 79 74 return 0; 80 75 } … … 100 95 retval = ENOENT; 101 96 } 102 ipc_answer_0(callid, retval);97 async_answer_0(callid, retval); 103 98 } 104 99 } -
uspace/srv/hid/adb_mouse/adb_mouse.c
re778543 r17aca1c 39 39 */ 40 40 41 #include <ipc/ipc.h>42 41 #include <ipc/mouse.h> 43 42 #include <stdio.h> … … 98 97 int retval; 99 98 100 ipc_answer_0(iid, EOK);99 async_answer_0(iid, EOK); 101 100 102 101 while (1) { … … 105 104 case IPC_M_PHONE_HUNGUP: 106 105 if (client_phone != -1) { 107 ipc_hangup(client_phone);106 async_hangup(client_phone); 108 107 client_phone = -1; 109 108 } 110 109 111 ipc_answer_0(callid, EOK);110 async_answer_0(callid, EOK); 112 111 return; 113 112 case IPC_M_CONNECT_TO_ME: … … 122 121 retval = EINVAL; 123 122 } 124 ipc_answer_0(callid, retval);123 async_answer_0(callid, retval); 125 124 } 126 125 } -
uspace/srv/hid/char_mouse/char_mouse.c
re778543 r17aca1c 39 39 */ 40 40 41 #include <ipc/ipc.h>42 41 #include <ipc/mouse.h> 43 42 #include <stdio.h> … … 83 82 int retval; 84 83 85 ipc_answer_0(iid, EOK);84 async_answer_0(iid, EOK); 86 85 87 86 while (1) { … … 90 89 case IPC_M_PHONE_HUNGUP: 91 90 if (client_phone != -1) { 92 ipc_hangup(client_phone);91 async_hangup(client_phone); 93 92 client_phone = -1; 94 93 } 95 94 96 ipc_answer_0(callid, EOK);95 async_answer_0(callid, EOK); 97 96 return; 98 97 case IPC_M_CONNECT_TO_ME: … … 107 106 retval = EINVAL; 108 107 } 109 ipc_answer_0(callid, retval);108 async_answer_0(callid, retval); 110 109 } 111 110 } -
uspace/srv/hid/char_mouse/chardev.c
re778543 r17aca1c 34 34 */ 35 35 36 #include <ipc/ipc.h>37 36 #include <ipc/char.h> 38 37 #include <async.h> … … 70 69 71 70 /* NB: The callback connection is slotted for removal */ 72 sysarg_t taskhash; 73 sysarg_t phonehash; 74 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) { 71 if (async_connect_to_me(dev_phone, 0, 0, 0, chardev_events) != 0) { 75 72 printf(NAME ": Failed to create callback from device\n"); 76 73 return false; 77 74 } 78 79 async_new_connection(taskhash, phonehash, 0, NULL, chardev_events);80 75 81 76 return 0; … … 115 110 retval = ENOENT; 116 111 } 117 ipc_answer_0(callid, retval);112 async_answer_0(callid, retval); 118 113 } 119 114 } -
uspace/srv/hid/console/console.c
re778543 r17aca1c 34 34 35 35 #include <libc.h> 36 #include <ipc/ipc.h>37 36 #include <ipc/kbd.h> 38 37 #include <io/keycode.h> … … 40 39 #include <ipc/fb.h> 41 40 #include <ipc/services.h> 41 #include <ipc/ns.h> 42 42 #include <errno.h> 43 43 #include <ipc/console.h> … … 116 116 static void curs_hide_sync(void) 117 117 { 118 ipc_call_sync_1_0(fb_info.phone, FB_CURSOR_VISIBILITY, false);118 async_req_1_0(fb_info.phone, FB_CURSOR_VISIBILITY, false); 119 119 } 120 120 … … 131 131 static void screen_yield(void) 132 132 { 133 ipc_call_sync_0_0(fb_info.phone, FB_SCREEN_YIELD);133 async_req_0_0(fb_info.phone, FB_SCREEN_YIELD); 134 134 } 135 135 136 136 static void screen_reclaim(void) 137 137 { 138 ipc_call_sync_0_0(fb_info.phone, FB_SCREEN_RECLAIM);138 async_req_0_0(fb_info.phone, FB_SCREEN_RECLAIM); 139 139 } 140 140 141 141 static void kbd_yield(void) 142 142 { 143 ipc_call_sync_0_0(kbd_phone, KBD_YIELD);143 async_req_0_0(kbd_phone, KBD_YIELD); 144 144 } 145 145 146 146 static void kbd_reclaim(void) 147 147 { 148 ipc_call_sync_0_0(kbd_phone, KBD_RECLAIM);148 async_req_0_0(kbd_phone, KBD_RECLAIM); 149 149 } 150 150 … … 438 438 retval = ENOENT; 439 439 } 440 ipc_answer_0(callid, retval);440 async_answer_0(callid, retval); 441 441 } 442 442 } … … 474 474 } 475 475 476 ipc_answer_0(callid, retval);476 async_answer_0(callid, retval); 477 477 } 478 478 } … … 485 485 486 486 if (rc != EOK) { 487 ipc_answer_0(rid, rc);487 async_answer_0(rid, rc); 488 488 return; 489 489 } … … 500 500 501 501 gcons_notify_char(cons->index); 502 ipc_answer_1(rid, EOK, size);502 async_answer_1(rid, EOK, size); 503 503 504 504 free(buf); … … 510 510 size_t size; 511 511 if (!async_data_read_receive(&callid, &size)) { 512 ipc_answer_0(callid, EINVAL);513 ipc_answer_0(rid, EINVAL);512 async_answer_0(callid, EINVAL); 513 async_answer_0(rid, EINVAL); 514 514 return; 515 515 } … … 517 517 char *buf = (char *) malloc(size); 518 518 if (buf == NULL) { 519 ipc_answer_0(callid, ENOMEM);520 ipc_answer_0(rid, ENOMEM);519 async_answer_0(callid, ENOMEM); 520 async_answer_0(rid, ENOMEM); 521 521 return; 522 522 } … … 536 536 if (pos == size) { 537 537 (void) async_data_read_finalize(callid, buf, size); 538 ipc_answer_1(rid, EOK, size);538 async_answer_1(rid, EOK, size); 539 539 free(buf); 540 540 } else { … … 554 554 recheck: 555 555 if (keybuffer_pop(&cons->keybuffer, &ev)) { 556 ipc_answer_4(rid, EOK, ev.type, ev.key, ev.mods, ev.c);556 async_answer_4(rid, EOK, ev.type, ev.key, ev.mods, ev.c); 557 557 } else { 558 558 fibril_condvar_wait(&input_cv, &input_mutex); … … 580 580 581 581 if (cons == NULL) { 582 ipc_answer_0(iid, ENOENT);582 async_answer_0(iid, ENOENT); 583 583 return; 584 584 } … … 599 599 600 600 /* Accept the connection */ 601 ipc_answer_0(iid, EOK);601 async_answer_0(iid, EOK); 602 602 603 603 while (true) { … … 659 659 rc = ccap_fb_to_con(fb_info.color_cap, &arg1); 660 660 if (rc != EOK) { 661 ipc_answer_0(callid, rc);661 async_answer_0(callid, rc); 662 662 continue; 663 663 } … … 703 703 break; 704 704 } 705 ipc_answer_3(callid, EOK, arg1, arg2, arg3);705 async_answer_3(callid, EOK, arg1, arg2, arg3); 706 706 } 707 707 } … … 762 762 if (retval != EOK) { 763 763 async_wait_for(req, NULL); 764 ipc_hangup(devmap_phone);764 async_hangup(devmap_phone); 765 765 return retval; 766 766 } … … 769 769 770 770 if (retval != EOK) { 771 ipc_hangup(devmap_phone);771 async_hangup(devmap_phone); 772 772 return retval; 773 773 } … … 775 775 devmap_handle_t handle = (devmap_handle_t) IPC_GET_ARG1(answer); 776 776 777 ipc_hangup(devmap_phone);777 async_hangup(devmap_phone); 778 778 779 779 int phone = async_connect_me_to(PHONE_NS, … … 864 864 } 865 865 866 sysarg_t taskhash; 867 sysarg_t phonehash; 868 if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &taskhash, 869 &phonehash) != 0) { 866 if (async_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, mouse_events) 867 != 0) { 870 868 printf(NAME ": Failed to create callback from mouse device\n"); 871 869 mouse_phone = -1; … … 873 871 } 874 872 875 async_new_connection(taskhash, phonehash, 0, NULL, mouse_events);876 873 skip_mouse: 877 874 878 875 /* Connect to framebuffer driver */ 879 fb_info.phone = ipc_connect_me_to_blocking(PHONE_NS,SERVICE_VIDEO, 0, 0);876 fb_info.phone = service_connect_blocking(SERVICE_VIDEO, 0, 0); 880 877 if (fb_info.phone < 0) { 881 878 printf(NAME ": Failed to connect to video service\n"); … … 953 950 954 951 /* Receive kernel notifications */ 952 async_set_interrupt_received(interrupt_received); 955 953 if (event_subscribe(EVENT_KCONSOLE, 0) != EOK) 956 954 printf(NAME ": Error registering kconsole notifications\n"); 957 958 async_set_interrupt_received(interrupt_received);959 955 960 956 /* Start fibril for checking on hot-plugged keyboards. */ -
uspace/srv/hid/console/gcons.c
re778543 r17aca1c 34 34 35 35 #include <ipc/fb.h> 36 #include <ipc/ipc.h>37 36 #include <async.h> 38 37 #include <stdio.h> -
uspace/srv/hid/fb/ega.c
re778543 r17aca1c 39 39 #include <align.h> 40 40 #include <async.h> 41 #include <ipc/ipc.h>42 41 #include <errno.h> 43 42 #include <stdio.h> … … 46 45 #include <as.h> 47 46 #include <ipc/fb.h> 48 #include <ipc/ipc.h>49 47 #include <ipc/ns.h> 50 48 #include <ipc/services.h> … … 262 260 263 261 if (client_connected) { 264 ipc_answer_0(iid, ELIMIT);262 async_answer_0(iid, ELIMIT); 265 263 return; 266 264 } … … 268 266 /* Accept connection */ 269 267 client_connected = 1; 270 ipc_answer_0(iid, EOK);268 async_answer_0(iid, EOK); 271 269 272 270 while (true) { … … 296 294 case IPC_M_PHONE_HUNGUP: 297 295 client_connected = 0; 298 ipc_answer_0(callid, EOK);296 async_answer_0(callid, EOK); 299 297 300 298 /* Exit thread */ … … 332 330 break; 333 331 case FB_GET_CSIZE: 334 ipc_answer_2(callid, EOK, scr_width, scr_height);332 async_answer_2(callid, EOK, scr_width, scr_height); 335 333 continue; 336 334 case FB_GET_COLOR_CAP: 337 ipc_answer_1(callid, EOK, FB_CCAP_INDEXED);335 async_answer_1(callid, EOK, FB_CCAP_INDEXED); 338 336 continue; 339 337 case FB_CLEAR: … … 440 438 retval = EINVAL; 441 439 } 442 ipc_answer_0(callid, retval);440 async_answer_0(callid, retval); 443 441 } 444 442 } -
uspace/srv/hid/fb/fb.c
re778543 r17aca1c 47 47 #include <as.h> 48 48 #include <ipc/fb.h> 49 #include <ipc/ipc.h>50 49 #include <ipc/ns.h> 51 50 #include <ipc/services.h> … … 1089 1088 void *dest = as_get_mappable_page(IPC_GET_ARG2(*call)); 1090 1089 shm_size = IPC_GET_ARG2(*call); 1091 if ( ipc_answer_1(callid, EOK, (sysarg_t) dest)) {1090 if (async_answer_1(callid, EOK, (sysarg_t) dest)) { 1092 1091 shm_id = 0; 1093 1092 return false; … … 1166 1165 1167 1166 if (handled) 1168 ipc_answer_0(callid, retval);1167 async_answer_0(callid, retval); 1169 1168 return handled; 1170 1169 } … … 1445 1444 } 1446 1445 if (handled) 1447 ipc_answer_0(callid, retval);1446 async_answer_0(callid, retval); 1448 1447 return handled; 1449 1448 } … … 1498 1497 1499 1498 if (handled) 1500 ipc_answer_0(callid, retval);1499 async_answer_0(callid, retval); 1501 1500 return handled; 1502 1501 … … 1582 1581 1583 1582 if (client_connected) { 1584 ipc_answer_0(iid, ELIMIT);1583 async_answer_0(iid, ELIMIT); 1585 1584 return; 1586 1585 } … … 1588 1587 /* Accept connection */ 1589 1588 client_connected = true; 1590 ipc_answer_0(iid, EOK);1589 async_answer_0(iid, EOK); 1591 1590 1592 1591 while (true) { … … 1641 1640 break; 1642 1641 } 1643 ipc_answer_0(callid, EOK);1642 async_answer_0(callid, EOK); 1644 1643 1645 1644 draw_char(vport, ch, col, row); … … 1674 1673 break; 1675 1674 case FB_GET_CSIZE: 1676 ipc_answer_2(callid, EOK, vport->cols, vport->rows);1675 async_answer_2(callid, EOK, vport->cols, vport->rows); 1677 1676 continue; 1678 1677 case FB_GET_COLOR_CAP: 1679 ipc_answer_1(callid, EOK, FB_CCAP_RGB);1678 async_answer_1(callid, EOK, FB_CCAP_RGB); 1680 1679 continue; 1681 1680 case FB_SCROLL: … … 1742 1741 break; 1743 1742 case FB_GET_RESOLUTION: 1744 ipc_answer_2(callid, EOK, screen.xres, screen.yres);1743 async_answer_2(callid, EOK, screen.xres, screen.yres); 1745 1744 continue; 1746 1745 case FB_POINTER_MOVE: … … 1756 1755 retval = ENOENT; 1757 1756 } 1758 ipc_answer_0(callid, retval);1757 async_answer_0(callid, retval); 1759 1758 } 1760 1759 } -
uspace/srv/hid/fb/main.c
re778543 r17aca1c 27 27 */ 28 28 29 #include <ipc/ipc.h>30 29 #include <ipc/services.h> 30 #include <ipc/ns.h> 31 31 #include <sysinfo.h> 32 32 #include <async.h> … … 51 51 52 52 dest = as_get_mappable_page(IPC_GET_ARG2(*call)); 53 if ( ipc_answer_1(callid, EOK, (sysarg_t) dest) == 0) {53 if (async_answer_1(callid, EOK, (sysarg_t) dest) == 0) { 54 54 if (*area) 55 55 as_area_destroy(*area); … … 114 114 return -1; 115 115 116 if ( ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, NULL, NULL) != 0)116 if (service_register(SERVICE_VIDEO) != EOK) 117 117 return -1; 118 118 -
uspace/srv/hid/fb/serial_console.c
re778543 r17aca1c 39 39 40 40 #include <stdio.h> 41 #include <ipc/ipc.h>42 41 #include <async.h> 43 42 #include <ipc/fb.h> … … 319 318 320 319 if (client_connected) { 321 ipc_answer_0(iid, ELIMIT);320 async_answer_0(iid, ELIMIT); 322 321 return; 323 322 } 324 323 325 324 client_connected = 1; 326 ipc_answer_0(iid, EOK);325 async_answer_0(iid, EOK); 327 326 328 327 /* Clear the terminal, set scrolling region … … 348 347 case IPC_M_PHONE_HUNGUP: 349 348 client_connected = 0; 350 ipc_answer_0(callid, EOK);349 async_answer_0(callid, EOK); 351 350 352 351 /* Exit thread */ … … 407 406 break; 408 407 case FB_GET_CSIZE: 409 ipc_answer_2(callid, EOK, scr_width, scr_height);408 async_answer_2(callid, EOK, scr_width, scr_height); 410 409 continue; 411 410 case FB_GET_COLOR_CAP: 412 ipc_answer_1(callid, EOK, color ? FB_CCAP_INDEXED :411 async_answer_1(callid, EOK, color ? FB_CCAP_INDEXED : 413 412 FB_CCAP_STYLE); 414 413 continue; … … 478 477 retval = ENOENT; 479 478 } 480 ipc_answer_0(callid, retval);479 async_answer_0(callid, retval); 481 480 } 482 481 } -
uspace/srv/hid/fb/serial_console.h
re778543 r17aca1c 39 39 #define FB_SERIAL_CONSOLE_H_ 40 40 41 #include <ipc/ipc.h> 41 #include <sys/types.h> 42 #include <ipc/common.h> 42 43 43 44 typedef void (*putc_function_t)(char); -
uspace/srv/hid/kbd/generic/kbd.c
re778543 r17aca1c 36 36 */ 37 37 38 #include <ipc/ipc.h>39 38 #include <ipc/services.h> 40 39 #include <ipc/kbd.h> … … 173 172 int retval; 174 173 175 ipc_answer_0(iid, EOK);174 async_answer_0(iid, EOK); 176 175 177 176 while (1) { … … 180 179 case IPC_M_PHONE_HUNGUP: 181 180 if (client_phone != -1) { 182 ipc_hangup(client_phone);181 async_hangup(client_phone); 183 182 client_phone = -1; 184 183 } 185 184 186 ipc_answer_0(callid, EOK);185 async_answer_0(callid, EOK); 187 186 return; 188 187 case IPC_M_CONNECT_TO_ME: … … 205 204 retval = EINVAL; 206 205 } 207 ipc_answer_0(callid, retval);206 async_answer_0(callid, retval); 208 207 } 209 208 } … … 223 222 224 223 if (cir_service) { 225 while (cir_phone < 0) { 226 cir_phone = ipc_connect_me_to_blocking(PHONE_NS, cir_service, 227 0, 0); 228 } 224 while (cir_phone < 0) 225 cir_phone = service_connect_blocking(cir_service, 0, 0); 229 226 } 230 227 -
uspace/srv/hid/kbd/port/adb.c
re778543 r17aca1c 35 35 */ 36 36 37 #include <ipc/ipc.h>38 37 #include <ipc/adb.h> 39 38 #include <async.h> … … 71 70 72 71 /* NB: The callback connection is slotted for removal */ 73 sysarg_t taskhash; 74 sysarg_t phonehash; 75 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) { 72 if (async_connect_to_me(dev_phone, 0, 0, 0, kbd_port_events) != 0) { 76 73 printf(NAME ": Failed to create callback from device\n"); 77 74 return false; 78 75 } 79 80 async_new_connection(taskhash, phonehash, 0, NULL, kbd_port_events);81 76 82 77 return 0; … … 116 111 retval = ENOENT; 117 112 } 118 ipc_answer_0(callid, retval);113 async_answer_0(callid, retval); 119 114 } 120 115 } -
uspace/srv/hid/kbd/port/chardev.c
re778543 r17aca1c 35 35 */ 36 36 37 #include <ipc/ipc.h>38 37 #include <ipc/char.h> 39 38 #include <async.h> … … 91 90 92 91 /* NB: The callback connection is slotted for removal */ 93 sysarg_t taskhash; 94 sysarg_t phonehash; 95 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &taskhash, &phonehash) != 0) { 92 if (async_connect_to_me(dev_phone, 0, 0, 0, kbd_port_events) != 0) { 96 93 printf(NAME ": Failed to create callback from device\n"); 97 94 return -1; 98 95 } 99 100 async_new_connection(taskhash, phonehash, 0, NULL, kbd_port_events);101 96 102 97 return 0; … … 136 131 retval = ENOENT; 137 132 } 138 ipc_answer_0(callid, retval);133 async_answer_0(callid, retval); 139 134 } 140 135 } -
uspace/srv/hid/kbd/port/gxemul.c
re778543 r17aca1c 35 35 */ 36 36 37 #include <ipc/ipc.h>38 37 #include <async.h> 39 38 #include <sysinfo.h> … … 74 73 async_set_interrupt_received(gxemul_irq_handler); 75 74 gxemul_cmds[0].addr = (void *) addr; 76 ipc_register_irq(inr, device_assign_devno(), 0, &gxemul_kbd);75 register_irq(inr, device_assign_devno(), 0, &gxemul_kbd); 77 76 return 0; 78 77 } -
uspace/srv/hid/kbd/port/msim.c
re778543 r17aca1c 35 35 */ 36 36 37 #include <ipc/ipc.h>38 37 #include <async.h> 39 38 #include <sysinfo.h> … … 74 73 msim_cmds[0].addr = (void *) vaddr; 75 74 async_set_interrupt_received(msim_irq_handler); 76 ipc_register_irq(inr, device_assign_devno(), 0, &msim_kbd);75 register_irq(inr, device_assign_devno(), 0, &msim_kbd); 77 76 78 77 return 0; -
uspace/srv/hid/kbd/port/ns16550.c
re778543 r17aca1c 35 35 */ 36 36 37 #include <ipc/ipc.h>38 37 #include <ipc/irc.h> 39 38 #include <async.h> … … 111 110 112 111 async_set_interrupt_received(ns16550_irq_handler); 113 ipc_register_irq(inr, device_assign_devno(), inr, &ns16550_kbd);112 register_irq(inr, device_assign_devno(), inr, &ns16550_kbd); 114 113 115 114 return pio_enable((void *) ns16550_physical, 8, &vaddr); -
uspace/srv/hid/kbd/port/pl050.c
re778543 r17aca1c 37 37 #include <ddi.h> 38 38 #include <libarch/ddi.h> 39 #include <ipc/ipc.h>40 39 #include <async.h> 41 40 #include <unistd.h> … … 101 100 102 101 async_set_interrupt_received(pl050_irq_handler); 103 ipc_register_irq(inr, device_assign_devno(), 0, &pl050_kbd);102 register_irq(inr, device_assign_devno(), 0, &pl050_kbd); 104 103 105 104 return 0; -
uspace/srv/hid/kbd/port/z8530.c
re778543 r17aca1c 35 35 */ 36 36 37 #include <ipc/ipc.h>38 37 #include <ipc/irc.h> 39 38 #include <async.h> … … 99 98 100 99 async_set_interrupt_received(z8530_irq_handler); 101 ipc_register_irq(inr, device_assign_devno(), inr, &z8530_kbd);100 register_irq(inr, device_assign_devno(), inr, &z8530_kbd); 102 101 103 102 return 0; -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
re778543 r17aca1c 42 42 #include <io/console.h> 43 43 #include <vfs/vfs.h> 44 #include <ipc/ipc.h>45 44 #include <ipc/mouse.h> 46 45 #include <async.h> … … 140 139 141 140 async_set_interrupt_received(s3c24xx_ts_irq_handler); 142 ipc_register_irq(inr, device_assign_devno(), 0, &ts_irq_code);141 register_irq(inr, device_assign_devno(), 0, &ts_irq_code); 143 142 144 143 s3c24xx_ts_wait_for_int_mode(ts, updn_down); … … 377 376 int retval; 378 377 379 ipc_answer_0(iid, EOK);378 async_answer_0(iid, EOK); 380 379 381 380 while (1) { … … 384 383 case IPC_M_PHONE_HUNGUP: 385 384 if (ts->client_phone != -1) { 386 ipc_hangup(ts->client_phone);385 async_hangup(ts->client_phone); 387 386 ts->client_phone = -1; 388 387 } 389 388 390 ipc_answer_0(callid, EOK);389 async_answer_0(callid, EOK); 391 390 return; 392 391 case IPC_M_CONNECT_TO_ME: … … 401 400 retval = EINVAL; 402 401 } 403 ipc_answer_0(callid, retval);402 async_answer_0(callid, retval); 404 403 } 405 404 }
Note:
See TracChangeset
for help on using the changeset viewer.
