Changes in uspace/lib/usbdev/include/usb/dev/pipes.h [9d58539:4e732f1a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/pipes.h
r9d58539 r4e732f1a 35 35 #define LIBUSBDEV_PIPES_H_ 36 36 37 #include <sys/types.h>38 #include <ipc/devman.h>39 #include <ddf/driver.h>40 #include <fibril_synch.h>41 37 #include <usb/usb.h> 42 38 #include <usb/descriptor.h> 43 #include <usb/dev/usb_device_connection.h> 39 #include <usb_iface.h> 40 41 #include <stdbool.h> 42 #include <sys/types.h> 44 43 45 44 #define CTRL_PIPE_MIN_PACKET_SIZE 8 … … 50 49 */ 51 50 typedef struct { 52 /** The connection used for sending the data. */53 usb_device_connection_t *wire;54 55 51 /** Endpoint number. */ 56 52 usb_endpoint_t endpoint_no; … … 65 61 size_t max_packet_size; 66 62 63 /** Number of packets per frame/uframe. 64 * Only valid for HS INT and ISO transfers. All others should set to 1*/ 65 unsigned packets; 66 67 67 /** Whether to automatically reset halt on the endpoint. 68 68 * Valid only for control endpoint zero. 69 69 */ 70 70 bool auto_reset_halt; 71 72 /** The connection used for sending the data. */ 73 usb_dev_session_t *bus_session; 71 74 } usb_pipe_t; 72 75 … … 105 108 } usb_endpoint_mapping_t; 106 109 107 int usb_pipe_initialize(usb_pipe_t *, usb_device_connection_t *, 108 usb_endpoint_t, usb_transfer_type_t, size_t, usb_direction_t); 109 int usb_pipe_initialize_default_control(usb_pipe_t *, 110 usb_device_connection_t *); 110 int usb_pipe_initialize(usb_pipe_t *, usb_endpoint_t, usb_transfer_type_t, 111 size_t, usb_direction_t, unsigned, usb_dev_session_t *); 112 int usb_pipe_initialize_default_control(usb_pipe_t *, usb_dev_session_t *); 111 113 112 114 int usb_pipe_probe_default_control(usb_pipe_t *); 113 115 int usb_pipe_initialize_from_configuration(usb_endpoint_mapping_t *, 114 size_t, const uint8_t *, size_t, usb_dev ice_connection_t *);116 size_t, const uint8_t *, size_t, usb_dev_session_t *); 115 117 116 118 int usb_pipe_register(usb_pipe_t *, unsigned); 117 119 int usb_pipe_unregister(usb_pipe_t *); 118 119 int usb_pipe_start_long_transfer(usb_pipe_t *);120 int usb_pipe_end_long_transfer(usb_pipe_t *);121 120 122 121 int usb_pipe_read(usb_pipe_t *, void *, size_t, size_t *);
Note:
See TracChangeset
for help on using the changeset viewer.