Skip to contentSkip to conversation

AMD/IOMMU: drop unused PCI-generic #define-s

PATCH In review Jan Beulich 2 participants 2 messages Feb 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AMD/IOMMU: drop unused PCI-generic #define-s

Quite possibly they had been in use when some of the PCI interfacing was done in an ad hoc way rather than using the PCI functions we have. Right now these have no users (left).

xen/drivers/passthrough/amd/iommu-defs.h +0 -4
@@ -40,10 +40,6 @@
 #define amd_offset_level_address(offset, level) \
         ((uint64_t)(offset) << (12 + (PTE_PER_TABLE_SHIFT * ((level) - 1))))
 
-#define PCI_MIN_CAP_OFFSET	0x40
-#define PCI_MAX_CAP_BLOCKS	48
-#define PCI_CAP_PTR_MASK	0xFC
-
 /* IOMMU Capability */
 #define PCI_CAP_ID_MASK		0x000000FF
 #define PCI_CAP_ID_SHIFT	0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

Quite possibly they had been in use when some of the PCI interfacing was done in an ad hoc way rather than using the PCI functions we have. Right now these have no users (left).

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel