]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBus.h
fixed ECC and Klocwork issues.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciBus.h
index 8f2e29c16e1020db597294ab9ebb88a2c2784806..4e206ff3b11b2c33fdcba42bc93ff9628b65dab2 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -128,7 +128,9 @@ typedef struct {
 #define EFI_SET_SUPPORTS    0\r
 #define EFI_SET_ATTRIBUTES  1\r
 \r
-typedef struct _PCI_IO_DEVICE {\r
+typedef struct _PCI_IO_DEVICE              PCI_IO_DEVICE;\r
+\r
+struct _PCI_IO_DEVICE {\r
   UINT32                                    Signature;\r
   EFI_HANDLE                                Handle;\r
   EFI_PCI_IO_PROTOCOL                       PciIo;\r
@@ -159,7 +161,7 @@ typedef struct _PCI_IO_DEVICE {
   //\r
   // The bridge device this pci device is subject to\r
   //\r
-  struct _PCI_IO_DEVICE                     *Parent;\r
+  PCI_IO_DEVICE                             *Parent;\r
 \r
   //\r
   // A linked list for children Pci Device if it is bridge device\r
@@ -227,7 +229,7 @@ typedef struct _PCI_IO_DEVICE {
 \r
   BOOLEAN                                   IsPciExp;\r
 \r
-} PCI_IO_DEVICE;\r
+};\r
 \r
 \r
 #define PCI_IO_DEVICE_FROM_PCI_IO_THIS(a) \\r