Changeset e8f826b in mainline for uspace/lib/usb/src
- Timestamp:
- 2011-05-20T20:29:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 400735e, c9256c5
- Parents:
- 96f2aa6
- Location:
- uspace/lib/usb/src
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/ddfiface.c
r96f2aa6 re8f826b 37 37 #include <async.h> 38 38 #include <usb/ddfiface.h> 39 #include <usb/ driver.h>39 #include <usb/hc.h> 40 40 #include <usb/debug.h> 41 41 #include <errno.h> -
uspace/lib/usb/src/hc.c
r96f2aa6 re8f826b 39 39 #include <usbhc_iface.h> 40 40 #include <usb/hc.h> 41 #include <usb/driver.h>42 41 #include <usb/debug.h> 43 42 #include <errno.h> … … 232 231 } 233 232 233 /** Find host controller handle that is ancestor of given device. 234 * 235 * @param[in] device_handle Device devman handle. 236 * @param[out] hc_handle Where to store handle of host controller 237 * controlling device with @p device_handle handle. 238 * @return Error code. 239 */ 240 int usb_hc_find(devman_handle_t device_handle, devman_handle_t *hc_handle) 241 { 242 int parent_phone = devman_parent_device_connect(device_handle, 243 IPC_FLAG_BLOCKING); 244 if (parent_phone < 0) { 245 return parent_phone; 246 } 247 248 devman_handle_t h; 249 int rc = async_req_1_1(parent_phone, DEV_IFACE_ID(USB_DEV_IFACE), 250 IPC_M_USB_GET_HOST_CONTROLLER_HANDLE, &h); 251 252 async_hangup(parent_phone); 253 254 if (rc != EOK) { 255 return rc; 256 } 257 258 if (hc_handle != NULL) { 259 *hc_handle = h; 260 } 261 262 return EOK; 263 } 264 234 265 /** 235 266 * @} -
uspace/lib/usb/src/resolve.c
r96f2aa6 re8f826b 34 34 */ 35 35 #include <inttypes.h> 36 #include <usb/driver.h>37 36 #include <usb/hc.h> 38 37 #include <devman.h>
Note:
See TracChangeset
for help on using the changeset viewer.