Changeset 87786 in vbox for trunk/include/VBox
- Timestamp:
- Feb 18, 2021 11:31:38 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/iommu-amd.h
r87732 r87786 579 579 /** Gets the interrupt table length (in bytes) given the DTE pointer. */ 580 580 #define IOMMU_GET_INTR_TAB_LEN(a_pDte) (IOMMU_GET_INTR_TAB_ENTRIES(a_pDte) * sizeof(IRTE_T)) 581 /** Mask of interrupt control bits. */ 582 #define IOMMU_DTE_INTR_CTRL_MASK 0x3 583 /** Gets the interrupt control bits given the DTE pointer. */ 584 #define IOMMU_GET_INTR_CTRL(a_pDte) (((a_pDte)->au64[2] >> 60) & IOMMU_DTE_INTR_CTRL_MASK) 581 585 582 586 /** … … 694 698 * interrupt message. See AMD IOMMU spec. 2.2.5 "Interrupt Remapping Tables". */ 695 699 #define IOMMU_MSI_DATA_IRTE_OFFSET_MASK UINT32_C(0x000007ff) 700 /** Gets the IRTE offset from the originating MSI interrupt message. */ 701 #define IOMMU_GET_IRTE_OFF(a_u32MsiData) (((a_u32MsiData) & IOMMU_MSI_DATA_IRTE_OFFSET_MASK) * sizeof(IRTE_T)); 696 702 697 703 /** … … 882 888 } CMD_INV_INTR_TABLE_T; 883 889 AssertCompileSize(CMD_INV_INTR_TABLE_T, 16); 890 /** Pointer to a invalidate interrupt table command. */ 891 typedef CMD_INV_INTR_TABLE_T *PCMD_INV_INTR_TABLE_T; 892 /** Pointer to a const invalidate interrupt table command. */ 893 typedef CMD_INV_INTR_TABLE_T const *PCCMD_INV_INTR_TABLE_T; 894 #define IOMMU_CMD_INV_INTR_TABLE_QWORD_0_VALID_MASK UINT64_C(0xf00000000000ffff) 895 #define IOMMU_CMD_INV_INTR_TABLE_QWORD_1_VALID_MASK UINT64_C(0x0000000000000000) 884 896 885 897 /**
Note:
See TracChangeset
for help on using the changeset viewer.