]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
Update to fix minor coding style issues.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / SectionExtraction / CoreSectionExtraction.c
index 7ed011cb494fa5461e3b3b542eeb8262b3e670b1..48143507e4b28448dab48ccf6c2df7a120c78edc 100644 (file)
      \r
   3) A support protocol is not found, and the data is not available to be read\r
      without it.  This results in EFI_PROTOCOL_ERROR.\r
-     \r
-Copyright (c) 2006 - 2008, 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
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\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
 **/\r
 \r
@@ -115,13 +115,12 @@ typedef struct {
   @retval FALSE                  The child doesn't match\r
 \r
 **/\r
-STATIC\r
 BOOLEAN\r
 ChildIsType (\r
-  IN CORE_SECTION_STREAM_NODE                 *Stream,\r
-  IN CORE_SECTION_CHILD_NODE                  *Child,\r
-  IN EFI_SECTION_TYPE                         SearchType,\r
-  IN EFI_GUID                                 *SectionDefinitionGuid\r
+  IN CORE_SECTION_STREAM_NODE *Stream,\r
+  IN CORE_SECTION_CHILD_NODE  *Child,\r
+  IN EFI_SECTION_TYPE         SearchType,\r
+  IN EFI_GUID                 *SectionDefinitionGuid\r
   );\r
 \r
 #if 0\r
@@ -134,19 +133,18 @@ ChildIsType (
                                  identify the relevent encapsulation...\r
 \r
 **/\r
-STATIC\r
 VOID\r
 EFIAPI\r
 NotifyGuidedExtraction (\r
-  IN  EFI_EVENT                             Event,\r
-  IN  VOID                                  *RpnContext\r
+  IN   EFI_EVENT   Event,\r
+  IN   VOID        *RpnContext\r
   );\r
 #endif\r
 \r
 #if 0\r
 /**\r
   Worker function.  Constructor for RPN event if needed to keep AuthenticationStatus\r
-  cache correct when a missing GUIDED_SECTION_EXTRACTION_PROTOCOL appears.\r
+  cache correct when a missing GUIDED_SECTION_EXTRACTION_PROTOCOL appears...\r
 \r
   @param  ParentStream           Indicates the parent of the ecnapsulation \r
                                  section (child) \r
@@ -154,11 +152,10 @@ NotifyGuidedExtraction (
                                  encapsulation section.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 CreateGuidedExtractionRpnEvent (\r
-  IN CORE_SECTION_STREAM_NODE                 *ParentStream,\r
-  IN CORE_SECTION_CHILD_NODE                  *ChildNode\r
+  IN CORE_SECTION_STREAM_NODE       *ParentStream,\r
+  IN CORE_SECTION_CHILD_NODE        *ChildNode\r
   );\r
 #endif\r
 \r
@@ -174,11 +171,10 @@ CreateGuidedExtractionRpnEvent (
                                  database.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 FindStreamNode (\r
-  IN  UINTN                                   SearchHandle,\r
-  OUT CORE_SECTION_STREAM_NODE                **FoundStream\r
+  IN  UINTN                                     SearchHandle,\r
+  OUT CORE_SECTION_STREAM_NODE                  **FoundStream\r
   );\r
   \r
 /**\r
@@ -207,16 +203,15 @@ FindStreamNode (
                                  does not exist\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 FindChildNode (\r
-  IN     CORE_SECTION_STREAM_NODE             *SourceStream,\r
-  IN     EFI_SECTION_TYPE                     SearchType,\r
-  IN     UINTN                                *SectionInstance,\r
-  IN     EFI_GUID                             *SectionDefinitionGuid,\r
-  OUT    CORE_SECTION_CHILD_NODE              **FoundChild,\r
-  OUT    CORE_SECTION_STREAM_NODE             **FoundStream,\r
-  OUT    UINT32                               *AuthenticationStatus\r
+  IN     CORE_SECTION_STREAM_NODE                   *SourceStream,\r
+  IN     EFI_SECTION_TYPE                           SearchType,\r
+  IN OUT UINTN                                      *SectionInstance,\r
+  IN     EFI_GUID                                   *SectionDefinitionGuid,\r
+  OUT    CORE_SECTION_CHILD_NODE                    **FoundChild,\r
+  OUT    CORE_SECTION_STREAM_NODE                   **FoundStream,\r
+  OUT    UINT32                                     *AuthenticationStatus\r
   );\r
   \r
 /**\r
@@ -240,12 +235,11 @@ FindChildNode (
                                  returned by OpenSectionStreamEx.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CreateChildNode (\r
-  IN     CORE_SECTION_STREAM_NODE             *Stream,\r
-  IN     UINT32                               ChildOffset,\r
-  OUT    CORE_SECTION_CHILD_NODE              **ChildNode\r
+  IN     CORE_SECTION_STREAM_NODE              *Stream,\r
+  IN     UINT32                                ChildOffset,\r
+     OUT CORE_SECTION_CHILD_NODE               **ChildNode\r
   );\r
   \r
 /**\r
@@ -254,10 +248,9 @@ CreateChildNode (
   @param  ChildNode              Indicates the node to destroy\r
 \r
 **/\r
-STATIC\r
 VOID\r
 FreeChildNode (\r
-  IN  CORE_SECTION_CHILD_NODE                 *ChildNode\r
+  IN  CORE_SECTION_CHILD_NODE                   *ChildNode\r
   );\r
   \r
 /**\r
@@ -293,14 +286,13 @@ FreeChildNode (
   @retval EFI_OUT_OF_RESOURCES   memory allocation failed.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 OpenSectionStreamEx (\r
-  IN     UINTN                                SectionStreamLength,\r
-  IN     VOID                                 *SectionStream,\r
-  IN     BOOLEAN                              AllocateBuffer,\r
-  IN     UINT32                               AuthenticationStatus,   \r
-     OUT UINTN                                *SectionStreamHandle\r
+  IN     UINTN                                     SectionStreamLength,\r
+  IN     VOID                                      *SectionStream,\r
+  IN     BOOLEAN                                   AllocateBuffer,\r
+  IN     UINT32                                    AuthenticationStatus,   \r
+     OUT UINTN                                     *SectionStreamHandle\r
   );\r
   \r
 /**\r
@@ -312,11 +304,10 @@ OpenSectionStreamEx (
   @return A boolean value indicating the validness of the section stream.\r
 \r
 **/\r
-STATIC\r
 BOOLEAN\r
 IsValidSectionStream (\r
-  IN  VOID                                    *SectionStream,\r
-  IN  UINTN                                   SectionStreamLength\r
+  IN  VOID              *SectionStream,\r
+  IN  UINTN             SectionStreamLength\r
   );\r
 \r
 /**\r
@@ -406,7 +397,7 @@ IsValidSectionStream (
 EFI_STATUS\r
 EFIAPI\r
 CustomGuidedSectionExtract (\r
-  IN CONST  EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL  *This,\r
+  IN CONST  EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,\r
   IN CONST  VOID                                   *InputSection,\r
   OUT       VOID                                   **OutputBuffer,\r
   OUT       UINTN                                  *OutputSize,\r
@@ -729,7 +720,6 @@ CloseSectionStream (
   @retval FALSE                  The child doesn't match\r
 \r
 **/\r
-STATIC\r
 BOOLEAN\r
 ChildIsType (\r
   IN CORE_SECTION_STREAM_NODE *Stream,\r
@@ -781,7 +771,6 @@ ChildIsType (
                                  does not exist\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 FindChildNode (\r
   IN     CORE_SECTION_STREAM_NODE                   *SourceStream,\r
@@ -933,7 +922,6 @@ FindChildNode (
                                  returned by OpenSectionStreamEx.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CreateChildNode (\r
   IN     CORE_SECTION_STREAM_NODE              *Stream,\r
@@ -1176,7 +1164,6 @@ CreateChildNode (
                                  encapsulation section.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 CreateGuidedExtractionRpnEvent (\r
   IN CORE_SECTION_STREAM_NODE       *ParentStream,\r
@@ -1216,7 +1203,6 @@ CreateGuidedExtractionRpnEvent (
                                  identify the relevent encapsulation...\r
 \r
 **/\r
-STATIC\r
 VOID\r
 EFIAPI\r
 NotifyGuidedExtraction (\r
@@ -1287,7 +1273,6 @@ NotifyGuidedExtraction (
   @param  ChildNode              Indicates the node to destroy\r
 \r
 **/\r
-STATIC\r
 VOID\r
 FreeChildNode (\r
   IN  CORE_SECTION_CHILD_NODE                   *ChildNode\r
@@ -1347,7 +1332,6 @@ FreeChildNode (
   @retval EFI_OUT_OF_RESOURCES   memory allocation failed.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 OpenSectionStreamEx (\r
   IN     UINTN                                     SectionStreamLength,\r
@@ -1433,7 +1417,6 @@ OpenSectionStreamEx (
                                  database.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 FindStreamNode (\r
   IN  UINTN                                     SearchHandle,\r
@@ -1470,7 +1453,6 @@ FindStreamNode (
   @return A boolean value indicating the validness of the section stream.\r
 \r
 **/\r
-STATIC\r
 BOOLEAN\r
 IsValidSectionStream (\r
   IN  VOID              *SectionStream,\r