Ignore:
Timestamp:
2011-02-04T14:45:42Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dcef3669
Parents:
97e87de
Message:

New UHCI packet scheduler

queues are named for nicer debug output
slow_speed is set by iface functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/uhci_struct/queue_head.h

    r97e87de r881c47b  
    4747} __attribute__((packed)) queue_head_t;
    4848
    49 static inline void queue_head_init(queue_head_t *instance, uint32_t next_queue_pa)
     49static inline void queue_head_init(queue_head_t *instance)
    5050{
    5151        assert(instance);
    52         assert((next_queue_pa & LINK_POINTER_ADDRESS_MASK) == next_queue_pa);
    5352
    5453        instance->element = 0 | LINK_POINTER_TERMINATE_FLAG;
     54        instance->next_queue = 0 | LINK_POINTER_TERMINATE_FLAG;
     55}
     56
     57static inline void queue_head_add_next(queue_head_t *instance, uint32_t next_queue_pa)
     58{
    5559        if (next_queue_pa) {
    5660                instance->next_queue = (next_queue_pa & LINK_POINTER_ADDRESS_MASK)
    5761                  | LINK_POINTER_QUEUE_HEAD_FLAG;
    58         } else {
    59                 instance->next_queue = 0 | LINK_POINTER_TERMINATE_FLAG;
    6062        }
    6163}
Note: See TracChangeset for help on using the changeset viewer.