Changeset 19a1800 in mainline for uspace/lib/drv/generic/remote_hw_res.c
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (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
r976f546 r19a1800 33 33 */ 34 34 35 #include <ipc/ipc.h>36 35 #include <async.h> 37 36 #include <errno.h> 38 37 39 38 #include "ops/hw_res.h" 40 #include "d river.h"39 #include "ddf/driver.h" 41 40 42 static void remote_hw_res_get_resource_list(d evice_t *, void *, ipc_callid_t,41 static void remote_hw_res_get_resource_list(ddf_fun_t *, void *, ipc_callid_t, 43 42 ipc_call_t *); 44 static void remote_hw_res_enable_interrupt(d evice_t *, void *, ipc_callid_t,43 static void remote_hw_res_enable_interrupt(ddf_fun_t *, void *, ipc_callid_t, 45 44 ipc_call_t *); 46 45 … … 56 55 }; 57 56 58 static void remote_hw_res_enable_interrupt(d evice_t *dev, void *ops,57 static void remote_hw_res_enable_interrupt(ddf_fun_t *fun, void *ops, 59 58 ipc_callid_t callid, ipc_call_t *call) 60 59 { … … 62 61 63 62 if (hw_res_ops->enable_interrupt == NULL) 64 ipc_answer_0(callid, ENOTSUP);65 else if (hw_res_ops->enable_interrupt( dev))66 ipc_answer_0(callid, EOK);63 async_answer_0(callid, ENOTSUP); 64 else if (hw_res_ops->enable_interrupt(fun)) 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 71 static void remote_hw_res_get_resource_list(d evice_t *dev, void *ops,70 static void remote_hw_res_get_resource_list(ddf_fun_t *fun, void *ops, 72 71 ipc_callid_t callid, ipc_call_t *call) 73 72 { … … 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 } 80 79 81 hw_resource_list_t *hw_resources = hw_res_ops->get_resource_list( dev);80 hw_resource_list_t *hw_resources = hw_res_ops->get_resource_list(fun); 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.