Changeset 2770b66 in mainline for uspace/drv/bus/usb/xhci/endpoint.h


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

Fixed few bugs related to control transfers and some deadlocks. Registering control endpoint with HelenOS. Can read out device descriptors through MID and initialize mouse driver!

File:
1 edited

Legend:

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

    r20eaa82 r2770b66  
    6666        endpoint_t base;        /**< Inheritance. Keep this first. */
    6767
     68        /** Parent device. */
    6869        xhci_device_t *device;
    6970} xhci_endpoint_t;
    7071
    7172typedef struct xhci_device {
     73        /** Unique USB address assigned to the device. */
    7274        usb_address_t address;
    7375
     76        /** Slot ID assigned to the device by xHC. */
    7477        uint32_t slot_id;
    7578
     79        /** Associated device in libusbhost. */
     80        device_t *device;
     81
     82        /** All endpoints of the device. Inactive ones are NULL */
    7683        xhci_endpoint_t *endpoints[XHCI_DEVICE_MAX_ENDPOINTS];
     84
     85        /** Number of non-NULL endpoints. Reference count of sorts. */
    7786        uint8_t active_endpoint_count;
    7887} xhci_device_t;
Note: See TracChangeset for help on using the changeset viewer.