Changeset e6b9182 in mainline for uspace/drv/bus/usb/xhci/bus.c


Ignore:
Timestamp:
2017-10-13T08:49:29Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
741bcdeb
Parents:
0a5833d7
Message:

WIP usbhost refactoring: ohci completed

Along with that we noticed hcd_t in bus_t is superfluous and it complicates initialization (and breaks isolation), so we removed it. Also, type of the toggle has changed to bool in the functions.

File:
1 edited

Legend:

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

    r0a5833d7 re6b9182  
    171171
    172172/* Endpoint ops, optional (have generic fallback) */
    173 static int endpoint_get_toggle(endpoint_t *ep)
    174 {
    175         // TODO: Implement me!
    176         return ENOTSUP;
    177 }
    178 
    179 static void endpoint_set_toggle(endpoint_t *ep, unsigned toggle)
     173static bool endpoint_get_toggle(endpoint_t *ep)
     174{
     175        // TODO: Implement me!
     176        return ENOTSUP;
     177}
     178
     179static void endpoint_set_toggle(endpoint_t *ep, bool toggle)
    180180{
    181181        // TODO: Implement me!
     
    227227};
    228228
    229 int xhci_bus_init(xhci_bus_t *bus, hcd_t *hcd)
    230 {
    231         assert(bus);
    232 
    233         bus_init(&bus->base, hcd);
     229int xhci_bus_init(xhci_bus_t *bus)
     230{
     231        assert(bus);
     232
     233        bus_init(&bus->base);
    234234
    235235        if (!hash_table_create(&bus->endpoints, 0, 0, &endpoint_ht_ops)) {
Note: See TracChangeset for help on using the changeset viewer.