]> git.proxmox.com Git - mirror_edk2.git/commitdiff
added EFIAPI for those constructor functions
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Sep 2006 02:44:41 +0000 (02:44 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Sep 2006 02:44:41 +0000 (02:44 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1548 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Library/DxeCoreCustomDecompressLibFromHob/DxeCoreCustomDecompressLibFromHob.c
EdkModulePkg/Library/DxeCoreTianoDecompressLibFromHob/DxeCoreTianoDecompressLibFromHob.c
EdkModulePkg/Library/DxeCoreUefiDecompressLibFromHob/DxeCoreUefiDecompressLibFromHob.c
EdkModulePkg/Library/EdkFvbServiceLib/Ipf/Fvb.c
EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c
EdkNt32Pkg/Library/Nt32PeCoffLoaderLib/Nt32PeCoffLoader.c

index 300cc91fed5cf1da204f785fb79f2665a7742659..8b58cfa5eafbfb26bd7bebaed9eadc8a1bc0d00f 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -15,13 +15,14 @@ Module Name:
 \r
 Abstract:\r
 \r
-  Custom Decompress Library from HOBs \r
+  Custom Decompress Library from HOBs\r
 \r
 --*/\r
 \r
 static DECOMPRESS_LIBRARY  mCustomDecompress;\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 DxeCoreCustomDecompressLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -40,7 +41,7 @@ Returns:
 \r
   GuidHob = GetFirstGuidHob (&gEfiCustomizedDecompressProtocolGuid);\r
   ASSERT (GuidHob != NULL);\r
-  CopyMem (&mCustomDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mCustomDecompress));  \r
+  CopyMem (&mCustomDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mCustomDecompress));\r
   return EFI_SUCCESS;\r
 }\r
 \r
index 1bb832be0291ac7acfc69e7c9b22d746325a4e2e..54f0bc22f01b50de270086a0c125d8a567136767 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php                                            \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
                                                                                           \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -15,13 +15,14 @@ Module Name:
 \r
 Abstract:\r
 \r
-  Tiano Decompress Library from HOBs \r
+  Tiano Decompress Library from HOBs\r
 \r
 --*/\r
 \r
 static DECOMPRESS_LIBRARY  mTianoDecompress;\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 DxeCoreTianoDecompressLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -39,8 +40,8 @@ Returns:
   EFI_HOB_GUID_TYPE  *GuidHob;\r
 \r
   GuidHob = GetFirstGuidHob (&gEfiTianoDecompressProtocolGuid);\r
-  ASSERT (GuidHob != NULL);   \r
-  CopyMem (&mTianoDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mTianoDecompress));  \r
+  ASSERT (GuidHob != NULL);\r
+  CopyMem (&mTianoDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mTianoDecompress));\r
   return EFI_SUCCESS;\r
 }\r
 \r
index b4bd5399757a255be955a05cb3ff76def079c78d..d0bf854fb6ccf7efea8666df7daf49095d1117b8 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -15,13 +15,14 @@ Module Name:
 \r
 Abstract:\r
 \r
-  UEFI Decompress Library from HOBs \r
+  UEFI Decompress Library from HOBs\r
 \r
 --*/\r
 \r
 static DECOMPRESS_LIBRARY  mEfiDecompress;\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 DxeCoreUefiDecompressLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -40,7 +41,7 @@ Returns:
 \r
   GuidHob = GetFirstGuidHob (&gEfiDecompressProtocolGuid);\r
   ASSERT (GuidHob != NULL);\r
-  CopyMem (&mEfiDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mEfiDecompress));  \r
+  CopyMem (&mEfiDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mEfiDecompress));\r
   return EFI_SUCCESS;\r
 }\r
 \r
index 58ad6f538c382654980ca94412b6688fc9a08afa..2436303483aa5410c9d2c9faced55c170c23268c 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
   \r
@@ -26,6 +26,7 @@ Abstract:
 --*/\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 FvbLibInitialize (\r
   IN EFI_HANDLE         ImageHandle,\r
   IN EFI_SYSTEM_TABLE   *SystemTable\r
@@ -38,7 +39,7 @@ Routine Description:
 Arguments:\r
   None\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS\r
 \r
 --*/\r
@@ -155,7 +156,7 @@ Routine Description:
   resulting attributes in output parameter\r
 \r
 Arguments:\r
-  Instance              - The FV instance whose attributes is going to be \r
+  Instance              - The FV instance whose attributes is going to be\r
                           returned\r
   Attributes            - Output buffer which contains attributes\r
 \r
@@ -177,13 +178,13 @@ EfiFvbSetVolumeAttributes (
 /*++\r
 \r
 Routine Description:\r
-  Modifies the current settings of the firmware volume according to the \r
+  Modifies the current settings of the firmware volume according to the\r
   input parameter, and returns the new setting of the volume\r
 \r
 Arguments:\r
-  Instance              - The FV instance whose attributes is going to be \r
+  Instance              - The FV instance whose attributes is going to be\r
                           modified\r
-  Attributes            - On input, it is a pointer to EFI_FVB_ATTRIBUTES \r
+  Attributes            - On input, it is a pointer to EFI_FVB_ATTRIBUTES\r
                           containing the desired firmware volume settings.\r
                           On successful return, it contains the new settings\r
                           of the firmware volume\r
@@ -211,9 +212,9 @@ Routine Description:
 Arguments:\r
   Instance              - The FV instance whose base address is going to be\r
                           returned\r
-  BaseAddress           - Pointer to a caller allocated EFI_PHYSICAL_ADDRESS \r
+  BaseAddress           - Pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
                           that on successful return, contains the base address\r
-                          of the firmware volume. \r
+                          of the firmware volume.\r
 \r
 Returns:\r
   Status code\r
@@ -249,7 +250,7 @@ Arguments:
                           BlockSize\r
 \r
 Returns:\r
-  EFI_SUCCESS           - The firmware volume was read successfully and \r
+  EFI_SUCCESS           - The firmware volume was read successfully and\r
                           contents are in Buffer\r
 \r
 --*/\r
@@ -285,7 +286,7 @@ Routine Description:
 Arguments:\r
   Instance              - The FV instance to be erased\r
   StartLba              - The starting logical block index to be erased\r
-  OffsetStartLba        - Offset into the starting block at which to \r
+  OffsetStartLba        - Offset into the starting block at which to\r
                           begin erasing\r
   LastLba               - The last logical block index to be erased\r
   OffsetLastLba         - Offset into the last block at which to end erasing\r
index 6d0a84de5e2ae63d270865e1c229f8c61c31b471..f4d9d4f39e8724c27b159e6b7bb400e740b84015 100644 (file)
@@ -1,12 +1,12 @@
 /*++\r
-Copyright (c) 2006, 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
+Copyright (c) 2006, 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
 http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+        \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
   IfrCommon.c\r
@@ -20,6 +20,7 @@ Revision History:
 --*/\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 IfrLibConstruct (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -37,12 +38,12 @@ GetCurrentLanguage (
 Routine Description:\r
 \r
   Determine what is the current language setting\r
-  \r
+\r
 Arguments:\r
-  \r
+\r
   Lang      - Pointer of system language\r
-  \r
-Returns: \r
+\r
+Returns:\r
 \r
   Status code\r
 \r
@@ -99,21 +100,21 @@ AddString (
 Routine Description:\r
 \r
   Add a string to the incoming buffer and return the token and offset data\r
-  \r
+\r
 Arguments:\r
-  \r
+\r
   StringBuffer      - The incoming buffer\r
-  \r
+\r
   Language          - Currrent language\r
-  \r
+\r
   String            - The string to be added\r
-  \r
+\r
   StringToken       - The index where the string placed\r
-  \r
-Returns: \r
+\r
+Returns:\r
 \r
   EFI_OUT_OF_RESOURCES    - No enough buffer to allocate\r
-  \r
+\r
   EFI_SUCCESS             - String successfully added to the incoming buffer\r
 \r
 --*/\r
@@ -171,11 +172,11 @@ Returns:
         //\r
         PackDestination[Index] = (UINT16) (PackDestination[Index] + sizeof (RELOFST));\r
       }\r
-      \r
+\r
       //\r
       // Add a new stringpointer in the new buffer since we are adding a string.  Null terminate it\r
       //\r
-      PackDestination[Index] = (UINT16)(PackDestination[Index-1] + \r
+      PackDestination[Index] = (UINT16)(PackDestination[Index-1] +\r
                                         StrSize((CHAR16 *)((CHAR8 *)(StringPack) + PackSource[Index-1])));\r
       PackDestination[Index + 1] = (UINT16) 0;\r
 \r
@@ -206,7 +207,7 @@ Returns:
         Destination = Destination + StrSize ((CHAR16 *) Source);\r
         Source      = Source + StrSize ((CHAR16 *) Source);\r
       }\r
-      \r
+\r
       //\r
       // This copies the new string to the destination buffer\r
       //\r
@@ -238,7 +239,7 @@ Returns:
     StringPackBuffer  = (EFI_HII_STRING_PACK *) ((CHAR8 *) (StringPackBuffer) + StringPack->Header.Length);\r
     StringPack        = (EFI_HII_STRING_PACK *) ((CHAR8 *) (StringPack) + StringPack->Header.Length);\r
   }\r
-  \r
+\r
   //\r
   // If we didn't copy the new data to a stringpack yet\r
   //\r
@@ -316,17 +317,17 @@ AddOpCode (
 Routine Description:\r
 \r
   Add op-code data to the FormBuffer\r
-  \r
+\r
 Arguments:\r
-  \r
+\r
   FormBuffer      - Form buffer to be inserted to\r
-  \r
+\r
   OpCodeData      - Op-code data to be inserted\r
-  \r
-Returns: \r
+\r
+Returns:\r
 \r
   EFI_OUT_OF_RESOURCES    - No enough buffer to allocate\r
-  \r
+\r
   EFI_SUCCESS             - Op-code data successfully inserted\r
 \r
 --*/\r
@@ -432,12 +433,12 @@ GetHiiInterface (
 Routine Description:\r
 \r
   Get the HII protocol interface\r
-  \r
+\r
 Arguments:\r
-  \r
+\r
   Hii     - HII protocol interface\r
-  \r
-Returns: \r
+\r
+Returns:\r
 \r
   Status code\r
 \r
@@ -470,27 +471,27 @@ ExtractDataFromHiiHandle (
 Routine Description:\r
 \r
   Extract information pertaining to the HiiHandle\r
-  \r
+\r
 Arguments:\r
-  \r
+\r
   HiiHandle       - Hii handle\r
-  \r
+\r
   ImageLength     - For input, length of DefaultImage;\r
                     For output, length of actually required\r
-                    \r
+\r
   DefaultImage    - Image buffer prepared by caller\r
-  \r
+\r
   Guid            - Guid information about the form\r
-  \r
-Returns: \r
+\r
+Returns:\r
 \r
   EFI_OUT_OF_RESOURCES    - No enough buffer to allocate\r
-  \r
+\r
   EFI_BUFFER_TOO_SMALL    - DefualtImage has no enough ImageLength\r
-  \r
+\r
   EFI_SUCCESS             - Successfully extract data from Hii database.\r
-  \r
-  \r
+\r
+\r
 --*/\r
 {\r
   EFI_STATUS        Status;\r
@@ -581,7 +582,7 @@ Returns:
 \r
     Index = RawData[Index + 1] + Index;\r
   }\r
-    \r
+\r
   //\r
   // Return an error if buffer is too small\r
   //\r
@@ -649,9 +650,9 @@ Routine Description:
   Finds HII handle for given pack GUID previously registered with the HII.\r
 \r
 Arguments:\r
-  HiiProtocol - pointer to pointer to HII protocol interface. \r
+  HiiProtocol - pointer to pointer to HII protocol interface.\r
                 If NULL, the interface will be found but not returned.\r
-                If it points to NULL, the interface will be found and \r
+                If it points to NULL, the interface will be found and\r
                 written back to the pointer that is pointed to.\r
   Guid        - The GUID of the pack that registered with the HII.\r
 \r
@@ -766,7 +767,7 @@ Routine Description:
   Validate that the data associated with the HiiHandle in NVRAM is within\r
   the reasonable parameters for that FormSet.  Values for strings and passwords\r
   are not verified due to their not having the equivalent of valid range settings.\r
-  \r
+\r
 Arguments:\r
 \r
   HiiHandle -   Handle of the HII database entry to query\r
@@ -774,11 +775,11 @@ Arguments:
   Results -     If return Status is EFI_SUCCESS, Results provides valid data\r
                 TRUE  = NVRAM Data is within parameters\r
                 FALSE = NVRAM Data is NOT within parameters\r
-  \r
-Returns: \r
+\r
+Returns:\r
 \r
   EFI_OUT_OF_RESOURCES      - No enough buffer to allocate\r
-  \r
+\r
   EFI_SUCCESS               - Data successfully validated\r
 --*/\r
 {\r
@@ -880,7 +881,7 @@ Returns:
 \r
     Index = RawData[Index + 1] + Index;\r
   }\r
-    \r
+\r
   //\r
   // Allocate memory for our File Form Tags\r
   //\r
index d06e57a6d7252e3e8b30a1f9fcc01cb82e22dcef..47446d3a4317d55e65ea8567b32cfcc36810e42e 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -25,8 +25,9 @@ Abstract:
 EFI_PEI_PE_COFF_LOADER_PROTOCOL  *mPeiEfiPeiPeCoffLoader;\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 PeCoffLoaderConstructor (\r
-  IN EFI_FFS_FILE_HEADER       *FfsHeader,\r
+  IN EFI_FFS_FILE_HEADER      *FfsHeader,\r
   IN EFI_PEI_SERVICES          **PeiServices\r
   )\r
 {\r