Changeset 52c4264 in mainline for uspace/lib/usb/src
- Timestamp:
- 2012-08-17T12:23:52Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 267f235
- Parents:
- ae2c925 (diff), ad78054 (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. - Location:
- uspace/lib/usb/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/ddfiface.c
rae2c925 r52c4264 68 68 { 69 69 assert(fun); 70 return usb_get_hc_by_handle( fun->handle, handle);70 return usb_get_hc_by_handle(ddf_fun_get_handle(fun), handle); 71 71 } 72 72 … … 82 82 83 83 if (handle != NULL) { 84 *handle = fun->handle;84 *handle = ddf_fun_get_handle(fun); 85 85 } 86 86 … … 99 99 { 100 100 assert(fun); 101 return usb_get_address_by_handle( fun->handle, address);101 return usb_get_address_by_handle(ddf_fun_get_handle(fun), address); 102 102 } 103 103 … … 116 116 usb_address_t *address) 117 117 { 118 assert(fun); 119 assert(fun->driver_data); 120 const usb_hub_attached_device_t *device = fun->driver_data; 118 const usb_hub_attached_device_t *device = ddf_fun_data_get(fun); 121 119 assert(device->fun == fun); 122 120 if (address) -
uspace/lib/usb/src/hc.c
rae2c925 r52c4264 115 115 */ 116 116 int usb_hc_connection_initialize_from_device(usb_hc_connection_t *connection, 117 const ddf_dev_t *device) 118 { 119 assert(connection); 120 121 if (device == NULL) { 117 ddf_dev_t *device) 118 { 119 if (device == NULL) 122 120 return EBADMEM; 123 }124 121 125 122 devman_handle_t hc_handle; 126 const int rc = usb_get_hc_by_handle(d evice->handle, &hc_handle);123 const int rc = usb_get_hc_by_handle(ddf_dev_get_handle(device), &hc_handle); 127 124 if (rc == EOK) { 128 125 usb_hc_connection_initialize(connection, hc_handle);
Note:
See TracChangeset
for help on using the changeset viewer.