Changeset 881c47b in mainline for uspace/drv/uhci-hcd/uhci_struct/queue_head.h
- Timestamp:
- 2011-02-04T14:45:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcef3669
- Parents:
- 97e87de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci_struct/queue_head.h
r97e87de r881c47b 47 47 } __attribute__((packed)) queue_head_t; 48 48 49 static inline void queue_head_init(queue_head_t *instance , uint32_t next_queue_pa)49 static inline void queue_head_init(queue_head_t *instance) 50 50 { 51 51 assert(instance); 52 assert((next_queue_pa & LINK_POINTER_ADDRESS_MASK) == next_queue_pa);53 52 54 53 instance->element = 0 | LINK_POINTER_TERMINATE_FLAG; 54 instance->next_queue = 0 | LINK_POINTER_TERMINATE_FLAG; 55 } 56 57 static inline void queue_head_add_next(queue_head_t *instance, uint32_t next_queue_pa) 58 { 55 59 if (next_queue_pa) { 56 60 instance->next_queue = (next_queue_pa & LINK_POINTER_ADDRESS_MASK) 57 61 | LINK_POINTER_QUEUE_HEAD_FLAG; 58 } else {59 instance->next_queue = 0 | LINK_POINTER_TERMINATE_FLAG;60 62 } 61 63 }
Note:
See TracChangeset
for help on using the changeset viewer.