Changeset 357a302 in mainline for uspace/lib/drv/include
- Timestamp:
- 2011-02-20T14:17:40Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b68b279
- Parents:
- 3ae93a8
- Location:
- uspace/lib/drv/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usb_iface.h
r3ae93a8 r357a302 41 41 #include <usb/usb.h> 42 42 typedef enum { 43 /** Tell USB address assigned to device. 44 * Parameters: 45 * - devman handle id 46 * Answer: 47 * - EINVAL - unknown handle or handle not managed by this driver 48 * - ENOTSUP - operation not supported (shall not happen) 49 * - arbitrary error code if returned by remote implementation 50 * - EOK - handle found, first parameter contains the USB address 51 */ 52 IPC_M_USB_GET_ADDRESS, 53 43 54 /** Tell devman handle of device host controller. 44 55 * Parameters: … … 55 66 /** USB device communication interface. */ 56 67 typedef struct { 68 int (*get_address)(device_t *, devman_handle_t, usb_address_t *); 57 69 int (*get_hc_handle)(device_t *, devman_handle_t *); 58 70 } usb_iface_t; -
uspace/lib/drv/include/usbhc_iface.h
r3ae93a8 r357a302 85 85 */ 86 86 typedef enum { 87 /** Tell USB address assigned to device.88 * Parameters:89 * - devman handle id90 * Answer:91 * - EINVAL - unknown handle or handle not managed by this driver92 * - ENOTSUP - operation not supported by HC (shall not happen)93 * - arbitrary error code if returned by remote implementation94 * - EOK - handle found, first parameter contains the USB address95 */96 IPC_M_USBHC_GET_ADDRESS,97 98 99 87 /** Reserve usage of default address. 100 88 * This call informs the host controller that the caller will be … … 206 194 /** USB host controller communication interface. */ 207 195 typedef struct { 208 int (*tell_address)(device_t *, devman_handle_t, usb_address_t *);209 210 196 int (*reserve_default_address)(device_t *, usb_speed_t); 211 197 int (*release_default_address)(device_t *);
Note:
See TracChangeset
for help on using the changeset viewer.