Changeset 19a1800 in mainline for uspace/lib/drv/include/usb_iface.h
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (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/drv/include/usb_iface.h
r976f546 r19a1800 27 27 */ 28 28 29 /** @addtogroup libdrv usb 29 /** @addtogroup libdrv 30 * @addtogroup usb 30 31 * @{ 31 32 */ … … 37 38 #define LIBDRV_USB_IFACE_H_ 38 39 39 #include "d river.h"40 #include "ddf/driver.h" 40 41 #include <usb/usb.h> 41 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 54 /** Tell interface number given device can use. 55 * Parameters 56 * - devman handle id of the device 57 * Answer: 58 * - ENOTSUP - operation not supported (can also mean any interface) 59 * - EOK - operation okay, first parameter contains interface number 60 */ 61 IPC_M_USB_GET_INTERFACE, 62 42 63 /** Tell devman handle of device host controller. 43 64 * Parameters: … … 54 75 /** USB device communication interface. */ 55 76 typedef struct { 56 int (*get_hc_handle)(device_t *, devman_handle_t *); 77 int (*get_address)(ddf_fun_t *, devman_handle_t, usb_address_t *); 78 int (*get_interface)(ddf_fun_t *, devman_handle_t, int *); 79 int (*get_hc_handle)(ddf_fun_t *, devman_handle_t *); 57 80 } usb_iface_t; 58 81
Note:
See TracChangeset
for help on using the changeset viewer.