Changeset 2cc6e97 in mainline for uspace/lib/usb/include/usb/host/batch.h
- Timestamp:
- 2011-04-12T14:07:02Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d932af6
- Parents:
- 910ca3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/batch.h
r910ca3f r2cc6e97 58 58 ddf_fun_t *fun; 59 59 void *private_data; 60 void (*private_data_dtor)(void *p_data); 60 61 }; 61 62 62 63 void usb_transfer_batch_init( 63 64 usb_transfer_batch_t *instance, 64 65 endpoint_t *ep, 65 66 char *buffer, 66 67 char *data_buffer, … … 72 73 void *arg, 73 74 ddf_fun_t *fun, 74 void *private_data 75 void *private_data, 76 void (*private_data_dtor)(void *p_data) 75 77 ); 76 78 77 static inline usb_transfer_batch_t *usb_transfer_batch_from_link(link_t *l) 78 { 79 assert(l); 80 return list_get_instance(l, usb_transfer_batch_t, link); 81 } 82 83 void usb_transfer_batch_call_in(usb_transfer_batch_t *instance); 84 void usb_transfer_batch_call_out(usb_transfer_batch_t *instance); 79 void usb_transfer_batch_call_in_and_dispose(usb_transfer_batch_t *instance); 80 void usb_transfer_batch_call_out_and_dispose(usb_transfer_batch_t *instance); 85 81 void usb_transfer_batch_finish(usb_transfer_batch_t *instance); 82 void usb_transfer_batch_dispose(usb_transfer_batch_t *instance); 86 83 87 84 static inline void usb_transfer_batch_finish_error( … … 93 90 } 94 91 92 static inline usb_transfer_batch_t *usb_transfer_batch_from_link(link_t *l) 93 { 94 assert(l); 95 return list_get_instance(l, usb_transfer_batch_t, link); 96 } 97 95 98 #endif 96 99 /**
Note:
See TracChangeset
for help on using the changeset viewer.