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