Changeset f98b8269 in mainline for uspace/drv/ohci/hw_struct/endpoint_descriptor.h
- Timestamp:
- 2011-04-08T15:15:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b6e3ed3
- Parents:
- 6bec59b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.