Perfected MSA files.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Apr 2007 05:09:57 +0000 (05:09 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Apr 2007 05:09:57 +0000 (05:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2552 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Universal/Capsule/RuntimeDxe/CapsuleRuntime.msa
EdkModulePkg/Universal/Capsule/RuntimeDxe/CapsuleService.c
EdkModulePkg/Universal/ConPlatform/Dxe/ConPlatform.msa
EdkModulePkg/Universal/EmuVariable/RuntimeDxe/EmuVariable.msa
EdkModulePkg/Universal/Variable/Pei/Variable.c
EdkModulePkg/Universal/Variable/Pei/Variable.h
EdkModulePkg/Universal/Variable/RuntimeDxe/Variable.msa
EdkModulePkg/Universal/Variable/RuntimeDxe/VariableIpf.msa

index 8529864..b7b946e 100644 (file)
@@ -64,6 +64,9 @@
   </Protocols>\r
   <Guids>\r
     <GuidCNames Usage="ALWAYS_CONSUMED">\r
+      <GuidCName>gEfiCapsuleGuid</GuidCName>\r
+    </GuidCNames>\r
+    <GuidCNames Usage="SOMETIMES_CONSUMED">\r
       <GuidCName>gEfiCapsuleVendorGuid</GuidCName>\r
     </GuidCNames>\r
   </Guids>\r
index 50de4c6..0e7a9d4 100644 (file)
@@ -21,9 +21,7 @@ Abstract:
 \r
 #include "CapsuleService.h"\r
 \r
-\r
-STATIC EFI_GUID mEfiCapsuleHeaderGuid = EFI_CAPSULE_GUID;\r
-\r
+extern EFI_GUID gEfiCapsuleGuid;\r
 \r
 EFI_STATUS\r
 EFIAPI\r
@@ -78,7 +76,7 @@ Returns:
     if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
-    if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {\r
+    if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &gEfiCapsuleGuid)) {\r
       if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {\r
         return EFI_UNSUPPORTED;\r
       }\r
@@ -206,7 +204,7 @@ Returns:
     if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
-    if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {\r
+    if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &gEfiCapsuleGuid)) {\r
       if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {\r
         return EFI_UNSUPPORTED;\r
       }\r
index c00a95c..a4300e5 100644 (file)
     <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
   </PackageDependencies>\r
   <Protocols>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiConsoleInDeviceGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiConsoleOutDeviceGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="BY_START">\r
+      <ProtocolCName>gEfiStandardErrorDeviceGuid</ProtocolCName>\r
+    </Protocol>\r
     <Protocol Usage="TO_START">\r
       <ProtocolCName>gEfiSimpleTextOutProtocolGuid</ProtocolCName>\r
     </Protocol>\r
     <Protocol Usage="TO_START">\r
       <ProtocolCName>gEfiDevicePathProtocolGuid</ProtocolCName>\r
     </Protocol>\r
+    <Protocol Usage="TO_START">\r
+      <ProtocolCName>gEfiHotPlugDeviceGuid</ProtocolCName>\r
+    </Protocol>\r
   </Protocols>\r
   <Variables>\r
     <Variable Usage="SOMETIMES_CONSUMED">\r
       <VariableName>0x0043 0x006F 0x006E 0x0049 0x006E 0x0044 0x0065 0x0076</VariableName>\r
-      <GuidC_Name>gConInDevGuid</GuidC_Name>\r
+      <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>\r
+      <HelpText>L"ConInDev" global variable will be updated if the serial device is not a hot plug device.</HelpText>\r
     </Variable>\r
     <Variable Usage="SOMETIMES_CONSUMED">\r
       <VariableName>0x0043 0x006F 0x006E 0x0049 0x006E</VariableName>\r
-      <GuidC_Name>gConInGuid</GuidC_Name>\r
+      <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>\r
+      <HelpText>L"ConIn" global variable will be updated if the serial device is not a hot plug device.</HelpText>\r
     </Variable>\r
     <Variable Usage="SOMETIMES_CONSUMED">\r
       <VariableName>0x0043 0x006F 0x006E 0x004F 0x0075 0x0074 0x0044 0x0065 0x0076</VariableName>\r
-      <GuidC_Name>gConOutDevGuid</GuidC_Name>\r
+      <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>\r
+      <HelpText>L"ConOutDev" global variable will be updated if the serial device is not a hot plug device.</HelpText>\r
     </Variable>\r
     <Variable Usage="SOMETIMES_CONSUMED">\r
       <VariableName>0x0043 0x006F 0x006E 0x004F 0x0075 0x0074</VariableName>\r
-      <GuidC_Name>gConOutGuid</GuidC_Name>\r
+      <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>\r
+      <HelpText>L"ConOut" global variable will be updated if the serial device is not a hot plug device.</HelpText>\r
     </Variable>\r
     <Variable Usage="SOMETIMES_CONSUMED">\r
       <VariableName>0x0045 0x0072 0x0072 0x004F 0x0075 0x0074 0x0044 0x0065 0x0076</VariableName>\r
-      <GuidC_Name>gErrOutDevGuid</GuidC_Name>\r
+      <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>\r
+      <HelpText>L"ErrOutDev" global variable will be updated if the serial device is not a hot plug device.</HelpText>\r
     </Variable>\r
     <Variable Usage="SOMETIMES_CONSUMED">\r
       <VariableName>0x0045 0x0072 0x0072 0x004F 0x0075 0x0074</VariableName>\r
-      <GuidC_Name>gErrOutGuid</GuidC_Name>\r
+      <GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>\r
+      <HelpText>L"ErrOut" global variable will be updated if the serial device is not a hot plug device.</HelpText>\r
     </Variable>\r
   </Variables>\r
   <Guids>\r
-    <GuidCNames Usage="SOMETIMES_PRODUCED">\r
-      <GuidCName>gEfiConsoleInDeviceGuid</GuidCName>\r
-    </GuidCNames>\r
-    <GuidCNames Usage="SOMETIMES_PRODUCED">\r
-      <GuidCName>gEfiConsoleOutDeviceGuid</GuidCName>\r
-    </GuidCNames>\r
-    <GuidCNames Usage="SOMETIMES_PRODUCED">\r
-      <GuidCName>gEfiStandardErrorDeviceGuid</GuidCName>\r
-    </GuidCNames>\r
-    <GuidCNames Usage="SOMETIMES_CONSUMED">\r
-      <GuidCName>gEfiHotPlugDeviceGuid</GuidCName>\r
-    </GuidCNames>\r
     <GuidCNames Usage="SOMETIMES_CONSUMED">\r
       <GuidCName>gEfiGlobalVariableGuid</GuidCName>\r
     </GuidCNames>\r
index 1fbf8da..6e769aa 100644 (file)
     <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
   </PackageDependencies>\r
   <Protocols>\r
-    <Protocol Usage="ALWAYS_CONSUMED" SupArchList="IA32 X64">\r
+    <Protocol Usage="ALWAYS_PRODUCED" SupArchList="IA32 X64">\r
       <ProtocolCName>gEfiVariableWriteArchProtocolGuid</ProtocolCName>\r
     </Protocol>\r
-    <Protocol Usage="ALWAYS_CONSUMED" SupArchList="IA32 X64">\r
+    <Protocol Usage="ALWAYS_PRODUCED" SupArchList="IA32 X64">\r
       <ProtocolCName>gEfiVariableArchProtocolGuid</ProtocolCName>\r
     </Protocol>\r
   </Protocols>\r
index 0660419..a2ea1d6 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
 Copyright (c) 2006 - 2007 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
+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
 Module Name:\r
 \r
   Variable.c\r
@@ -34,7 +34,7 @@ static EFI_PEI_PPI_DESCRIPTOR     mPpiListVariable = {
   &mVariablePpi\r
 };\r
 \r
-EFI_GUID gEfiVariableIndexTableGuid = EFI_VARIABLE_INDEX_TABLE_GUID;\r
+EFI_GUID mEfiVariableIndexTableGuid = EFI_VARIABLE_INDEX_TABLE_GUID;\r
 \r
 EFI_STATUS\r
 EFIAPI\r
@@ -265,9 +265,9 @@ Returns:
   //\r
   MaxIndex = 0;\r
 \r
-  GuidHob = GetFirstGuidHob (&gEfiVariableIndexTableGuid);\r
+  GuidHob = GetFirstGuidHob (&mEfiVariableIndexTableGuid);\r
   if (GuidHob == NULL) {\r
-    IndexTable = BuildGuidHob (&gEfiVariableIndexTableGuid, sizeof (VARIABLE_INDEX_TABLE));\r
+    IndexTable = BuildGuidHob (&mEfiVariableIndexTableGuid, sizeof (VARIABLE_INDEX_TABLE));\r
     IndexTable->Length      = 0;\r
     IndexTable->StartPtr    = NULL;\r
     IndexTable->EndPtr      = NULL;\r
index 519fcf9..5cebff8 100644 (file)
@@ -61,7 +61,6 @@ typedef struct {
   UINT16          Index[VARIABLE_INDEX_TABLE_VOLUME];\r
 } VARIABLE_INDEX_TABLE;\r
 \r
-extern EFI_GUID gEfiVariableIndexTableGuid;\r
 \r
 //\r
 // Functions\r
index 3607bc4..56f19b0 100644 (file)
     <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
   </PackageDependencies>\r
   <Protocols>\r
-    <Protocol Usage="ALWAYS_CONSUMED">\r
+    <Protocol Usage="ALWAYS_PRODUCED">\r
       <ProtocolCName>gEfiVariableArchProtocolGuid</ProtocolCName>\r
     </Protocol>\r
-    <Protocol Usage="ALWAYS_CONSUMED">\r
+    <Protocol Usage="ALWAYS_PRODUCED">\r
       <ProtocolCName>gEfiVariableWriteArchProtocolGuid</ProtocolCName>\r
     </Protocol>\r
-    <Protocol Usage="ALWAYS_CONSUMED">\r
+    <Protocol Usage="SOMETIMES_CONSUMED">\r
       <ProtocolCName>gEfiFaultTolerantWriteLiteProtocolGuid</ProtocolCName>\r
     </Protocol>\r
-    <Protocol Usage="ALWAYS_CONSUMED">\r
+    <Protocol Usage="SOMETIMES_CONSUMED">\r
       <ProtocolCName>gEfiFirmwareVolumeBlockProtocolGuid</ProtocolCName>\r
     </Protocol>\r
   </Protocols>\r
index 564fc61..741689f 100644 (file)
     <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
   </PackageDependencies>\r
   <Protocols>\r
-    <Protocol Usage="ALWAYS_CONSUMED">\r
+    <Protocol Usage="SOMETIMES_CONSUMED">\r
       <ProtocolCName>gEfiFaultTolerantWriteLiteProtocolGuid</ProtocolCName>\r
     </Protocol>\r
-    <Protocol Usage="ALWAYS_CONSUMED">\r
+    <Protocol Usage="SOMETIMES_CONSUMED">\r
       <ProtocolCName>gEfiFirmwareVolumeBlockProtocolGuid</ProtocolCName>\r
     </Protocol>\r
     <Protocol Usage="ALWAYS_CONSUMED">\r