Changes in uspace/drv/ohci/batch.h [81dce9f:41b96b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/batch.h
r81dce9f r41b96b4 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusb ohci28 /** @addtogroup drvusbuhcihc 29 29 * @{ 30 30 */ 31 31 /** @file 32 * @brief OHCI driver USB transaction structure32 * @brief UHCI driver USB transaction structure 33 33 */ 34 #ifndef DRV_ OHCI_BATCH_H35 #define DRV_ OHCI_BATCH_H34 #ifndef DRV_UHCI_BATCH_H 35 #define DRV_UHCI_BATCH_H 36 36 37 #include <adt/list.h> 37 38 38 39 #include <usbhc_iface.h> 39 40 #include <usb/usb.h> 40 #include <usb/host/device_keeper.h> 41 #include <usb/host/batch.h> 41 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; 42 63 43 64 batch_t * batch_get( … … 53 74 usbhc_iface_transfer_in_callback_t func_in, 54 75 usbhc_iface_transfer_out_callback_t func_out, 55 void *arg, 56 device_keeper_t *manager 76 void *arg 57 77 ); 58 78 59 79 void batch_dispose(batch_t *instance); 80 81 void batch_finish(batch_t *instance, int error); 82 83 bool batch_is_complete(batch_t *instance); 60 84 61 85 void batch_control_write(batch_t *instance);
Note:
See TracChangeset
for help on using the changeset viewer.