Ignore:
Timestamp:
2018-03-21T21:29:31Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3e242d2
Parents:
eadaeae8
Message:

Get rid of ipc_callid_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usbhc.c

    readaeae8 r3be9d10  
    227227}
    228228
    229 static void remote_usbhc_default_address_reservation(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    230 static void remote_usbhc_device_enumerate(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    231 static void remote_usbhc_device_remove(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    232 static void remote_usbhc_register_endpoint(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    233 static void remote_usbhc_unregister_endpoint(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    234 static void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call);
     229static void remote_usbhc_default_address_reservation(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
     230static void remote_usbhc_device_enumerate(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
     231static void remote_usbhc_device_remove(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
     232static void remote_usbhc_register_endpoint(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
     233static void remote_usbhc_unregister_endpoint(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
     234static void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call);
    235235
    236236/** Remote USB interface operations. */
     
    252252
    253253typedef struct {
    254         ipc_callid_t caller;
     254        cap_call_handle_t caller;
    255255        usbhc_iface_transfer_request_t request;
    256256} async_transaction_t;
    257257
    258258void remote_usbhc_default_address_reservation(ddf_fun_t *fun, void *iface,
    259     ipc_callid_t callid, ipc_call_t *call)
     259    cap_call_handle_t callid, ipc_call_t *call)
    260260{
    261261        const usbhc_iface_t *usbhc_iface = (usbhc_iface_t *) iface;
     
    273273
    274274static void remote_usbhc_device_enumerate(ddf_fun_t *fun, void *iface,
    275     ipc_callid_t callid, ipc_call_t *call)
     275    cap_call_handle_t callid, ipc_call_t *call)
    276276{
    277277        const usbhc_iface_t *usbhc_iface = (usbhc_iface_t *) iface;
     
    289289
    290290static void remote_usbhc_device_remove(ddf_fun_t *fun, void *iface,
    291     ipc_callid_t callid, ipc_call_t *call)
     291    cap_call_handle_t callid, ipc_call_t *call)
    292292{
    293293        const usbhc_iface_t *usbhc_iface = (usbhc_iface_t *) iface;
     
    304304
    305305static void remote_usbhc_register_endpoint(ddf_fun_t *fun, void *iface,
    306     ipc_callid_t callid, ipc_call_t *call)
     306    cap_call_handle_t callid, ipc_call_t *call)
    307307{
    308308        assert(fun);
     
    318318
    319319        usb_endpoint_descriptors_t ep_desc;
    320         ipc_callid_t data_callid;
     320        cap_call_handle_t data_callid;
    321321        size_t len;
    322322
     
    341341
    342342static void remote_usbhc_unregister_endpoint(ddf_fun_t *fun, void *iface,
    343     ipc_callid_t callid, ipc_call_t *call)
     343    cap_call_handle_t callid, ipc_call_t *call)
    344344{
    345345        assert(fun);
     
    355355
    356356        usb_pipe_desc_t pipe_desc;
    357         ipc_callid_t data_callid;
     357        cap_call_handle_t data_callid;
    358358        size_t len;
    359359
     
    381381}
    382382
    383 static async_transaction_t *async_transaction_create(ipc_callid_t caller)
     383static async_transaction_t *async_transaction_create(cap_call_handle_t caller)
    384384{
    385385        async_transaction_t *trans = calloc(1, sizeof(async_transaction_t));
     
    410410
    411411        errno_t err;
    412         ipc_callid_t data_callid;
     412        cap_call_handle_t data_callid;
    413413        size_t size;
    414414        unsigned flags;
     
    445445}
    446446
    447 void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
     447void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call)
    448448{
    449449        assert(fun);
     
    466466        errno_t err = EPARTY;
    467467
    468         ipc_callid_t data_callid;
     468        cap_call_handle_t data_callid;
    469469        size_t len;
    470470        if (!async_data_write_receive(&data_callid, &len)
Note: See TracChangeset for help on using the changeset viewer.