Changes in uspace/lib/usb/include/usb/host/batch.h [c92c13f:c15070c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/batch.h
rc92c13f rc15070c 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup libusb28 /** @addtogroup drvusbuhcihc 29 29 * @{ 30 30 */ 31 31 /** @file 32 * USB transfer transaction structures.32 * @brief UHCI driver USB transaction structure 33 33 */ 34 34 #ifndef LIBUSB_HOST_BATCH_H … … 40 40 #include <usb/usb.h> 41 41 42 typedef struct usb_transfer_batch usb_transfer_batch_t;43 struct usb_transfer_batch{42 typedef struct batch 43 { 44 44 link_t link; 45 45 usb_target_t target; … … 56 56 size_t max_packet_size; 57 57 size_t transfered_size; 58 void (*next_step)( usb_transfer_batch_t*);58 void (*next_step)(struct batch*); 59 59 int error; 60 60 ddf_fun_t *fun; 61 61 void *arg; 62 62 void *private_data; 63 } ;63 } batch_t; 64 64 65 void usb_transfer_batch_init(66 usb_transfer_batch_t *instance,65 void batch_init( 66 batch_t *instance, 67 67 usb_target_t target, 68 68 usb_transfer_type_t transfer_type, … … 81 81 ); 82 82 83 static inline usb_transfer_batch_t *usb_transfer_batch_from_link(link_t *l)83 static inline batch_t *batch_from_link(link_t *link_ptr) 84 84 { 85 assert(l );86 return list_get_instance(l , usb_transfer_batch_t, link);85 assert(link_ptr); 86 return list_get_instance(link_ptr, batch_t, link); 87 87 } 88 88 89 void usb_transfer_batch_call_in(usb_transfer_batch_t *instance); 90 void usb_transfer_batch_call_out(usb_transfer_batch_t *instance); 91 void usb_transfer_batch_finish(usb_transfer_batch_t *instance, int error); 92 89 void batch_call_in(batch_t *instance); 90 void batch_call_out(batch_t *instance); 91 void batch_finish(batch_t *instance, int error); 93 92 #endif 94 93 /**
Note:
See TracChangeset
for help on using the changeset viewer.