x86/amd_nb: Re-sort and re-indent PCI defines
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 31 May 2023 09:39:57 +0000 (11:39 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 5 Jun 2023 10:26:54 +0000 (12:26 +0200)
Sort them by family, model and type and align them vertically for better
readability.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230531094212.GHZHcWdMDkCpAp4daj@fat_crate.local
arch/x86/kernel/amd_nb.c

index 8fd9554..035a3db 100644 (file)
 #include <linux/pci_ids.h>
 #include <asm/amd_nb.h>
 
-#define PCI_DEVICE_ID_AMD_17H_ROOT     0x1450
-#define PCI_DEVICE_ID_AMD_17H_M10H_ROOT        0x15d0
-#define PCI_DEVICE_ID_AMD_17H_M30H_ROOT        0x1480
-#define PCI_DEVICE_ID_AMD_17H_M60H_ROOT        0x1630
-#define PCI_DEVICE_ID_AMD_17H_MA0H_ROOT        0x14b5
-#define PCI_DEVICE_ID_AMD_19H_M10H_ROOT        0x14a4
-#define PCI_DEVICE_ID_AMD_19H_M60H_ROOT        0x14d8
-#define PCI_DEVICE_ID_AMD_19H_M70H_ROOT        0x14e8
-#define PCI_DEVICE_ID_AMD_MI200_ROOT   0x14bb
-#define PCI_DEVICE_ID_AMD_17H_DF_F4    0x1464
-#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F4 0x15ec
-#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F4 0x1494
-#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F4 0x144c
-#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F4 0x1444
-#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F4 0x1728
-#define PCI_DEVICE_ID_AMD_19H_DF_F4    0x1654
-#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F4 0x14b1
-#define PCI_DEVICE_ID_AMD_19H_M40H_ROOT        0x14b5
-#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F4 0x167d
-#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F4 0x166e
-#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F4 0x14e4
-#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F4 0x14f4
-#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F4 0x12fc
-#define PCI_DEVICE_ID_AMD_MI200_DF_F4  0x14d4
+#define PCI_DEVICE_ID_AMD_17H_ROOT             0x1450
+#define PCI_DEVICE_ID_AMD_17H_M10H_ROOT                0x15d0
+#define PCI_DEVICE_ID_AMD_17H_M30H_ROOT                0x1480
+#define PCI_DEVICE_ID_AMD_17H_M60H_ROOT                0x1630
+#define PCI_DEVICE_ID_AMD_17H_MA0H_ROOT                0x14b5
+#define PCI_DEVICE_ID_AMD_19H_M10H_ROOT                0x14a4
+#define PCI_DEVICE_ID_AMD_19H_M40H_ROOT                0x14b5
+#define PCI_DEVICE_ID_AMD_19H_M60H_ROOT                0x14d8
+#define PCI_DEVICE_ID_AMD_19H_M70H_ROOT                0x14e8
+#define PCI_DEVICE_ID_AMD_MI200_ROOT           0x14bb
+
+#define PCI_DEVICE_ID_AMD_17H_DF_F4            0x1464
+#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F4       0x15ec
+#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F4       0x1494
+#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F4       0x144c
+#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F4       0x1444
+#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F4       0x1728
+#define PCI_DEVICE_ID_AMD_19H_DF_F4            0x1654
+#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F4       0x14b1
+#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F4       0x167d
+#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F4       0x166e
+#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F4       0x14e4
+#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F4       0x14f4
+#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F4       0x12fc
+#define PCI_DEVICE_ID_AMD_MI200_DF_F4          0x14d4
 
 /* Protect the PCI config register pairs used for SMN. */
 static DEFINE_MUTEX(smn_mutex);