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

Message ID 64aeaf09-df4e-cfc2-7fe0-c7293f2eb958@suse.com
State New
Headers show
Series
  • AMD/IOMMU: drop unused PCI-generic #define-s
Related show

Commit Message

Jan Beulich Feb. 19, 2020, 1:37 p.m. UTC
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).

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Comments

Andrew Cooper Feb. 19, 2020, 3:36 p.m. UTC | #1
On 19/02/2020 13:37, Jan Beulich wrote:
> 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).
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

Patch
diff mbox series

--- a/xen/drivers/passthrough/amd/iommu-defs.h
+++ b/xen/drivers/passthrough/amd/iommu-defs.h
@@ -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