Changeset 4f14e1f8 in mainline


Ignore:
Timestamp:
2011-01-29T12:04:43Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b6931a
Parents:
8add9ca5
Message:

do not intermix low-level IPC methods with async framework methods

Location:
uspace/srv
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/serial_console.c

    r8add9ca5 r4f14e1f8  
    318318       
    319319        if (client_connected) {
    320                 ipc_answer_0(iid, ELIMIT);
     320                async_answer_0(iid, ELIMIT);
    321321                return;
    322322        }
    323323       
    324324        client_connected = 1;
    325         ipc_answer_0(iid, EOK);
     325        async_answer_0(iid, EOK);
    326326       
    327327        /* Clear the terminal, set scrolling region
     
    347347                case IPC_M_PHONE_HUNGUP:
    348348                        client_connected = 0;
    349                         ipc_answer_0(callid, EOK);
     349                        async_answer_0(callid, EOK);
    350350                       
    351351                        /* Exit thread */
     
    406406                        break;
    407407                case FB_GET_CSIZE:
    408                         ipc_answer_2(callid, EOK, scr_width, scr_height);
     408                        async_answer_2(callid, EOK, scr_width, scr_height);
    409409                        continue;
    410410                case FB_GET_COLOR_CAP:
    411                         ipc_answer_1(callid, EOK, color ? FB_CCAP_INDEXED :
     411                        async_answer_1(callid, EOK, color ? FB_CCAP_INDEXED :
    412412                            FB_CCAP_STYLE);
    413413                        continue;
     
    477477                        retval = ENOENT;
    478478                }
    479                 ipc_answer_0(callid, retval);
     479                async_answer_0(callid, retval);
    480480        }
    481481}
  • uspace/srv/hid/kbd/port/adb.c

    r8add9ca5 r4f14e1f8  
    7070
    7171        /* 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) {
     72        if (async_connect_to_me(dev_phone, 0, 0, 0, kbd_port_events) != 0) {
    7573                printf(NAME ": Failed to create callback from device\n");
    7674                return false;
    7775        }
    78 
    79         async_new_connection(taskhash, phonehash, 0, NULL, kbd_port_events);
    8076
    8177        return 0;
     
    115111                        retval = ENOENT;
    116112                }
    117                 ipc_answer_0(callid, retval);
     113                async_answer_0(callid, retval);
    118114        }
    119115}
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r8add9ca5 r4f14e1f8  
    209209
    210210        if (dev_addr < 0) {
    211                 ipc_answer_0(iid, EINVAL);
     211                async_answer_0(iid, EINVAL);
    212212                return;
    213213        }
    214214
    215215        /* Answer the IPC_M_CONNECT_ME_TO call. */
    216         ipc_answer_0(iid, EOK);
     216        async_answer_0(iid, EOK);
    217217
    218218        while (1) {
     
    222222                case IPC_M_PHONE_HUNGUP:
    223223                        /* The other side has hung up. */
    224                         ipc_answer_0(callid, EOK);
     224                        async_answer_0(callid, EOK);
    225225                        return;
    226226                case IPC_M_CONNECT_TO_ME:
     
    245245                        break;
    246246                }
    247                 ipc_answer_0(callid, retval);
     247                async_answer_0(callid, retval);
    248248        }
    249249}
Note: See TracChangeset for help on using the changeset viewer.