]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Snp.h
MdeModulePkg: Define correct ABI for issuing UNDI command and UNDI callback functions...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Snp.h
index bf9ed8823338de4c4e74c47e427026d0e254277e..dc6384533456431578c6e88967d6fe853e1141fc 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
     Declaration of strctures and functions for SnpDxe driver.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -49,7 +49,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 typedef\r
 EFI_STATUS\r
-(*ISSUE_UNDI32_COMMAND) (\r
+(EFIAPI *ISSUE_UNDI32_COMMAND) (\r
   UINT64         Cdb\r
   );\r
 \r
@@ -295,6 +295,7 @@ DelV2p (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackBlock30 (\r
   IN UINT32 Enable\r
   );\r
@@ -308,6 +309,7 @@ SnpUndi32CallbackBlock30 (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackDelay30 (\r
   IN UINT64 MicroSeconds\r
   );\r
@@ -331,6 +333,7 @@ SnpUndi32CallbackDelay30 (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackMemio30 (\r
   IN UINT8      ReadOrWrite,\r
   IN UINT8      NumBytes,\r
@@ -355,6 +358,7 @@ SnpUndi32CallbackMemio30 (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackV2p30 (\r
   IN UINT64     CpuAddr,\r
   IN OUT UINT64 DeviceAddrPtr\r
@@ -369,12 +373,13 @@ SnpUndi32CallbackV2p30 (
   the MemMap call to map the required address by itself!\r
 \r
   @param UniqueId  This was supplied to UNDI at Undi_Start, SNP uses this to\r
-                                                                store Undi interface context (Undi does not read or write\r
-                                                                this variable)\r
+                   store Undi interface context (Undi does not read or write\r
+                   this variable)\r
   @param Enable    non-zero indicates acquire\r
                    zero indicates release\r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackBlock (\r
   IN UINT64 UniqueId,\r
   IN UINT32 Enable\r
@@ -386,11 +391,12 @@ SnpUndi32CallbackBlock (
   pause.\r
 \r
   @param UniqueId      This was supplied to UNDI at Undi_Start, SNP uses this to\r
-                                                                    store Undi interface context (Undi does not read or write\r
-                                                                    this variable)\r
+                       store Undi interface context (Undi does not read or write\r
+                       this variable)\r
   @param MicroSeconds  number of micro seconds to pause, ususlly multiple of 10.\r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackDelay (\r
   IN UINT64 UniqueId,\r
   IN UINT64 MicroSeconds\r
@@ -401,8 +407,8 @@ SnpUndi32CallbackDelay (
   This is the IO routine for UNDI3.1 to start CPB.\r
 \r
   @param UniqueId       This was supplied to UNDI at Undi_Start, SNP uses this\r
-                                                                                       to store Undi interface context (Undi does not read or\r
-                                                                                       write this variable)\r
+                        to store Undi interface context (Undi does not read or\r
+                        write this variable)\r
   @param ReadOrWrite    indicates read or write, IO or Memory.\r
   @param NumBytes       number of bytes to read or write.\r
   @param MemOrPortAddr  IO or memory address to read from or write to.\r
@@ -410,6 +416,7 @@ SnpUndi32CallbackDelay (
                         to write.\r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackMemio (\r
   IN UINT64     UniqueId,\r
   IN UINT8      ReadOrWrite,\r
@@ -433,6 +440,7 @@ SnpUndi32CallbackMemio (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackMap (\r
   IN UINT64     UniqueId,\r
   IN UINT64     CpuAddr,\r
@@ -456,6 +464,7 @@ SnpUndi32CallbackMap (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackUnmap (\r
   IN UINT64             UniqueId,\r
   IN UINT64             CpuAddr,\r
@@ -486,6 +495,7 @@ SnpUndi32CallbackUnmap (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 SnpUndi32CallbackSync (\r
   IN UINT64             UniqueId,\r
   IN UINT64             CpuAddr,\r