Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset fdaaad00 in mainline


Ignore:
Timestamp:
2014-01-24T20:49:26Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
fa9656b0
Parents:
296fcce
Message:

ehci: Make async schedule a loop.

Hw RR mechanism needs this.

Location:
uspace/drv/bus/usb/ehci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/endpoint_list.c

    r296fcce rfdaaad00  
    6868        fibril_mutex_initialize(&instance->guard);
    6969        return EOK;
     70}
     71
     72void endpoint_list_chain(endpoint_list_t *instance, const endpoint_list_t *next)
     73{
     74        assert(instance);
     75        assert(next);
     76        assert(instance->list_head);
     77        assert(next->list_head);
     78
     79        instance->list_head->horizontal = LINK_POINTER_QH(next->list_head_pa);
    7080}
    7181
  • uspace/drv/bus/usb/ehci/endpoint_list.h

    r296fcce rfdaaad00  
    7373
    7474int endpoint_list_init(endpoint_list_t *instance, const char *name);
     75void endpoint_list_chain(endpoint_list_t *instance, const endpoint_list_t *next);
    7576void endpoint_list_append_ep(endpoint_list_t *instance, ehci_endpoint_t *ep);
    7677void endpoint_list_remove_ep(endpoint_list_t *instance, ehci_endpoint_t *ep);
  • uspace/drv/bus/usb/ehci/hc.c

    r296fcce rfdaaad00  
    407407                return ret;
    408408        }
     409        /* Loop async list */
     410        endpoint_list_chain(&instance->async_list, &instance->async_list);
    409411
    410412        /* Take 1024 periodic list heads, we ignore low mem options */
Note: See TracChangeset for help on using the changeset viewer.