Changeset 4192d3d6 in mainline
- Timestamp:
- 2011-02-07T11:20:22Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da17cf0
- Parents:
- 4d73d71
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/Makefile
r4d73d71 r4192d3d6 40 40 uhci.c \ 41 41 uhci_struct/transfer_descriptor.c \ 42 pci.c 42 pci.c \ 43 tracker.c 43 44 44 45 include $(USPACE_PREFIX)/Makefile.common -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.c
r4d73d71 r4192d3d6 32 32 * @brief UHCI driver 33 33 */ 34 #include <errno.h> 34 35 #include <usb/debug.h> 35 36 … … 44 45 instance->next = 45 46 0 | LINK_POINTER_TERMINATE_FLAG; 46 47 47 48 48 assert(size < 1024); … … 110 110 return USB_OUTCOME_OK; 111 111 } 112 112 /*----------------------------------------------------------------------------*/ 113 int transfer_descriptor_status(transfer_descriptor_t *instance) 114 { 115 assert(instance); 116 if (convert_outcome(instance->status)) 117 return EINVAL; //TODO: use sane error value here 118 return EOK; 119 } 120 /*----------------------------------------------------------------------------*/ 113 121 void transfer_descriptor_fini(transfer_descriptor_t *instance) 114 122 { -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.h
r4d73d71 r4192d3d6 122 122 } 123 123 124 int transfer_descriptor_status(transfer_descriptor_t *instance); 125 124 126 static inline void transfer_descriptor_append( 125 127 transfer_descriptor_t *instance, transfer_descriptor_t *item) … … 127 129 assert(instance); 128 130 instance->next_va = item; 129 instance->next = (uintptr_t)addr_to_phys( item) & LINK_POINTER_ADDRESS_MASK;131 instance->next = (uintptr_t)addr_to_phys(item) & LINK_POINTER_ADDRESS_MASK; 130 132 } 131 133 #endif
Note:
See TracChangeset
for help on using the changeset viewer.