Changeset 984a9ba in mainline for uspace/lib/drv/generic/remote_pio_window.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_pio_window.c
r76f566d r984a9ba 40 40 #include "ddf/driver.h" 41 41 42 static void remote_pio_window_get(ddf_fun_t *, void *, cap_call_handle_t, 43 ipc_call_t *); 42 static void remote_pio_window_get(ddf_fun_t *, void *, ipc_call_t *); 44 43 45 44 static const remote_iface_func_ptr_t remote_pio_window_iface_ops [] = { … … 53 52 54 53 static void remote_pio_window_get(ddf_fun_t *fun, void *ops, 55 cap_call_handle_t chandle,ipc_call_t *call)54 ipc_call_t *call) 56 55 { 57 56 pio_window_ops_t *pio_win_ops = (pio_window_ops_t *) ops; 58 size_t len;59 57 60 58 if (!pio_win_ops->get_pio_window) { 61 async_answer_0(c handle, ENOTSUP);59 async_answer_0(call, ENOTSUP); 62 60 return; 63 61 } … … 65 63 pio_window_t *pio_window = pio_win_ops->get_pio_window(fun); 66 64 if (!pio_window) { 67 async_answer_0(c handle, ENOENT);65 async_answer_0(call, ENOENT); 68 66 return; 69 67 } 70 68 71 async_answer_0(c handle, EOK);69 async_answer_0(call, EOK); 72 70 73 if (!async_data_read_receive(&chandle, &len)) { 71 ipc_call_t data; 72 size_t len; 73 if (!async_data_read_receive(&data, &len)) { 74 74 /* Protocol error - the recipient is not accepting data */ 75 75 return; 76 76 } 77 77 78 async_data_read_finalize( chandle, pio_window, len);78 async_data_read_finalize(&data, pio_window, len); 79 79 } 80 80
Note:
See TracChangeset
for help on using the changeset viewer.