Changeset 46b881c in mainline for uspace/lib/drv/generic/remote_hw_res.c
- Timestamp:
- 2011-01-29T11:36:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b6931a, 8add9ca5
- Parents:
- e26a4633 (diff), ffa2c8ef (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_hw_res.c
re26a4633 r46b881c 33 33 */ 34 34 35 #include <ipc/ipc.h>36 35 #include <async.h> 37 36 #include <errno.h> … … 62 61 63 62 if (hw_res_ops->enable_interrupt == NULL) 64 ipc_answer_0(callid, ENOTSUP);63 async_answer_0(callid, ENOTSUP); 65 64 else if (hw_res_ops->enable_interrupt(dev)) 66 ipc_answer_0(callid, EOK);65 async_answer_0(callid, EOK); 67 66 else 68 ipc_answer_0(callid, EREFUSED);67 async_answer_0(callid, EREFUSED); 69 68 } 70 69 … … 75 74 76 75 if (hw_res_ops->get_resource_list == NULL) { 77 ipc_answer_0(callid, ENOTSUP);76 async_answer_0(callid, ENOTSUP); 78 77 return; 79 78 } … … 81 80 hw_resource_list_t *hw_resources = hw_res_ops->get_resource_list(dev); 82 81 if (hw_resources == NULL){ 83 ipc_answer_0(callid, ENOENT);82 async_answer_0(callid, ENOENT); 84 83 return; 85 84 } 86 85 87 ipc_answer_1(callid, EOK, hw_resources->count);86 async_answer_1(callid, EOK, hw_resources->count); 88 87 89 88 size_t len;
Note:
See TracChangeset
for help on using the changeset viewer.