Changes in uspace/lib/usbdev/include/usb/dev/pipes.h [c01987c:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/pipes.h
rc01987c r9d58539 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> 37 41 #include <usb/usb.h> 38 42 #include <usb/descriptor.h> 39 #include <usb_iface.h> 40 41 #include <stdbool.h> 42 #include <sys/types.h> 43 #include <usb/dev/usb_device_connection.h> 43 44 44 45 #define CTRL_PIPE_MIN_PACKET_SIZE 8 … … 49 50 */ 50 51 typedef struct { 52 /** The connection used for sending the data. */ 53 usb_device_connection_t *wire; 54 51 55 /** Endpoint number. */ 52 56 usb_endpoint_t endpoint_no; … … 65 69 */ 66 70 bool auto_reset_halt; 67 68 /** The connection used for sending the data. */69 usb_dev_session_t *bus_session;70 71 } usb_pipe_t; 71 72 … … 104 105 } usb_endpoint_mapping_t; 105 106 106 int usb_pipe_initialize(usb_pipe_t *, usb_endpoint_t, usb_transfer_type_t, 107 size_t, usb_direction_t, usb_dev_session_t *); 108 int usb_pipe_initialize_default_control(usb_pipe_t *, usb_dev_session_t *); 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 *); 109 111 110 112 int usb_pipe_probe_default_control(usb_pipe_t *); 111 113 int usb_pipe_initialize_from_configuration(usb_endpoint_mapping_t *, 112 size_t, const uint8_t *, size_t, usb_dev _session_t *);114 size_t, const uint8_t *, size_t, usb_device_connection_t *); 113 115 114 116 int usb_pipe_register(usb_pipe_t *, unsigned); 115 117 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 *); 116 121 117 122 int usb_pipe_read(usb_pipe_t *, void *, size_t, size_t *);
Note:
See TracChangeset
for help on using the changeset viewer.