Changeset f98b8269 in mainline
- Timestamp:
- 2011-04-08T15:15:34Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b6e3ed3
- Parents:
- 6bec59b
- Location:
- uspace/drv/ohci
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/Makefile
r6bec59b rf98b8269 33 33 34 34 SOURCES = \ 35 batch.c \ 36 hc.c \ 35 37 iface.c \ 36 batch.c \37 38 main.c \ 38 hc.c \39 39 ohci.c \ 40 pci.c \ 40 41 root_hub.c \ 41 pci.c 42 transfer_list.c 43 42 44 43 45 include $(USPACE_PREFIX)/Makefile.common -
uspace/drv/ohci/batch.c
r6bec59b rf98b8269 93 93 } 94 94 /*----------------------------------------------------------------------------*/ 95 bool batch_is_complete(usb_transfer_batch_t *instance) 96 { 97 // TODO: implement 98 return false; 99 } 100 /*----------------------------------------------------------------------------*/ 95 101 void batch_control_write(usb_transfer_batch_t *instance) 96 102 { … … 151 157 } 152 158 /*----------------------------------------------------------------------------*/ 159 ed_t * batch_ed(usb_transfer_batch_t *instance) 160 { 161 return NULL; 162 } 163 /*----------------------------------------------------------------------------*/ 153 164 /** Helper function calls callback and correctly disposes of batch structure. 154 165 * -
uspace/drv/ohci/batch.h
r6bec59b rf98b8269 41 41 #include <usb/host/batch.h> 42 42 43 #include "hw_struct/endpoint_descriptor.h" 43 44 44 45 usb_transfer_batch_t * batch_get( … … 65 66 void batch_bulk_out(usb_transfer_batch_t *instance); 66 67 68 ed_t * batch_ed(usb_transfer_batch_t *instance); 67 69 #endif 68 70 /** -
uspace/drv/ohci/hw_struct/endpoint_descriptor.h
r6bec59b rf98b8269 35 35 #define DRV_OHCI_HW_STRUCT_ENDPOINT_DESCRIPTOR_H 36 36 37 #include <assert.h> 37 38 #include <stdint.h> 39 40 #include "utils/malloc32.h" 38 41 39 42 #include "completion_codes.h" … … 71 74 #define ED_NEXT_PTR_SHIFT (0) 72 75 } __attribute__((packed)) ed_t; 76 77 static inline void ed_init_dummy(ed_t *instance) 78 { 79 assert(instance); 80 bzero(instance, sizeof(ed_t)); 81 instance->status |= ED_STATUS_K_FLAG; 82 } 83 84 static inline void ed_append_ed(ed_t *instance, ed_t *next) 85 { 86 assert(instance); 87 assert(next); 88 uint32_t pa = addr_to_phys(next); 89 assert((pa & ED_NEXT_PTR_MASK) << ED_NEXT_PTR_SHIFT == pa); 90 instance->next = pa; 91 } 92 73 93 #endif 74 94 /**
Note:
See TracChangeset
for help on using the changeset viewer.