]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PciBusNoEnumerationDxe/PciBus.h
1. added functions header for MACROS in PCI22.h.
[mirror_edk2.git] / DuetPkg / PciBusNoEnumerationDxe / PciBus.h
index fe974bee33270f75cb686853147b015fb184188f..039967a98e77473c56f5c71e07a68f456efa3632 100644 (file)
@@ -204,8 +204,8 @@ extern EFI_COMPONENT_NAME2_PROTOCOL  gPciBusComponentName2;
 extern EFI_DRIVER_BINDING_PROTOCOL  gPciBusDriverBinding;\r
 \r
 extern BOOLEAN                     gFullEnumeration;\r
-static UINT64                      gAllOne = 0xFFFFFFFFFFFFFFFFULL;\r
-static UINT64                      gAllZero   = 0;\r
+extern UINT64                      gAllOne;\r
+extern UINT64                      gAllZero;\r
 \r
 #include "PciIo.h"\r
 #include "PciCommand.h"\r
@@ -220,5 +220,6 @@ static UINT64                      gAllZero   = 0;
 \r
 #define IS_ISA_BRIDGE(_p)       IS_CLASS2 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA)  \r
 #define IS_INTEL_ISA_BRIDGE(_p) (IS_CLASS2 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE) && ((_p)->Hdr.VendorId == 0x8086) && ((_p)->Hdr.DeviceId == 0x7110))\r
+#define IS_PCI_GFX(_p)     IS_CLASS2 (_p, PCI_CLASS_DISPLAY, PCI_CLASS_DISPLAY_OTHER)\r
 \r
 #endif\r