Changeset 27ed734c in mainline for uspace/lib/usb/src/ddfiface.c
- Timestamp:
- 2011-10-31T13:06:57Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 5e07cbc0
- Parents:
- d25e0a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/ddfiface.c
rd25e0a4 r27ed734c 44 44 45 45 /** DDF interface for USB device, implementation for typical hub. */ 46 usb_iface_t 46 usb_iface_t usb_iface_hub_impl = { 47 47 .get_hc_handle = usb_iface_get_hc_handle_device_impl, 48 .get_ address = usb_iface_get_address_forward_impl,48 .get_my_address = usb_iface_get_my_address_forward_impl, 49 49 }; 50 50 51 51 /** DDF interface for USB device, implementation for child of a typical hub. */ 52 usb_iface_t 52 usb_iface_t usb_iface_hub_child_impl = { 53 53 .get_hc_handle = usb_iface_get_hc_handle_device_impl, 54 .get_ address = usb_iface_get_address_from_device_data,54 .get_my_address = usb_iface_get_my_address_from_device_data, 55 55 }; 56 56 … … 92 92 * @return Error code. 93 93 */ 94 int usb_iface_get_ address_forward_impl(ddf_fun_t *fun, devman_handle_t handle,94 int usb_iface_get_my_address_forward_impl(ddf_fun_t *fun, 95 95 usb_address_t *address) 96 96 { 97 97 assert(fun); 98 assert(handle == 0);99 98 100 99 async_sess_t *parent_sess = … … 107 106 108 107 sysarg_t addr; 109 int rc = async_req_ 2_1(exch, DEV_IFACE_ID(USB_DEV_IFACE),110 IPC_M_USB_GET_ ADDRESS, handle, &addr);108 int rc = async_req_1_1(exch, DEV_IFACE_ID(USB_DEV_IFACE), 109 IPC_M_USB_GET_MY_ADDRESS, &addr); 111 110 112 111 async_exchange_end(exch); … … 133 132 * @return Error code. 134 133 */ 135 int usb_iface_get_ address_from_device_data(ddf_fun_t *fun,136 devman_handle_t handle,usb_address_t *address)134 int usb_iface_get_my_address_from_device_data(ddf_fun_t *fun, 135 usb_address_t *address) 137 136 { 138 137 assert(fun); 139 assert(handle == 0);140 138 assert(fun->driver_data); 141 139 usb_hub_attached_device_t *device = fun->driver_data;
Note:
See TracChangeset
for help on using the changeset viewer.