Changeset 361e61b in mainline for uspace/drv/uhci-hcd/batch.h
- Timestamp:
- 2011-03-21T14:23:15Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55e388a1
- Parents:
- c32688d (diff), 48fe0c9 (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
rc32688d r361e61b 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.