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

Changeset 0e3e1f6 in mainline


Ignore:
Timestamp:
2017-10-12T19:57:34Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
0a5833d7
Parents:
a8435eb5
Message:

Corrected to assume endpoint_t is actually xhci_endpoint_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    ra8435eb5 r0e3e1f6  
    5151
    5252        /** Endpoint */
    53         endpoint_t *endpoint;
     53        xhci_endpoint_t *endpoint;
    5454} hashed_endpoint_t;
    5555
     
    105105                return ENOMEM;
    106106
    107         hashed_ep->endpoint = ep;
     107        hashed_ep->endpoint = (xhci_endpoint_t *) ep;
    108108        hash_table_insert(&bus->endpoints, &hashed_ep->link);
    109109
     
    137137                return NULL;
    138138
    139         return hashed_ep->endpoint;
     139        return (endpoint_t *) hashed_ep->endpoint;
    140140}
    141141
     
    204204{
    205205        hashed_endpoint_t *ep = hash_table_get_inst(item, hashed_endpoint_t, link);
    206         return (size_t) ep->endpoint->target.packed;
     206        return (size_t) hash_mix32(ep->endpoint->base.target.packed);
    207207}
    208208
     
    215215{
    216216        hashed_endpoint_t *ep = hash_table_get_inst(item, hashed_endpoint_t, link);
    217         return ep->endpoint->target.packed == *(uint32_t *) key;
     217        return ep->endpoint->base.target.packed == *(uint32_t *) key;
    218218}
    219219
Note: See TracChangeset for help on using the changeset viewer.