Changeset 925a21e in mainline for uspace/lib/usb/src/resolve.c
- Timestamp:
- 2011-09-24T14:20:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bf76c1
- Parents:
- 867e2555 (diff), 1ab4aca (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/resolve.c
r867e2555 r925a21e 46 46 devman_handle_t *out_hc_handle, usb_address_t *out_device_address) 47 47 { 48 size_t class_index;48 uint64_t sid; 49 49 size_t address; 50 50 int rc; 51 51 char *ptr; 52 52 53 rc = str_ size_t(path, &ptr, 10, false, &class_index);53 rc = str_uint64(path, &ptr, 10, false, &sid); 54 54 if (rc != EOK) { 55 55 return false; … … 64 64 return false; 65 65 } 66 rc = usb_ddf_get_hc_handle_by_ class(class_index, out_hc_handle);66 rc = usb_ddf_get_hc_handle_by_sid(sid, out_hc_handle); 67 67 if (rc != EOK) { 68 68 return false; … … 152 152 if (str_length(func_start) > 0) { 153 153 char tmp_path[MAX_DEVICE_PATH ]; 154 rc = devman_ get_device_path(dev_handle,154 rc = devman_fun_get_path(dev_handle, 155 155 tmp_path, MAX_DEVICE_PATH); 156 156 if (rc != EOK) { … … 173 173 174 174 /* First try to get the device handle. */ 175 rc = devman_ device_get_handle(path, &dev_handle, 0);175 rc = devman_fun_get_handle(path, &dev_handle, 0); 176 176 if (rc != EOK) { 177 177 free(path); … … 184 184 /* Get device handle first. */ 185 185 devman_handle_t tmp_handle; 186 rc = devman_ device_get_handle(path, &tmp_handle, 0);186 rc = devman_fun_get_handle(path, &tmp_handle, 0); 187 187 if (rc != EOK) { 188 188 free(path);
Note:
See TracChangeset
for help on using the changeset viewer.