Changeset 41ef5b9 in mainline for uspace/drv/uhci-hcd/batch.h
- Timestamp:
- 2011-03-21T17:16:10Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d0c40b
- Parents:
- fd9f6e4c (diff), 434ef65 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.h
rfd9f6e4c r41ef5b9 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 usbhc_iface_transfer_in_callback_t callback_in; 53 usbhc_iface_transfer_out_callback_t callback_out; 54 void *arg; 55 char *transport_buffer; 56 char *setup_buffer; 57 size_t setup_size; 58 char *buffer; 59 size_t buffer_size; 60 size_t max_packet_size; 61 size_t packets; 62 size_t transfered_size; 63 int error; 64 ddf_fun_t *fun; 65 qh_t *qh; 66 td_t *tds; 67 void (*next_step)(struct batch*); 68 device_keeper_t *manager; 69 } batch_t; 70 71 batch_t * batch_get( 46 usb_transfer_batch_t * batch_get( 72 47 ddf_fun_t *fun, 73 48 usb_target_t target, … … 82 57 usbhc_iface_transfer_out_callback_t func_out, 83 58 void *arg, 84 device_keeper_t *manager59 usb_device_keeper_t *manager 85 60 ); 86 61 87 void batch_dispose( batch_t *instance);62 void batch_dispose(usb_transfer_batch_t *instance); 88 63 89 void batch_abort(batch_t *instance);64 bool batch_is_complete(usb_transfer_batch_t *instance); 90 65 91 bool batch_is_complete(batch_t *instance);66 void batch_control_write(usb_transfer_batch_t *instance); 92 67 93 void batch_control_ write(batch_t *instance);68 void batch_control_read(usb_transfer_batch_t *instance); 94 69 95 void batch_ control_read(batch_t *instance);70 void batch_interrupt_in(usb_transfer_batch_t *instance); 96 71 97 void batch_interrupt_ in(batch_t *instance);72 void batch_interrupt_out(usb_transfer_batch_t *instance); 98 73 99 void batch_ interrupt_out(batch_t *instance);74 void batch_bulk_in(usb_transfer_batch_t *instance); 100 75 101 void batch_bulk_ in(batch_t *instance);76 void batch_bulk_out(usb_transfer_batch_t *instance); 102 77 103 void batch_bulk_out(batch_t *instance);78 qh_t * batch_qh(usb_transfer_batch_t *instance); 104 79 #endif 105 80 /**
Note:
See TracChangeset
for help on using the changeset viewer.