Changeset 3be9d10 in mainline for uspace/lib/usbvirt/src/ipc_dev.c
- Timestamp:
- 2018-03-21T21:29:31Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e242d2
- Parents:
- eadaeae8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/ipc_dev.c
readaeae8 r3be9d10 49 49 */ 50 50 static void ipc_get_name(usbvirt_device_t *dev, 51 ipc_callid_t iid, ipc_call_t *icall)51 cap_call_handle_t iid, ipc_call_t *icall) 52 52 { 53 53 if (dev->name == NULL) { … … 57 57 size_t size = str_size(dev->name); 58 58 59 ipc_callid_t callid;59 cap_call_handle_t callid; 60 60 size_t accepted_size; 61 61 if (!async_data_read_receive(&callid, &accepted_size)) { … … 79 79 */ 80 80 static void ipc_control_read(usbvirt_device_t *dev, 81 ipc_callid_t iid, ipc_call_t *icall)81 cap_call_handle_t iid, ipc_call_t *icall) 82 82 { 83 83 errno_t rc; … … 94 94 } 95 95 96 ipc_callid_t data_callid;96 cap_call_handle_t data_callid; 97 97 if (!async_data_read_receive(&data_callid, &data_len)) { 98 98 async_answer_0(iid, EPARTY); … … 134 134 */ 135 135 static void ipc_control_write(usbvirt_device_t *dev, 136 ipc_callid_t iid, ipc_call_t *icall)136 cap_call_handle_t iid, ipc_call_t *icall) 137 137 { 138 138 size_t data_buffer_len = IPC_GET_ARG1(*icall); … … 179 179 static void ipc_data_in(usbvirt_device_t *dev, 180 180 usb_transfer_type_t transfer_type, 181 ipc_callid_t iid, ipc_call_t *icall)181 cap_call_handle_t iid, ipc_call_t *icall) 182 182 { 183 183 usb_endpoint_t endpoint = IPC_GET_ARG1(*icall); … … 186 186 187 187 size_t data_len = 0; 188 ipc_callid_t data_callid;188 cap_call_handle_t data_callid; 189 189 if (!async_data_read_receive(&data_callid, &data_len)) { 190 190 async_answer_0(iid, EPARTY); … … 223 223 static void ipc_data_out(usbvirt_device_t *dev, 224 224 usb_transfer_type_t transfer_type, 225 ipc_callid_t iid, ipc_call_t *icall)225 cap_call_handle_t iid, ipc_call_t *icall) 226 226 { 227 227 usb_endpoint_t endpoint = IPC_GET_ARG1(*icall); … … 253 253 */ 254 254 bool usbvirt_ipc_handle_call(usbvirt_device_t *dev, 255 ipc_callid_t callid, ipc_call_t *call)255 cap_call_handle_t callid, ipc_call_t *call) 256 256 { 257 257 switch (IPC_GET_IMETHOD(*call)) {
Note:
See TracChangeset
for help on using the changeset viewer.