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


Ignore:
Timestamp:
2017-10-15T20:08:16Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b7db009
Parents:
816f5f4
Message:

Setting up endpoint contexts (almost) properly. Boilerplate for interrupt transfers. Simplified TRB ring initialization.

File:
1 edited

Legend:

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

    r816f5f4 r9b2f69e  
    187187        ret_dev->device = dev;
    188188
     189        usb_log_debug("Device(%d) registered to XHCI bus.", dev->address);
     190
    189191        hash_table_insert(&bus->devices, &ret_dev->link);
    190192        *hashed_dev = ret_dev;
     
    200202static int hashed_device_remove(xhci_bus_t *bus, hashed_device_t *hashed_dev)
    201203{
     204        usb_log_debug("Device(%d) released from XHCI bus.", hashed_dev->device->address);
     205
    202206        hash_table_remove(&bus->devices, &hashed_dev->device->address);
    203207        xhci_device_fini(hashed_dev->device);
     
    225229        }
    226230
     231        usb_log_debug("Endpoint(%d:%d) registered to XHCI bus.", ep->target.address, ep->target.endpoint);
     232
    227233        return xhci_device_add_endpoint(hashed_dev->device, xhci_endpoint_get(ep));
    228234}
     
    232238        xhci_bus_t *bus = bus_to_xhci_bus(bus_base);
    233239        assert(bus);
     240
     241        usb_log_debug("Endpoint(%d:%d) released from XHCI bus.", ep->target.address, ep->target.endpoint);
    234242
    235243        hashed_device_t *hashed_dev;
Note: See TracChangeset for help on using the changeset viewer.