Changeset e8f826b in mainline
- 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
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
r96f2aa6 re8f826b 46 46 #include <usb/dev/hub.h> 47 47 #include <usb/hc.h> 48 #include <usb/driver.h>49 48 #include <usb/dev/pipes.h> 50 49 -
uspace/app/usbinfo/main.c
r96f2aa6 re8f826b 44 44 #include <devmap.h> 45 45 #include <usb/hc.h> 46 #include <usb/driver.h>47 46 #include <usb/dev/pipes.h> 48 #include <usb/driver.h>49 47 #include "usbinfo.h" 50 48 -
uspace/lib/usb/Makefile
r96f2aa6 re8f826b 37 37 src/ddfiface.c \ 38 38 src/debug.c \ 39 src/driver.c \40 39 src/dump.c \ 41 40 src/hc.c \ -
uspace/lib/usb/include/usb/hc.h
r96f2aa6 re8f826b 62 62 int usb_hc_get_address_by_handle(devman_handle_t); 63 63 64 int usb_hc_find(devman_handle_t, devman_handle_t *); 65 66 int usb_resolve_device_handle(const char *, devman_handle_t *, usb_address_t *, 67 devman_handle_t *); 68 64 69 int usb_ddf_get_hc_handle_by_class(size_t, devman_handle_t *); 65 70 -
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> -
uspace/lib/usbdev/src/pipes.c
r96f2aa6 re8f826b 36 36 #include <usb/dev/pipes.h> 37 37 #include <usb/debug.h> 38 #include <usb/ driver.h>38 #include <usb/hc.h> 39 39 #include <usbhc_iface.h> 40 40 #include <usb_iface.h>
Note:
See TracChangeset
for help on using the changeset viewer.