Changes in uspace/lib/usbdev/include/usb/dev/driver.h [882580a:7fc260ff] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
r882580a r7fc260ff 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; 74 78 /** The default control pipe. */ 75 79 usb_pipe_t ctrl_pipe; … … 87 91 int interface_no; 88 92 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; 93 /** Alternative interfaces. */ 94 usb_alternate_interfaces_t alternate_interfaces; 94 95 95 96 /** Some useful descriptors. */ 96 97 usb_device_descriptors_t descriptors; 97 98 98 /** Generic DDF device backing this one. RO: DO NOT TOUCH!*/99 /** Generic DDF device backing this one. DO NOT TOUCH! */ 99 100 ddf_dev_t *ddf_dev; 100 101 /** Custom driver data. … … 103 104 */ 104 105 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;110 106 } usb_device_t; 111 107 … … 163 159 int usb_driver_main(const usb_driver_t *); 164 160 161 int usb_device_init(usb_device_t *, ddf_dev_t *, 162 const usb_endpoint_description_t **, const char **); 163 void usb_device_deinit(usb_device_t *); 164 165 165 int usb_device_select_interface(usb_device_t *, uint8_t, 166 166 const usb_endpoint_description_t **); 167 167 168 168 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *); 169 void usb_device_release_descriptors(usb_device_descriptors_t *); 170 169 171 int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *, 170 172 const usb_endpoint_description_t **, const uint8_t *, size_t, int, int, 171 173 usb_endpoint_mapping_t **, size_t *); 172 174 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t); 173 int usb_device_init(usb_device_t *, ddf_dev_t *,174 const usb_endpoint_description_t **, const char **);175 void usb_device_deinit(usb_device_t *);176 175 177 176 void * usb_device_data_alloc(usb_device_t *, size_t); 178 177 179 178 size_t usb_interface_count_alternates(const uint8_t *, size_t, uint8_t); 180 int usb_alternate_interfaces_ create(const uint8_t *, size_t, int,181 usb_alternate_interfaces_t **);182 void usb_alternate_interfaces_de stroy(usb_alternate_interfaces_t *);179 int usb_alternate_interfaces_init(usb_alternate_interfaces_t *, 180 const uint8_t *, size_t, int); 181 void usb_alternate_interfaces_deinit(usb_alternate_interfaces_t *); 183 182 #endif 184 183 /**
Note:
See TracChangeset
for help on using the changeset viewer.