Ignore:
Timestamp:
2011-10-28T20:53:41Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48ae3ef
Parents:
83c3123
Message:

libusbhost: Drop hash_table and use multiple lists instead.

This has several advantages:
Knowing that all endpoints on one address are in one list makes toggle resets more efficient.
Endpoint search is done only once for inserts and deletes.
Lists are part of the structure and not allocated separately, removing one more failure point from init path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/endpoint.h

    r83c3123 r7265558  
    7777int endpoint_toggle_get(endpoint_t *instance);
    7878void endpoint_toggle_set(endpoint_t *instance, int toggle);
    79 void endpoint_toggle_reset_filtered(endpoint_t *instance, usb_target_t target);
     79
     80static inline endpoint_t * endpoint_get_instance(link_t *item)
     81{
     82        return list_get_instance(item, endpoint_t, link);
     83}
    8084#endif
    8185/**
Note: See TracChangeset for help on using the changeset viewer.