Changeset 0e3e1f6 in mainline
- Timestamp:
- 2017-10-12T19:57:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a5833d7
- Parents:
- a8435eb5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/bus.c
ra8435eb5 r0e3e1f6 51 51 52 52 /** Endpoint */ 53 endpoint_t *endpoint;53 xhci_endpoint_t *endpoint; 54 54 } hashed_endpoint_t; 55 55 … … 105 105 return ENOMEM; 106 106 107 hashed_ep->endpoint = ep;107 hashed_ep->endpoint = (xhci_endpoint_t *) ep; 108 108 hash_table_insert(&bus->endpoints, &hashed_ep->link); 109 109 … … 137 137 return NULL; 138 138 139 return hashed_ep->endpoint;139 return (endpoint_t *) hashed_ep->endpoint; 140 140 } 141 141 … … 204 204 { 205 205 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); 207 207 } 208 208 … … 215 215 { 216 216 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; 218 218 } 219 219
Note:
See TracChangeset
for help on using the changeset viewer.