Changeset 2c202c5 in mainline for uspace/lib/usb/src
- Timestamp:
- 2011-12-11T15:17:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd575647
- Parents:
- a045ab1
- Location:
- uspace/lib/usb/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/ddfiface.c
ra045ab1 r2c202c5 68 68 { 69 69 assert(fun); 70 return usb_ find_hc(fun->handle, handle);70 return usb_get_hc_by_handle(fun->handle, handle); 71 71 } 72 72 -
uspace/lib/usb/src/dev.c
ra045ab1 r2c202c5 68 68 * @return Error code. 69 69 */ 70 int usb_find_hc(devman_handle_t device_handle, devman_handle_t *hc_handle) 70 int usb_get_hc_by_handle(devman_handle_t device_handle, 71 devman_handle_t *hc_handle) 71 72 { 72 73 async_sess_t *parent_sess = … … 88 89 return ret; 89 90 } 91 /*----------------------------------------------------------------------------*/ 92 int usb_device_connection_initialize(usb_device_connection_t *connection, 93 usb_hc_connection_t *hc_connection, usb_address_t address) 94 { 95 assert(connection); 96 97 if (hc_connection == NULL) { 98 return EBADMEM; 99 } 100 101 if ((address < 0) || (address >= USB11_ADDRESS_MAX)) { 102 return EINVAL; 103 } 104 105 connection->hc_connection = hc_connection; 106 connection->address = address; 107 return EOK; 108 } -
uspace/lib/usb/src/hc.c
ra045ab1 r2c202c5 114 114 115 115 devman_handle_t hc_handle; 116 const int rc = usb_ find_hc(device->handle, &hc_handle);116 const int rc = usb_get_hc_by_handle(device->handle, &hc_handle); 117 117 if (rc == EOK) { 118 118 usb_hc_connection_initialize(connection, hc_handle); -
uspace/lib/usb/src/resolve.c
ra045ab1 r2c202c5 185 185 /* Try to find its host controller. */ 186 186 if (!found_hc) { 187 rc = usb_ find_hc(tmp_handle, &hc_handle);187 rc = usb_get_hc_by_handle(tmp_handle, &hc_handle); 188 188 if (rc == EOK) { 189 189 found_hc = true;
Note:
See TracChangeset
for help on using the changeset viewer.