]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c
Code Scrub for Dxe Core.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / DxeMain / DxeProtocolNotify.c
index 42a7a054e60b68a7a49551f591a5081bc3889a6c..3b0c6eb3efd2aac0386a9a7f055e6885d632ed4f 100644 (file)
@@ -1,10 +1,9 @@
-/** @file \r
-\r
+/** @file\r
   This file deals with Architecture Protocol (AP) registration in\r
   the Dxe Core. The mArchProtocols[] array represents a list of\r
   events that represent the Architectural Protocols.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\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
@@ -37,7 +36,7 @@ ARCHITECTURAL_PROTOCOL_ENTRY  mArchProtocols[] = {
   { &gEfiRuntimeArchProtocolGuid,          (VOID **)&gRuntime,       NULL, NULL, FALSE },\r
   { &gEfiVariableArchProtocolGuid,         (VOID **)NULL,            NULL, NULL, FALSE },\r
   { &gEfiVariableWriteArchProtocolGuid,    (VOID **)NULL,            NULL, NULL, FALSE },\r
-  { &gEfiCapsuleArchProtocolGuid,          (VOID **)NULL,            NULL, NULL, FALSE},\r
+  { &gEfiCapsuleArchProtocolGuid,          (VOID **)NULL,            NULL, NULL, FALSE },\r
   { &gEfiMonotonicCounterArchProtocolGuid, (VOID **)NULL,            NULL, NULL, FALSE },\r
   { &gEfiResetArchProtocolGuid,            (VOID **)NULL,            NULL, NULL, FALSE },\r
   { &gEfiRealTimeClockArchProtocolGuid,    (VOID **)NULL,            NULL, NULL, FALSE },\r
@@ -49,8 +48,7 @@ ARCHITECTURAL_PROTOCOL_ENTRY  mArchProtocols[] = {
 /**\r
   Return TRUE if all AP services are availible.\r
 \r
-\r
-  @retval EFI_SUCCESS    All AP services are available \r
+  @retval EFI_SUCCESS    All AP services are available\r
   @retval EFI_NOT_FOUND  At least one AP service is not available\r
 \r
 **/\r
@@ -78,11 +76,10 @@ CoreAllEfiServicesAvailable (
   present flag to TRUE. If any constructor is required it is executed. The EFI\r
   System Table headers are updated.\r
 \r
-  @param  Event          The Event that is being processed, not used. \r
+  @param  Event          The Event that is being processed, not used.\r
   @param  Context        Event Context, not used.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 EFIAPI\r
 GenericArchProtocolNotify (\r
@@ -172,7 +169,6 @@ GenericArchProtocolNotify (
 \r
 \r
 \r
-\r
 /**\r
   Creates an event that is fired everytime a Protocol of a specific type is installed.\r
 \r
@@ -220,7 +216,7 @@ typedef struct {
   CHAR16                       *GuidString;\r
 } GUID_TO_STRING_PROTOCOL_ENTRY;\r
 \r
-static const GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = {\r
+CONST GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = {\r
   { &gEfiSecurityArchProtocolGuid,         (CHAR16 *)L"Security"           },\r
   { &gEfiCpuArchProtocolGuid,              (CHAR16 *)L"CPU"                },\r
   { &gEfiMetronomeArchProtocolGuid,        (CHAR16 *)L"Metronome"          },\r
@@ -233,7 +229,6 @@ static const GUID_TO_STRING_PROTOCOL_ENTRY MissingProtocols[] = {
   { &gEfiCapsuleArchProtocolGuid,          (CHAR16 *)L"Capsule"            },\r
   { &gEfiMonotonicCounterArchProtocolGuid, (CHAR16 *)L"Monotonic Counter"  },\r
   { &gEfiResetArchProtocolGuid,            (CHAR16 *)L"Reset"              },\r
-//  { &gEfiStatusCodeRuntimeProtocolGuid,       (CHAR16 *)L"Status Code"        },\r
   { &gEfiRealTimeClockArchProtocolGuid,    (CHAR16 *)L"Real Time Clock"    }\r
 };\r
 \r
@@ -248,7 +243,7 @@ CoreDisplayMissingArchProtocols (
   VOID\r
   )\r
 {\r
-  const GUID_TO_STRING_PROTOCOL_ENTRY  *MissingEntry;\r
+  CONST GUID_TO_STRING_PROTOCOL_ENTRY  *MissingEntry;\r
   ARCHITECTURAL_PROTOCOL_ENTRY         *Entry;\r
 \r
   for (Entry = mArchProtocols; Entry->ProtocolGuid != NULL; Entry++) {\r