Changeset ffa2c8ef in mainline for uspace/srv/hid/fb
- Timestamp:
- 2011-01-29T11:36:08Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46b881c
- Parents:
- 64d2b10
- Location:
- uspace/srv/hid/fb
- Files:
-
- 5 edited
-
ega.c (modified) (7 diffs)
-
fb.c (modified) (11 diffs)
-
main.c (modified) (2 diffs)
-
serial_console.c (modified) (1 diff)
-
serial_console.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/ega.c
r64d2b10 rffa2c8ef 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
r64d2b10 rffa2c8ef 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
r64d2b10 rffa2c8ef 27 27 */ 28 28 29 #include <ipc/ipc.h>30 29 #include <ipc/services.h> 31 30 #include <ipc/ns.h> … … 52 51 53 52 dest = as_get_mappable_page(IPC_GET_ARG2(*call)); 54 if ( ipc_answer_1(callid, EOK, (sysarg_t) dest) == 0) {53 if (async_answer_1(callid, EOK, (sysarg_t) dest) == 0) { 55 54 if (*area) 56 55 as_area_destroy(*area); -
uspace/srv/hid/fb/serial_console.c
r64d2b10 rffa2c8ef 39 39 40 40 #include <stdio.h> 41 #include <ipc/ipc.h>42 41 #include <async.h> 43 42 #include <ipc/fb.h> -
uspace/srv/hid/fb/serial_console.h
r64d2b10 rffa2c8ef 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);
Note:
See TracChangeset
for help on using the changeset viewer.
