Changeset 945d66c in mainline for uspace/lib/usbdev/include/usb/dev/driver.h
- Timestamp:
- 2013-01-25T22:55:22Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e79a2f
- Parents:
- c39e9fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
rc39e9fb r945d66c 42 42 #include <usb_iface.h> 43 43 44 /** Descriptors for USB device. */45 typedef struct {46 /** Standard device descriptor. */47 usb_standard_device_descriptor_t device;48 /** Full configuration descriptor of current configuration. */49 const uint8_t *configuration;50 size_t configuration_size;51 } usb_device_descriptors_t;52 44 53 45 /** Wrapper for data related to alternate interface setting. … … 84 76 /** The default control pipe. */ 85 77 usb_pipe_t ctrl_pipe; 78 86 79 /** Other endpoint pipes. 87 80 * This is an array of other endpoint pipes in the same order as … … 100 93 usb_alternate_interfaces_t alternate_interfaces; 101 94 102 /** Some useful descriptors. */ 103 usb_device_descriptors_t descriptors; 95 /** Some useful descriptors for USB device. */ 96 struct { 97 /** Standard device descriptor. */ 98 usb_standard_device_descriptor_t device; 99 /** Full configuration descriptor of current configuration. */ 100 const uint8_t *configuration; 101 size_t configuration_size; 102 } descriptors; 104 103 105 104 /** Generic DDF device backing this one. DO NOT TOUCH! */ … … 179 178 const usb_endpoint_description_t **); 180 179 181 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *);182 void usb_device_release_descriptors(usb_device_descriptors_t *);183 184 180 int usb_device_create_pipes(usb_device_connection_t *, 185 181 const usb_endpoint_description_t **, const uint8_t *, size_t, int, int, … … 188 184 usb_pipe_t *usb_device_get_default_pipe(usb_device_t *); 189 185 usb_pipe_t *usb_device_get_pipe(usb_device_t *, usb_endpoint_t, usb_direction_t); 186 187 const usb_standard_device_descriptor_t * 188 usb_device_get_device_descriptor(usb_device_t *); 189 const void * usb_device_get_configuration_descriptor(usb_device_t *, size_t *); 190 190 191 191 192 void * usb_device_data_alloc(usb_device_t *, size_t);
Note:
See TracChangeset
for help on using the changeset viewer.