Changeset 07c08ea in mainline for uspace/drv/bus/usb/xhci/rh.h


Ignore:
Timestamp:
2017-08-20T13:22:44Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ac352
Parents:
d32d51d
Message:

Basic virtual implementation for the root hub.

File:
1 edited

Legend:

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

    rd32d51d r07c08ea  
    4040#include <usbvirt/virthub_base.h>
    4141
     42enum {
     43        XHCI_MAX_PORTS = 255,
     44};
     45
    4246/* XHCI root hub instance */
    4347typedef struct {
    4448        /** Virtual hub instance */
    4549        virthub_base_t base;
     50        /** USB hub descriptor describing the XHCI root hub */
     51        struct {
     52                usb_hub_descriptor_header_t header;
     53                uint8_t rempow[STATUS_BYTES(XHCI_MAX_PORTS) * 2];
     54        } __attribute__((packed)) hub_descriptor;
     55        /** Interrupt transfer waiting for an actual interrupt to occur */
     56        usb_transfer_batch_t *unfinished_interrupt_transfer;
    4657} xhci_rh_t;
    4758
     
    5263int xhci_reset_hub_port(xhci_hc_t *, uint8_t);
    5364int xhci_rh_schedule(xhci_rh_t *, usb_transfer_batch_t *);
     65int xhci_rh_interrupt(xhci_rh_t *);
    5466
    5567#endif
Note: See TracChangeset for help on using the changeset viewer.