Ignore:
Timestamp:
2017-10-25T00:03:57Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c3d926f
Parents:
56db65d
Message:

Moving things around to improve isolation of responsibilities

Bus interface was simplified, xHCI implementation of address_device was spread into stack of rh → bus → hc and back.

File:
1 edited

Legend:

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

    r56db65d r0206d35  
    117117int device_init(device_t *);
    118118
    119 extern int bus_add_ep(bus_t *, device_t *, const usb_endpoint_desc_t *);
    120 extern int bus_remove_ep(bus_t *, device_t *, usb_target_t, usb_direction_t);
    121 
    122119int device_set_default_name(device_t *);
    123120
     
    125122int bus_remove_device(bus_t *, hcd_t *, device_t *);
    126123
    127 endpoint_t *bus_create_endpoint(bus_t *);
    128 int bus_register_endpoint(bus_t *, endpoint_t *, const usb_endpoint_desc_t *);
    129 int bus_unregister_endpoint(bus_t *, endpoint_t *);
     124int bus_add_endpoint(bus_t *, device_t *, const usb_endpoint_desc_t *, endpoint_t **);
    130125endpoint_t *bus_find_endpoint(bus_t *, device_t *, usb_target_t, usb_direction_t);
     126int bus_remove_endpoint(bus_t *, endpoint_t *);
    131127
    132128size_t bus_count_bw(endpoint_t *, size_t);
Note: See TracChangeset for help on using the changeset viewer.