Changeset f7ac3f3 in mainline for uspace/drv/bus/usb/uhci/uhci_batch.c
- Timestamp:
- 2011-12-06T12:46:52Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6fa04db
- Parents:
- ad91b806
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci_batch.c
rad91b806 rf7ac3f3 46 46 #define DEFAULT_ERROR_COUNT 3 47 47 48 /** Safely destructs uhci_transfer_batch_t structure. 49 * 50 * @param[in] uhci_batch Instance to destroy. 51 */ 48 52 static void uhci_transfer_batch_dispose(uhci_transfer_batch_t *uhci_batch) 49 53 { … … 55 59 } 56 60 /*----------------------------------------------------------------------------*/ 57 /** Safely destructs uhci_transfer_batch_t structure58 * 59 * @param[in] uhci_batch Instance to destroy.61 /** Finishes usb_transfer_batch and destroys the structure. 62 * 63 * @param[in] uhci_batch Instance to finish and destroy. 60 64 */ 61 65 void uhci_transfer_batch_finish_dispose(uhci_transfer_batch_t *uhci_batch) … … 68 72 } 69 73 /*----------------------------------------------------------------------------*/ 74 /** Transfer batch setup table. */ 70 75 static void (*const batch_setup[])(uhci_transfer_batch_t*, usb_direction_t); 71 76 /*----------------------------------------------------------------------------*/ 72 77 /** Allocate memory and initialize internal data structure. 73 78 * 74 * @param[in] fun DDF function to pass to callback. 75 * @param[in] ep Communication target 76 * @param[in] buffer Data source/destination. 77 * @param[in] buffer_size Size of the buffer. 78 * @param[in] setup_buffer Setup data source (if not NULL) 79 * @param[in] setup_size Size of setup_buffer (should be always 8) 80 * @param[in] func_in function to call on inbound transfer completion 81 * @param[in] func_out function to call on outbound transfer completion 82 * @param[in] arg additional parameter to func_in or func_out 79 * @param[in] usb_batch Pointer to generic USB batch structure. 83 80 * @return Valid pointer if all structures were successfully created, 84 81 * NULL otherwise. … … 200 197 } 201 198 /*----------------------------------------------------------------------------*/ 199 /** Direction to pid conversion table */ 202 200 static const usb_packet_id direction_pids[] = { 203 201 [USB_DIRECTION_IN] = USB_PID_IN,
Note:
See TracChangeset
for help on using the changeset viewer.