Changes in uspace/lib/usbdev/include/usb/dev/driver.h [7fc260ff:882580a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
r7fc260ff r882580a 72 72 /** USB device structure. */ 73 73 typedef struct { 74 /** Connection backing the pipes.75 * Typically, you will not need to use this attribute at all.76 */77 usb_device_connection_t wire;78 74 /** The default control pipe. */ 79 75 usb_pipe_t ctrl_pipe; … … 91 87 int interface_no; 92 88 93 /** Alternative interfaces. */ 94 usb_alternate_interfaces_t alternate_interfaces; 89 /** Alternative interfaces. 90 * Set to NULL when the driver controls whole device 91 * (i.e. more (or any) interfaces). 92 */ 93 usb_alternate_interfaces_t *alternate_interfaces; 95 94 96 95 /** Some useful descriptors. */ 97 96 usb_device_descriptors_t descriptors; 98 97 99 /** Generic DDF device backing this one. DO NOT TOUCH!*/98 /** Generic DDF device backing this one. RO: DO NOT TOUCH!*/ 100 99 ddf_dev_t *ddf_dev; 101 100 /** Custom driver data. … … 104 103 */ 105 104 void *driver_data; 105 106 /** Connection backing the pipes. 107 * Typically, you will not need to use this attribute at all. 108 */ 109 usb_device_connection_t wire; 106 110 } usb_device_t; 107 111 … … 159 163 int usb_driver_main(const usb_driver_t *); 160 164 165 int usb_device_select_interface(usb_device_t *, uint8_t, 166 const usb_endpoint_description_t **); 167 168 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *); 169 int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *, 170 const usb_endpoint_description_t **, const uint8_t *, size_t, int, int, 171 usb_endpoint_mapping_t **, size_t *); 172 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t); 161 173 int usb_device_init(usb_device_t *, ddf_dev_t *, 162 174 const usb_endpoint_description_t **, const char **); 163 175 void usb_device_deinit(usb_device_t *); 164 176 165 int usb_device_select_interface(usb_device_t *, uint8_t,166 const usb_endpoint_description_t **);167 168 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *);169 void usb_device_release_descriptors(usb_device_descriptors_t *);170 171 int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *,172 const usb_endpoint_description_t **, const uint8_t *, size_t, int, int,173 usb_endpoint_mapping_t **, size_t *);174 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t);175 176 177 void * usb_device_data_alloc(usb_device_t *, size_t); 177 178 178 179 size_t usb_interface_count_alternates(const uint8_t *, size_t, uint8_t); 179 int usb_alternate_interfaces_ init(usb_alternate_interfaces_t *,180 const uint8_t *, size_t, int);181 void usb_alternate_interfaces_de init(usb_alternate_interfaces_t *);180 int usb_alternate_interfaces_create(const uint8_t *, size_t, int, 181 usb_alternate_interfaces_t **); 182 void usb_alternate_interfaces_destroy(usb_alternate_interfaces_t *); 182 183 #endif 183 184 /**
Note:
See TracChangeset
for help on using the changeset viewer.