Changeset d083126 in mainline for uspace/lib/usbdev/include
- Timestamp:
- 2011-10-13T13:20:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3a5506a
- Parents:
- cff3fb6 (diff), 22a2b763 (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. - Location:
- uspace/lib/usbdev/include/usb/dev
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/driver.h
rcff3fb6 rd083126 96 96 usb_device_descriptors_t descriptors; 97 97 98 /** Generic DDF device backing this one. */98 /** Generic DDF device backing this one. RO: DO NOT TOUCH!*/ 99 99 ddf_dev_t *ddf_dev; 100 100 /** Custom driver data. … … 112 112 /** USB driver ops. */ 113 113 typedef struct { 114 /** Callback when new device is about to be controlled by the driver. */ 115 int (*add_device)(usb_device_t *); 114 /** Callback when a new device was added to the system. */ 115 int (*device_add)(usb_device_t *); 116 /** Callback when a device is about to be removed from the system. */ 117 int (*device_rem)(usb_device_t *); 118 /** Callback when a device was removed from the system. */ 119 int (*device_gone)(usb_device_t *); 116 120 } usb_driver_ops_t; 117 121 … … 163 167 164 168 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *); 165 int usb_device_create_pipes( ddf_dev_t *, usb_device_connection_t *,169 int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *, 166 170 usb_endpoint_description_t **, uint8_t *, size_t, int, int, 167 171 usb_endpoint_mapping_t **, size_t *); 168 int usb_device_destroy_pipes( ddf_dev_t *, usb_endpoint_mapping_t *, size_t);172 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t); 169 173 int usb_device_create(ddf_dev_t *, usb_endpoint_description_t **, usb_device_t **, const char **); 170 174 void usb_device_destroy(usb_device_t *); -
uspace/lib/usbdev/include/usb/dev/hub.h
rcff3fb6 rd083126 38 38 #define LIBUSBDEV_HUB_H_ 39 39 40 #include <ddf/driver.h> 40 41 #include <sys/types.h> 41 42 #include <usb/hc.h> 42 43 43 44 int usb_hc_new_device_wrapper(ddf_dev_t *, usb_hc_connection_t *, usb_speed_t, 44 int (*)(int, void *), int, void *, 45 usb_address_t *, devman_handle_t *, 46 ddf_dev_ops_t *, void *, ddf_fun_t **); 45 int (*)(void *), void *, usb_address_t *, ddf_dev_ops_t *, void *, 46 ddf_fun_t **); 47 47 48 48 /** Info about device attached to host controller. … … 55 55 /** Device address. */ 56 56 usb_address_t address; 57 /** D evman handleof the device. */58 d evman_handle_t handle;59 } usb_h c_attached_device_t;57 /** DDF function (external) of the device. */ 58 ddf_fun_t *fun; 59 } usb_hub_attached_device_t; 60 60 61 61 usb_address_t usb_hc_request_address(usb_hc_connection_t *, usb_speed_t); 62 62 int usb_hc_register_device(usb_hc_connection_t *, 63 const usb_h c_attached_device_t *);63 const usb_hub_attached_device_t *); 64 64 int usb_hc_unregister_device(usb_hc_connection_t *, usb_address_t); 65 65 -
uspace/lib/usbdev/include/usb/dev/pipes.h
rcff3fb6 rd083126 159 159 usb_device_connection_t *, usb_hc_connection_t *); 160 160 int usb_device_connection_initialize_from_device(usb_device_connection_t *, 161 ddf_dev_t *);161 const ddf_dev_t *); 162 162 int usb_device_connection_initialize(usb_device_connection_t *, 163 163 devman_handle_t, usb_address_t); 164 164 165 int usb_device_get_assigned_interface( ddf_dev_t *);165 int usb_device_get_assigned_interface(const ddf_dev_t *); 166 166 167 167 int usb_pipe_initialize(usb_pipe_t *, usb_device_connection_t *, … … 185 185 int usb_pipe_control_read(usb_pipe_t *, const void *, size_t, 186 186 void *, size_t, size_t *); 187 int usb_pipe_control_write(usb_pipe_t *, void *, size_t,188 void *, size_t);187 int usb_pipe_control_write(usb_pipe_t *, const void *, size_t, 188 const void *, size_t); 189 189 190 190 #endif -
uspace/lib/usbdev/include/usb/dev/recognise.h
rcff3fb6 rd083126 51 51 52 52 int usb_device_register_child_in_devman(usb_address_t, devman_handle_t, 53 ddf_dev_t *, d evman_handle_t *, ddf_dev_ops_t *, void *, ddf_fun_t **);53 ddf_dev_t *, ddf_dev_ops_t *, void *, ddf_fun_t **); 54 54 55 55 #endif
Note:
See TracChangeset
for help on using the changeset viewer.