Changeset 5fd9c30 in mainline for uspace/drv/bus/usb/ohci/ohci_batch.h
- Timestamp:
- 2017-10-21T20:52:56Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 766043c
- Parents:
- 74b852b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_batch.h
r74b852b r5fd9c30 45 45 /** OHCI specific data required for USB transfer */ 46 46 typedef struct ohci_transfer_batch { 47 usb_transfer_batch_t base; 48 47 49 /** Link */ 48 50 link_t link; … … 59 61 } ohci_transfer_batch_t; 60 62 61 ohci_transfer_batch_t * ohci_transfer_batch_ get(usb_transfer_batch_t *batch);62 bool ohci_transfer_batch_is_complete(const ohci_transfer_batch_t *batch);63 ohci_transfer_batch_t * ohci_transfer_batch_create(endpoint_t *batch); 64 int ohci_transfer_batch_prepare(ohci_transfer_batch_t *ohci_batch); 63 65 void ohci_transfer_batch_commit(const ohci_transfer_batch_t *batch); 64 void ohci_transfer_batch_finish_dispose(ohci_transfer_batch_t *batch); 66 bool ohci_transfer_batch_check_completed(ohci_transfer_batch_t *batch); 67 void ohci_transfer_batch_destroy(ohci_transfer_batch_t *ohci_batch); 65 68 66 69 static inline ohci_transfer_batch_t *ohci_transfer_batch_from_link(link_t *l) … … 69 72 return list_get_instance(l, ohci_transfer_batch_t, link); 70 73 } 74 75 static inline ohci_transfer_batch_t * ohci_transfer_batch_get(usb_transfer_batch_t *usb_batch) 76 { 77 assert(usb_batch); 78 79 return (ohci_transfer_batch_t *) usb_batch; 80 } 81 71 82 #endif 72 83 /**
Note:
See TracChangeset
for help on using the changeset viewer.