Changeset 1a02517 in mainline for uspace/drv/bus/usb/uhci/batch.c
- Timestamp:
- 2011-08-25T08:53:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32e093e
- Parents:
- 3afb758
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/batch.c
r3afb758 r1a02517 93 93 * @param[in] uhci_batch Instance to destroy. 94 94 */ 95 void uhci_transfer_batch_dispose(void *uhci_batch)95 static void uhci_transfer_batch_dispose(void *uhci_batch) 96 96 { 97 97 uhci_transfer_batch_t *instance = uhci_batch; … … 119 119 * Initializes parameters needed for the transfer and callback. 120 120 */ 121 void * uhci_transfer_batch_create(usb_transfer_batch_t *batch)121 int batch_init_private(usb_transfer_batch_t *batch) 122 122 { 123 123 #define CHECK_NULL_DISPOSE_RETURN(ptr, message...) \ … … 127 127 uhci_transfer_batch_dispose(uhci_data); \ 128 128 } \ 129 return NULL; \129 return ENOMEM; \ 130 130 } else (void)0 131 131 … … 164 164 /* Set generic data buffer pointer */ 165 165 batch->data_buffer = setup + batch->setup_size; 166 batch->private_data_dtor = uhci_transfer_batch_dispose; 166 167 batch->private_data = uhci_data; 167 168 usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT … … 171 172 batch_setup[batch->ep->transfer_type][batch->ep->direction](batch); 172 173 173 return uhci_data; 174 } 175 /*----------------------------------------------------------------------------*/ 174 return EOK; 175 } 176 176 /*----------------------------------------------------------------------------*/ 177 177 /** Check batch TDs for activity.
Note:
See TracChangeset
for help on using the changeset viewer.