Changeset f7ac3f3 in mainline for uspace/drv/bus/usb/uhci/uhci_batch.h
- Timestamp:
- 2011-12-06T12:46:52Z (13 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.h
rad91b806 rf7ac3f3 64 64 bool uhci_transfer_batch_is_complete(const uhci_transfer_batch_t *uhci_batch); 65 65 66 /** Get offset to setup buffer accessible to the HC hw. 67 * @param uhci_batch UHCI batch structure. 68 * @return Pointer to the setup buffer. 69 */ 66 70 static inline void * uhci_transfer_batch_setup_buffer( 67 71 const uhci_transfer_batch_t *uhci_batch) … … 73 77 } 74 78 /*----------------------------------------------------------------------------*/ 79 /** Get offset to data buffer accessible to the HC hw. 80 * @param uhci_batch UHCI batch structure. 81 * @return Pointer to the data buffer. 82 */ 75 83 static inline void * uhci_transfer_batch_data_buffer( 76 84 const uhci_transfer_batch_t *uhci_batch) … … 82 90 } 83 91 /*----------------------------------------------------------------------------*/ 84 static inline void uhci_transfer_batch_abort( 85 uhci_transfer_batch_t *uhci_batch) 92 /** Aborts the batch. 93 * Sets error to EINTR and size off transferd data to 0, before finishing the 94 * batch. 95 * @param uhci_batch Batch to abort. 96 */ 97 static inline void uhci_transfer_batch_abort(uhci_transfer_batch_t *uhci_batch) 86 98 { 87 99 assert(uhci_batch); … … 92 104 } 93 105 /*----------------------------------------------------------------------------*/ 106 /** Linked list conversion wrapper. 107 * @param l Linked list link. 108 * @return Pointer to the uhci batch structure. 109 */ 94 110 static inline uhci_transfer_batch_t *uhci_transfer_batch_from_link(link_t *l) 95 111 {
Note:
See TracChangeset
for help on using the changeset viewer.