Changes in uspace/drv/ohci/batch.c [d328172:1387692] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/batch.c
rd328172 r1387692 41 41 #include "utils/malloc32.h" 42 42 43 static void batch_call_in_and_dispose( batch_t *instance);44 static void batch_call_out_and_dispose( batch_t *instance);43 static void batch_call_in_and_dispose(usb_transfer_batch_t *instance); 44 static void batch_call_out_and_dispose(usb_transfer_batch_t *instance); 45 45 46 46 #define DEFAULT_ERROR_COUNT 3 47 batch_t * batch_get(47 usb_transfer_batch_t * batch_get( 48 48 ddf_fun_t *fun, 49 49 usb_target_t target, … … 58 58 usbhc_iface_transfer_out_callback_t func_out, 59 59 void *arg, 60 device_keeper_t *manager60 usb_device_keeper_t *manager 61 61 ) 62 62 { … … 70 70 } else (void)0 71 71 72 batch_t *instance = malloc(sizeof(batch_t));72 usb_transfer_batch_t *instance = malloc(sizeof(usb_transfer_batch_t)); 73 73 CHECK_NULL_DISPOSE_RETURN(instance, 74 74 "Failed to allocate batch instance.\n"); 75 batch_init(instance, target, transfer_type, speed, max_packet_size,75 usb_transfer_batch_init(instance, target, transfer_type, speed, max_packet_size, 76 76 buffer, NULL, buffer_size, NULL, setup_size, func_in, 77 77 func_out, arg, fun, NULL); … … 94 94 } 95 95 /*----------------------------------------------------------------------------*/ 96 void batch_dispose( batch_t *instance)96 void batch_dispose(usb_transfer_batch_t *instance) 97 97 { 98 98 assert(instance); … … 102 102 } 103 103 /*----------------------------------------------------------------------------*/ 104 void batch_control_write( batch_t *instance)104 void batch_control_write(usb_transfer_batch_t *instance) 105 105 { 106 106 assert(instance); … … 113 113 } 114 114 /*----------------------------------------------------------------------------*/ 115 void batch_control_read( batch_t *instance)115 void batch_control_read(usb_transfer_batch_t *instance) 116 116 { 117 117 assert(instance); … … 121 121 } 122 122 /*----------------------------------------------------------------------------*/ 123 void batch_interrupt_in( batch_t *instance)123 void batch_interrupt_in(usb_transfer_batch_t *instance) 124 124 { 125 125 assert(instance); … … 130 130 } 131 131 /*----------------------------------------------------------------------------*/ 132 void batch_interrupt_out( batch_t *instance)132 void batch_interrupt_out(usb_transfer_batch_t *instance) 133 133 { 134 134 assert(instance); … … 142 142 } 143 143 /*----------------------------------------------------------------------------*/ 144 void batch_bulk_in( batch_t *instance)144 void batch_bulk_in(usb_transfer_batch_t *instance) 145 145 { 146 146 assert(instance); … … 151 151 } 152 152 /*----------------------------------------------------------------------------*/ 153 void batch_bulk_out( batch_t *instance)153 void batch_bulk_out(usb_transfer_batch_t *instance) 154 154 { 155 155 assert(instance); … … 164 164 * @param[in] instance Batch structure to use. 165 165 */ 166 void batch_call_in_and_dispose( batch_t *instance)166 void batch_call_in_and_dispose(usb_transfer_batch_t *instance) 167 167 { 168 168 assert(instance); 169 batch_call_in(instance);169 usb_transfer_batch_call_in(instance); 170 170 batch_dispose(instance); 171 171 } … … 175 175 * @param[in] instance Batch structure to use. 176 176 */ 177 void batch_call_out_and_dispose( batch_t *instance)177 void batch_call_out_and_dispose(usb_transfer_batch_t *instance) 178 178 { 179 179 assert(instance); 180 batch_call_out(instance);180 usb_transfer_batch_call_out(instance); 181 181 batch_dispose(instance); 182 182 }
Note:
See TracChangeset
for help on using the changeset viewer.