Changeset 1387692 in mainline for uspace/lib/usb/include/usb/host/batch.h
- Timestamp:
- 2011-03-21T15:01:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c92c13f
- Parents:
- e34e77a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/batch.h
re34e77a r1387692 40 40 #include <usb/usb.h> 41 41 42 typedef struct batch43 {42 typedef struct usb_transfer_batch usb_transfer_batch_t; 43 struct usb_transfer_batch { 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)( struct batch*);58 void (*next_step)(usb_transfer_batch_t *); 59 59 int error; 60 60 ddf_fun_t *fun; 61 61 void *arg; 62 62 void *private_data; 63 } batch_t;63 }; 64 64 65 void batch_init(66 batch_t *instance,65 void usb_transfer_batch_init( 66 usb_transfer_batch_t *instance, 67 67 usb_target_t target, 68 68 usb_transfer_type_t transfer_type, … … 81 81 ); 82 82 83 static inline batch_t *batch_from_link(link_t *link_ptr)83 static inline usb_transfer_batch_t *usb_transfer_batch_from_link(link_t *link_ptr) 84 84 { 85 85 assert(link_ptr); 86 return list_get_instance(link_ptr, batch_t, link);86 return list_get_instance(link_ptr, usb_transfer_batch_t, link); 87 87 } 88 88 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); 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 92 93 #endif 93 94 /**
Note:
See TracChangeset
for help on using the changeset viewer.