Changes in uspace/drv/uhci-hcd/batch.h [5620bd4:81dce9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.h
r5620bd4 r81dce9f 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup usb28 /** @addtogroup drvusbuhcihc 29 29 * @{ 30 30 */ 31 31 /** @file 32 * @brief UHCI driver 32 * @brief UHCI driver USB transaction structure 33 33 */ 34 34 #ifndef DRV_UHCI_BATCH_H … … 39 39 #include <usbhc_iface.h> 40 40 #include <usb/usb.h> 41 #include <usb/host/device_keeper.h> 42 #include <usb/host/batch.h> 41 43 42 #include "uhci_struct/transfer_descriptor.h"43 44 #include "uhci_struct/queue_head.h" 44 #include "utils/device_keeper.h"45 45 46 typedef struct batch 47 { 48 link_t link; 49 usb_speed_t speed; 50 usb_target_t target; 51 usb_transfer_type_t transfer_type; 52 union { 53 usbhc_iface_transfer_in_callback_t callback_in; 54 usbhc_iface_transfer_out_callback_t callback_out; 55 }; 56 void *arg; 57 char *transport_buffer; 58 char *setup_buffer; 59 size_t setup_size; 60 char *buffer; 61 size_t buffer_size; 62 size_t max_packet_size; 63 size_t packets; 64 size_t transfered_size; 65 int error; 66 ddf_fun_t *fun; 67 queue_head_t *qh; 68 td_t *tds; 69 void (*next_step)(struct batch*); 70 device_keeper_t *manager; 71 } batch_t; 72 73 batch_t * batch_get(ddf_fun_t *fun, usb_target_t target, 74 usb_transfer_type_t transfer_type, size_t max_packet_size, 75 usb_speed_t speed, char *buffer, size_t size, 76 char *setup_buffer, size_t setup_size, 46 batch_t * batch_get( 47 ddf_fun_t *fun, 48 usb_target_t target, 49 usb_transfer_type_t transfer_type, 50 size_t max_packet_size, 51 usb_speed_t speed, 52 char *buffer, 53 size_t size, 54 char *setup_buffer, 55 size_t setup_size, 77 56 usbhc_iface_transfer_in_callback_t func_in, 78 usbhc_iface_transfer_out_callback_t func_out, void *arg, 57 usbhc_iface_transfer_out_callback_t func_out, 58 void *arg, 79 59 device_keeper_t *manager 80 60 ); 61 62 void batch_dispose(batch_t *instance); 81 63 82 64 bool batch_is_complete(batch_t *instance); … … 93 75 94 76 void batch_bulk_out(batch_t *instance); 77 78 qh_t * batch_qh(batch_t *instance); 95 79 #endif 96 80 /**
Note:
See TracChangeset
for help on using the changeset viewer.