Changeset 4e78236 in mainline for uspace/lib/drv
- Timestamp:
- 2011-05-24T19:10:49Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d7c72db
- Parents:
- e7079cf
- Location:
- uspace/lib/drv
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/Makefile
re7079cf r4e78236 40 40 generic/remote_usb.c \ 41 41 generic/remote_pci.c \ 42 generic/remote_usbhc.c 42 generic/remote_usbhc.c \ 43 generic/remote_usbhid.c 43 44 44 45 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/drv/generic/dev_iface.c
re7079cf r4e78236 46 46 #include "remote_pci.h" 47 47 48 #include <stdio.h> 49 48 50 static iface_dipatch_table_t remote_ifaces = { 49 51 .ifaces = { … … 59 61 remote_iface_t *get_remote_iface(int idx) 60 62 { 63 printf("get_remote_iface(): idx: %d\n", idx); 61 64 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 62 69 return remote_ifaces.ifaces[idx]; 63 70 } … … 66 73 get_remote_method(remote_iface_t *rem_iface, sysarg_t iface_method_idx) 67 74 { 75 printf("remote iface: %p\n", rem_iface); 76 printf("Method count: %d\n", rem_iface->method_count); 68 77 if (iface_method_idx >= rem_iface->method_count) { 69 78 return NULL; -
uspace/lib/drv/generic/driver.c
re7079cf r4e78236 397 397 * handling ("remote interface"). 398 398 */ 399 printf("iface_idx: %d\n", iface_idx); 399 400 remote_iface_t *rem_iface = get_remote_iface(iface_idx); 400 401 assert(rem_iface != NULL); -
uspace/lib/drv/generic/remote_usbhid.c
re7079cf r4e78236 36 36 #include <errno.h> 37 37 #include <assert.h> 38 #include <stdio.h> 38 39 39 40 #include "usbhid_iface.h" … … 58 59 }; 59 60 60 usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;61 //usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface; 61 62 62 63 … … 75 76 76 77 size_t len = hid_iface->get_event_length(fun); 77 if (len == 0) { 78 len = EEMPTY; 79 } 80 if (len < 0) { 81 async_answer_0(callid, len); 82 } else { 83 async_answer_1(callid, EOK, len); 84 } 78 // if (len == 0) { 79 // len = EEMPTY; 80 // } 81 async_answer_1(callid, EOK, len); 82 83 // if (len < 0) { 84 // async_answer_0(callid, len); 85 // } else { 86 // async_answer_1(callid, EOK, len); 87 // } 85 88 } 86 89 -
uspace/lib/drv/include/remote_usbhid.h
re7079cf r4e78236 36 36 #define LIBDRV_REMOTE_USBHID_H_ 37 37 38 remote_iface_t remote_usbhid_iface;38 extern remote_iface_t remote_usbhid_iface; 39 39 40 40 #endif
Note:
See TracChangeset
for help on using the changeset viewer.