]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Snp.h
[Change summary]:
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Snp.h
index ff7ad7b444fef415958bf9c096122e3932cecb44..37de65ab0509272836ac70d76dd639f67fec78e7 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
     Declaration of strctures and functions for SnpDxe driver.\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR> \r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR> \r
 All rights reserved. This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
@@ -22,6 +22,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Protocol/NetworkInterfaceIdentifier.h>\r
 #include <Protocol/DevicePath.h>\r
 \r
+#include <Guid/EventGroup.h>\r
+\r
 #include <Library/DebugLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
@@ -30,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 \r
-#include <IndustryStandard/Pci22.h>\r
+#include <IndustryStandard/Pci.h>\r
 \r
 #define FOUR_GIGABYTES  (UINT64) 0x100000000ULL\r
 \r
@@ -118,6 +120,8 @@ typedef struct {
     EFI_PHYSICAL_ADDRESS  VirtualAddress;\r
     VOID                  *MapCookie;\r
   } MapList[MAX_MAP_LENGTH];\r
+\r
+  EFI_EVENT              ExitBootServicesEvent;\r
 } SNP_DRIVER;\r
 \r
 #define EFI_SIMPLE_NETWORK_DEV_FROM_THIS(a) CR (a, SNP_DRIVER, Snp, SNP_DRIVER_SIGNATURE)\r
@@ -131,13 +135,15 @@ extern EFI_COMPONENT_NAME2_PROTOCOL   gSimpleNetworkComponentName2;
 //\r
 //  Virtual to physical mapping for all UNDI 3.0s.\r
 //\r
-typedef struct _V2P {\r
-  struct _V2P           *Next;\r
+typedef struct _V2P V2P;\r
+\r
+struct _V2P {\r
+  V2P                   *Next;\r
   VOID                  *VirtualAddress;\r
   UINTN                 BufferSize;\r
   EFI_PHYSICAL_ADDRESS  PhysicalAddress;\r
   VOID                  *Unmap;\r
-} V2P;\r
+};\r
 \r
 /**\r
   This routine maps the given CPU address to a Device address. It creates a\r