Changeset 1e6dc5b in mainline
- Timestamp:
- 2011-10-31T12:08:43Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1c1b577
- Parents:
- 59c163c
- Location:
- uspace/lib/usb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/Makefile
r59c163c r1e6dc5b 31 31 EXTRA_CFLAGS += \ 32 32 -I$(LIBDRV_PREFIX)/include \ 33 -I$(LIBUSBDEV_PREFIX)/include \ 33 34 -Iinclude 34 35 -
uspace/lib/usb/include/usb/ddfiface.h
r59c163c r1e6dc5b 44 44 extern usb_iface_t usb_iface_hub_impl; 45 45 46 int usb_iface_get_address_ set_my_handle_impl(ddf_fun_t *, devman_handle_t,46 int usb_iface_get_address_from_device_data(ddf_fun_t *, devman_handle_t, 47 47 usb_address_t *); 48 48 extern usb_iface_t usb_iface_hub_child_impl; -
uspace/lib/usb/src/ddfiface.c
r59c163c r1e6dc5b 39 39 #include <usb/hc.h> 40 40 #include <usb/debug.h> 41 #include <usb/dev/hub.h> 41 42 #include <errno.h> 42 43 #include <assert.h> … … 51 52 usb_iface_t usb_iface_hub_child_impl = { 52 53 .get_hc_handle = usb_iface_get_hc_handle_device_impl, 53 .get_address = usb_iface_get_address_ set_my_handle_impl54 .get_address = usb_iface_get_address_from_device_data, 54 55 }; 55 56 … … 131 132 * @return Error code. 132 133 */ 133 int usb_iface_get_address_ set_my_handle_impl(ddf_fun_t *fun,134 int usb_iface_get_address_from_device_data(ddf_fun_t *fun, 134 135 devman_handle_t handle, usb_address_t *address) 135 136 { 136 if (handle == 0) { 137 handle = fun->handle; 138 } 139 return usb_iface_get_address_forward_impl(fun, handle, address); 137 assert(fun); 138 assert(handle == 0); 139 assert(fun->driver_data); 140 usb_hub_attached_device_t *device = fun->driver_data; 141 assert(device->fun == fun); 142 if (address) 143 *address = device->address; 144 return EOK; 140 145 } 141 146
Note:
See TracChangeset
for help on using the changeset viewer.