Changeset 7fc260ff in mainline for uspace/lib/usbdev/include/usb/dev/driver.h
- Timestamp:
- 2011-11-05T14:33:07Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab27e01
- Parents:
- 904dcc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
r904dcc6 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; … … 93 97 usb_device_descriptors_t descriptors; 94 98 95 /** Generic DDF device backing this one. RO: DO NOT TOUCH!*/99 /** Generic DDF device backing this one. DO NOT TOUCH! */ 96 100 ddf_dev_t *ddf_dev; 97 101 /** Custom driver data. … … 100 104 */ 101 105 void *driver_data; 102 103 /** Connection backing the pipes.104 * Typically, you will not need to use this attribute at all.105 */106 usb_device_connection_t wire;107 106 } usb_device_t; 108 107 … … 160 159 int usb_driver_main(const usb_driver_t *); 161 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 162 165 int usb_device_select_interface(usb_device_t *, uint8_t, 163 166 const usb_endpoint_description_t **); 164 167 165 168 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *); 169 void usb_device_release_descriptors(usb_device_descriptors_t *); 170 166 171 int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *, 167 172 const usb_endpoint_description_t **, const uint8_t *, size_t, int, int, 168 173 usb_endpoint_mapping_t **, size_t *); 169 174 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t); 170 int usb_device_init(usb_device_t *, ddf_dev_t *,171 const usb_endpoint_description_t **, const char **);172 void usb_device_deinit(usb_device_t *);173 175 174 176 void * usb_device_data_alloc(usb_device_t *, size_t);
Note:
See TracChangeset
for help on using the changeset viewer.