Changeset 063dfe8 in mainline for uspace/drv/bus/usb/xhci/endpoint.c


Ignore:
Timestamp:
2017-10-13T13:04:26Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dcf0597
Parents:
c10daa8
Message:

Moved initialization and polished some log messages.

File:
1 edited

Legend:

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

    rc10daa8 r063dfe8  
    5252        xhci_ep->device = NULL;
    5353
    54         usb_log_debug("XHCI Endpoint %d:%d initialized.", ep->target.address, ep->target.endpoint);
     54        usb_log_debug("Endpoint %d:%d initialized.", ep->target.address, ep->target.endpoint);
    5555
    5656        return EOK;
     
    6565        endpoint_t *ep = &xhci_ep->base;
    6666
    67         usb_log_debug("XHCI Endpoint %d:%d destroyed.", ep->target.address, ep->target.endpoint);
     67        usb_log_debug("Endpoint %d:%d destroyed.", ep->target.address, ep->target.endpoint);
    6868}
    6969
    70 int xhci_device_init(xhci_device_t *dev, xhci_bus_t *bus)
     70int xhci_device_init(xhci_device_t *dev, xhci_bus_t *bus, usb_address_t address)
    7171{
    7272        memset(&dev->endpoints, 0, sizeof(dev->endpoints));
    7373        dev->active_endpoint_count = 0;
     74        dev->address = address;
     75        dev->slot_id = 0;
     76
     77        usb_log_debug("Device %d initialized.", dev->address);
    7478        return EOK;
    7579}
     
    7882{
    7983        // TODO: Check that all endpoints are dead.
     84        usb_log_debug("Device %d destroyed.", dev->address);
    8085}
    8186
Note: See TracChangeset for help on using the changeset viewer.