Changeset d7c72db in mainline for uspace/lib/drv/generic
- Timestamp:
- 2011-05-24T21:01:02Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a28b41d
- Parents:
- 4e78236
- Location:
- uspace/lib/drv/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/dev_iface.c
r4e78236 rd7c72db 61 61 remote_iface_t *get_remote_iface(int idx) 62 62 { 63 printf("get_remote_iface(): idx: %d\n", idx);64 63 assert(is_valid_iface_idx(idx)); 65 printf("remote iface: %p\n", remote_ifaces.ifaces[idx]);66 67 printf("remote_usbhid_iface ptr: %p\n", &remote_usbhid_iface);68 64 69 65 return remote_ifaces.ifaces[idx]; … … 73 69 get_remote_method(remote_iface_t *rem_iface, sysarg_t iface_method_idx) 74 70 { 75 printf("remote iface: %p\n", rem_iface);76 printf("Method count: %d\n", rem_iface->method_count);77 71 if (iface_method_idx >= rem_iface->method_count) { 78 72 return NULL; -
uspace/lib/drv/generic/remote_usbhid.c
r4e78236 rd7c72db 43 43 static void remote_usbhid_get_event_length(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 44 44 static void remote_usbhid_get_event(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 45 static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 46 static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 45 47 // static void remote_usbhid_(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 46 48 … … 48 50 static remote_iface_func_ptr_t remote_usbhid_iface_ops [] = { 49 51 remote_usbhid_get_event_length, 50 remote_usbhid_get_event 52 remote_usbhid_get_event, 53 remote_usbhid_get_report_descriptor_length, 54 remote_usbhid_get_report_descriptor 51 55 }; 52 56 … … 117 121 int rc; 118 122 119 int32_t *data = malloc(len);123 uint8_t *data = malloc(len); 120 124 if (data == NULL) { 121 125 async_answer_0(data_callid, ENOMEM); … … 143 147 } 144 148 149 void remote_usbhid_get_report_descriptor(ddf_fun_t *fun, void *iface, 150 ipc_callid_t callid, ipc_call_t *call) 151 { 152 /** @todo Implement! */ 153 } 154 155 void remote_usbhid_get_report_descriptor_length(ddf_fun_t *fun, void *iface, 156 ipc_callid_t callid, ipc_call_t *call) 157 { 158 /** @todo Implement! */ 159 } 160 145 161 /** 146 162 * @}
Note:
See TracChangeset
for help on using the changeset viewer.