Changeset 69944 in vbox
- Timestamp:
- Dec 6, 2017 8:28:48 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r69871 r69944 125 125 126 126 /** 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. 130 129 */ 131 130 #define OHCI_NDP_MAX 15 … … 610 609 611 610 /* 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. */ 618 617 #define OHCI_USB_RESET 0x00 619 618 #define OHCI_USB_RESUME 0x40 620 619 #define OHCI_USB_OPERATIONAL 0x80 621 620 #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. */ 631 630 632 631 /** @name Interrupt Status and Enabled/Disabled Flags 633 632 * @{ */ 634 633 /** SO - Scheduling overrun. */ 635 #define OHCI_INTR_SCHEDUL EING_OVERRUNRT_BIT(0)634 #define OHCI_INTR_SCHEDULING_OVERRUN RT_BIT(0) 636 635 /** WDH - HcDoneHead writeback. */ 637 636 #define OHCI_INTR_WRITE_DONE_HEAD RT_BIT(1) … … 655 654 #define OHCI_HCCA_MASK UINT32_C(0xffffff00) 656 655 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. */ 659 658 #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. */ 661 660 #define OHCI_FMI_FIT_SHIFT 31 662 661 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. */ 681 680 682 681 /** @name HcRhPortStatus[n] - RH Port Status register (read).
Note:
See TracChangeset
for help on using the changeset viewer.

