]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: video: Replace PCI_CLASS_* macros by one from pci_ids.h
authorPali Rohár <pali@kernel.org>
Fri, 18 Feb 2022 12:16:18 +0000 (13:16 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 25 Mar 2022 17:35:50 +0000 (13:35 -0400)
Replace old macros PCI_CLASS_CODE_COMM and PCI_CLASS_SUB_CODE_COMM_SERIAL
by new macros defined in pci_ids.h. Old macros would be deleted in followup
commit.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/sandbox/include/asm/test.h

index 0d83f4dc1bcb35cc97aa917a28cddcca4406d6e0..015e96d53f873e91f5b5486bc6fcbd00ff8db86c 100644 (file)
@@ -9,6 +9,7 @@
 #define __ASM_TEST_H
 
 #include <video.h>
+#include <pci_ids.h>
 
 /* The sandbox driver always permits an I2C device with this address */
 #define SANDBOX_I2C_TEST_ADDR          0x59
@@ -17,8 +18,8 @@
 #define SANDBOX_PCI_SWAP_CASE_EMUL_ID  0x5678
 #define SANDBOX_PCI_PMC_EMUL_ID                0x5677
 #define SANDBOX_PCI_P2SB_EMUL_ID       0x5676
-#define SANDBOX_PCI_CLASS_CODE         PCI_CLASS_CODE_COMM
-#define SANDBOX_PCI_CLASS_SUB_CODE     PCI_CLASS_SUB_CODE_COMM_SERIAL
+#define SANDBOX_PCI_CLASS_CODE         (PCI_CLASS_COMMUNICATION_SERIAL >> 8)
+#define SANDBOX_PCI_CLASS_SUB_CODE     (PCI_CLASS_COMMUNICATION_SERIAL & 0xff)
 
 #define PCI_CAP_ID_PM_OFFSET           0x50
 #define PCI_CAP_ID_EXP_OFFSET          0x60