VirtualBox

Changeset 69944 in vbox


Ignore:
Timestamp:
Dec 6, 2017 8:28:48 AM (7 years ago)
Author:
vboxsync
Message:

OHCI: Added comments for register bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r69871 r69944  
    125125
    126126/** Maximum supported number of Downstream Ports on the root hub. 15 ports
    127  * is the maximum defined by the OHCI spec.
    128  * If you change this you need to add more status register words to the 'opreg'
    129  * array.
     127 * is the maximum defined by the OHCI spec. Must match the number of status
     128 * register words to the 'opreg' array.
    130129 */
    131130#define OHCI_NDP_MAX        15
     
    610609
    611610/* OHCI Local stuff */
    612 #define OHCI_CTL_CBSR       ((1<<0)|(1<<1))
    613 #define OHCI_CTL_PLE        (1<<2)
    614 #define OHCI_CTL_IE         (1<<3)
    615 #define OHCI_CTL_CLE        (1<<4)
    616 #define OHCI_CTL_BLE        (1<<5)
    617 #define OHCI_CTL_HCFS       ((1<<6)|(1<<7))
     611#define OHCI_CTL_CBSR       ((1<<0)|(1<<1)) /* Control/Bulk Service Ratio. */
     612#define OHCI_CTL_PLE        (1<<2)          /* Periodic List Enable. */
     613#define OHCI_CTL_IE         (1<<3)          /* Isochronous Enable. */
     614#define OHCI_CTL_CLE        (1<<4)          /* Control List Enable. */
     615#define OHCI_CTL_BLE        (1<<5)          /* Bulk List Enable. */
     616#define OHCI_CTL_HCFS       ((1<<6)|(1<<7)) /* Host Controller Functional State. */
    618617#define  OHCI_USB_RESET         0x00
    619618#define  OHCI_USB_RESUME        0x40
    620619#define  OHCI_USB_OPERATIONAL   0x80
    621620#define  OHCI_USB_SUSPEND       0xc0
    622 #define OHCI_CTL_IR         (1<<8)
    623 #define OHCI_CTL_RWC        (1<<9)
    624 #define OHCI_CTL_RWE        (1<<10)
    625 
    626 #define OHCI_STATUS_HCR     (1<<0)
    627 #define OHCI_STATUS_CLF     (1<<1)
    628 #define OHCI_STATUS_BLF     (1<<2)
    629 #define OHCI_STATUS_OCR     (1<<3)
    630 #define OHCI_STATUS_SOC     ((1<<6)|(1<<7))
     621#define OHCI_CTL_IR         (1<<8)          /* Interrupt Routing (host/SMI). */
     622#define OHCI_CTL_RWC        (1<<9)          /* Remote Wakeup Connected. */
     623#define OHCI_CTL_RWE        (1<<10)         /* Remote Wakeup Enabled. */
     624
     625#define OHCI_STATUS_HCR     (1<<0)          /* Host Controller Reset. */
     626#define OHCI_STATUS_CLF     (1<<1)          /* Control List Filled. */
     627#define OHCI_STATUS_BLF     (1<<2)          /* Bulk List Filled. */
     628#define OHCI_STATUS_OCR     (1<<3)          /* Ownership Change Request. */
     629#define OHCI_STATUS_SOC     ((1<<6)|(1<<7)) /* Scheduling Overrun Count. */
    631630
    632631/** @name Interrupt Status and Enabled/Disabled Flags
    633632 * @{ */
    634633/** SO  - Scheduling overrun. */
    635 #define OHCI_INTR_SCHEDULEING_OVERRUN       RT_BIT(0)
     634#define OHCI_INTR_SCHEDULING_OVERRUN        RT_BIT(0)
    636635/** WDH - HcDoneHead writeback. */
    637636#define OHCI_INTR_WRITE_DONE_HEAD           RT_BIT(1)
     
    655654#define OHCI_HCCA_MASK      UINT32_C(0xffffff00)
    656655
    657 #define OHCI_FMI_FI         UINT32_C(0x00003fff)
    658 #define OHCI_FMI_FSMPS      UINT32_C(0x7fff0000)
     656#define OHCI_FMI_FI         UINT32_C(0x00003fff)    /* Frame Interval. */
     657#define OHCI_FMI_FSMPS      UINT32_C(0x7fff0000)    /* Full-Speed Max Packet Size. */
    659658#define OHCI_FMI_FSMPS_SHIFT 16
    660 #define OHCI_FMI_FIT        UINT32_C(0x80000000)
     659#define OHCI_FMI_FIT        UINT32_C(0x80000000)    /* Frame Interval Toggle. */
    661660#define OHCI_FMI_FIT_SHIFT  31
    662661
    663 #define OHCI_FR_RT          RT_BIT_32(31)
    664 
    665 #define OHCI_LS_THRESH      0x628
    666 
    667 #define OHCI_RHA_NDP        (0xff)
    668 #define OHCI_RHA_PSM        RT_BIT_32(8)
    669 #define OHCI_RHA_NPS        RT_BIT_32(9)
    670 #define OHCI_RHA_DT         RT_BIT_32(10)
    671 #define OHCI_RHA_OCPM       RT_BIT_32(11)
    672 #define OHCI_RHA_NOCP       RT_BIT_32(12)
    673 #define OHCI_RHA_POTPGP     UINT32_C(0xff000000)
    674 
    675 #define OHCI_RHS_LPS        RT_BIT_32(0)
    676 #define OHCI_RHS_OCI        RT_BIT_32(1)
    677 #define OHCI_RHS_DRWE       RT_BIT_32(15)
    678 #define OHCI_RHS_LPSC       RT_BIT_32(16)
    679 #define OHCI_RHS_OCIC       RT_BIT_32(17)
    680 #define OHCI_RHS_CRWE       RT_BIT_32(31)
     662#define OHCI_FR_FRT         RT_BIT_32(31)           /* Frame Remaining Toggle */
     663
     664#define OHCI_LS_THRESH      0x628                   /* Low-Speed Threshold. */
     665
     666#define OHCI_RHA_NDP        (0xff)                  /* Number of Downstream Ports. */
     667#define OHCI_RHA_PSM        RT_BIT_32(8)            /* Power Switching Mode. */
     668#define OHCI_RHA_NPS        RT_BIT_32(9)            /* No Power Switching. */
     669#define OHCI_RHA_DT         RT_BIT_32(10)           /* Device Type. */
     670#define OHCI_RHA_OCPM       RT_BIT_32(11)           /* Over-Current Protection Mode. */
     671#define OHCI_RHA_NOCP       RT_BIT_32(12)           /* No Over-Current Protection. */
     672#define OHCI_RHA_POTPGP     UINT32_C(0xff000000)    /* Power On To Power Good Time. */
     673
     674#define OHCI_RHS_LPS        RT_BIT_32(0)            /* Local Power Status. */
     675#define OHCI_RHS_OCI        RT_BIT_32(1)            /* Over-Current Indicator. */
     676#define OHCI_RHS_DRWE       RT_BIT_32(15)           /* Device Remote Wakeup Enable. */
     677#define OHCI_RHS_LPSC       RT_BIT_32(16)           /* Local Power Status Change. */
     678#define OHCI_RHS_OCIC       RT_BIT_32(17)           /* Over-Current Indicator Change. */
     679#define OHCI_RHS_CRWE       RT_BIT_32(31)           /* Clear Remote Wakeup Enable. */
    681680
    682681/** @name HcRhPortStatus[n] - RH Port Status register (read).
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette