Changes in uspace/lib/usbdev/include/usb/dev/pipes.h [8d2dd7f2:bb655dab] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/pipes.h
r8d2dd7f2 rbb655dab 44 44 45 45 #define CTRL_PIPE_MIN_PACKET_SIZE 8 46 46 47 /** Abstraction of a logical connection to USB device endpoint. 47 * It encapsulates endpoint attributes (transfer type etc.).48 * It contains some vital information about the pipe. 48 49 * This endpoint must be bound with existing usb_device_connection_t 49 50 * (i.e. the wire to send data over). 50 51 */ 51 52 typedef struct { 52 /** Endpoint number. */ 53 usb_endpoint_t endpoint_no; 54 55 /** Endpoint transfer type. */ 56 usb_transfer_type_t transfer_type; 57 58 /** Endpoint direction. */ 59 usb_direction_t direction; 60 61 /** Maximum packet size for the endpoint. */ 62 size_t max_packet_size; 63 64 /** Number of packets per frame/uframe. 65 * Only valid for HS INT and ISO transfers. All others should set to 1*/ 66 unsigned packets; 53 /** Pipe description received from HC */ 54 usb_pipe_desc_t desc; 67 55 68 56 /** Whether to automatically reset halt on the endpoint. … … 70 58 */ 71 59 bool auto_reset_halt; 72 73 60 /** The connection used for sending the data. */ 74 61 usb_dev_session_t *bus_session; … … 103 90 /** Found descriptor fitting the description. */ 104 91 const usb_standard_endpoint_descriptor_t *descriptor; 92 /** Relevant superspeed companion descriptor. */ 93 const usb_superspeed_endpoint_companion_descriptor_t *companion_descriptor; 105 94 /** Interface descriptor the endpoint belongs to. */ 106 95 const usb_standard_interface_descriptor_t *interface; … … 109 98 } usb_endpoint_mapping_t; 110 99 111 int usb_pipe_initialize(usb_pipe_t *, usb_endpoint_t, usb_transfer_type_t, 112 size_t, usb_direction_t, unsigned, usb_dev_session_t *); 100 int usb_pipe_initialize(usb_pipe_t *, usb_dev_session_t *); 113 101 int usb_pipe_initialize_default_control(usb_pipe_t *, usb_dev_session_t *); 114 102 115 int usb_pipe_probe_default_control(usb_pipe_t *);116 103 int usb_pipe_initialize_from_configuration(usb_endpoint_mapping_t *, 117 104 size_t, const uint8_t *, size_t, usb_dev_session_t *); 118 105 119 int usb_pipe_register(usb_pipe_t *, unsigned);106 int usb_pipe_register(usb_pipe_t *, const usb_standard_endpoint_descriptor_t *, const usb_superspeed_endpoint_companion_descriptor_t *); 120 107 int usb_pipe_unregister(usb_pipe_t *); 121 108
Note:
See TracChangeset
for help on using the changeset viewer.