Changes in uspace/drv/ohci/batch.h [41b96b4:1387692] in mainline
- File:
-
- 1 edited
-
uspace/drv/ohci/batch.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/batch.h
r41b96b4 r1387692 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusb uhcihc28 /** @addtogroup drvusbohci 29 29 * @{ 30 30 */ 31 31 /** @file 32 * @brief UHCI driver USB transaction structure32 * @brief OHCI driver USB transaction structure 33 33 */ 34 #ifndef DRV_ UHCI_BATCH_H35 #define DRV_ UHCI_BATCH_H34 #ifndef DRV_OHCI_BATCH_H 35 #define DRV_OHCI_BATCH_H 36 36 37 #include <adt/list.h>38 37 39 38 #include <usbhc_iface.h> 40 39 #include <usb/usb.h> 40 #include <usb/host/device_keeper.h> 41 #include <usb/host/batch.h> 41 42 42 typedef struct batch 43 { 44 link_t link; 45 usb_speed_t speed; 46 usb_target_t target; 47 usb_transfer_type_t transfer_type; 48 usbhc_iface_transfer_in_callback_t callback_in; 49 usbhc_iface_transfer_out_callback_t callback_out; 50 void *arg; 51 char *transport_buffer; 52 char *setup_buffer; 53 size_t setup_size; 54 char *buffer; 55 size_t buffer_size; 56 size_t max_packet_size; 57 size_t packets; 58 size_t transfered_size; 59 int error; 60 ddf_fun_t *fun; 61 void (*next_step)(struct batch*); 62 } batch_t; 63 64 batch_t * batch_get( 43 usb_transfer_batch_t * batch_get( 65 44 ddf_fun_t *fun, 66 45 usb_target_t target, … … 74 53 usbhc_iface_transfer_in_callback_t func_in, 75 54 usbhc_iface_transfer_out_callback_t func_out, 76 void *arg 55 void *arg, 56 usb_device_keeper_t *manager 77 57 ); 78 58 79 void batch_dispose( batch_t *instance);59 void batch_dispose(usb_transfer_batch_t *instance); 80 60 81 void batch_ finish(batch_t *instance, int error);61 void batch_control_write(usb_transfer_batch_t *instance); 82 62 83 bool batch_is_complete(batch_t *instance);63 void batch_control_read(usb_transfer_batch_t *instance); 84 64 85 void batch_ control_write(batch_t *instance);65 void batch_interrupt_in(usb_transfer_batch_t *instance); 86 66 87 void batch_ control_read(batch_t *instance);67 void batch_interrupt_out(usb_transfer_batch_t *instance); 88 68 89 void batch_ interrupt_in(batch_t *instance);69 void batch_bulk_in(usb_transfer_batch_t *instance); 90 70 91 void batch_interrupt_out(batch_t *instance); 92 93 void batch_bulk_in(batch_t *instance); 94 95 void batch_bulk_out(batch_t *instance); 71 void batch_bulk_out(usb_transfer_batch_t *instance); 96 72 #endif 97 73 /**
Note:
See TracChangeset
for help on using the changeset viewer.
