]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add definition on SmmStatusCodeProtocol to comply the SMMCIS spec to fix the bug...
authorjchen20 <jchen20@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jul 2009 09:17:18 +0000 (09:17 +0000)
committerjchen20 <jchen20@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jul 2009 09:17:18 +0000 (09:17 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8834 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Include/Framework/Hob.h
IntelFrameworkPkg/Include/Framework/PeiCis.h
IntelFrameworkPkg/Include/Protocol/SmmStatusCode.h [new file with mode: 0644]
IntelFrameworkPkg/IntelFrameworkPkg.dec

index b26cb4ea2859fe7b306fef6420fdc91caeddb6c6..c8e9914a7eb5f2b8e9b3d245f5ae5a2dc0b946be 100644 (file)
@@ -24,6 +24,8 @@
 \r
 ///\r
 /// Capsule volume HOB -- identical to a firmware volume\r
+/// This macro is defined  to comply with hob Framework Spec. And the marco has been\r
+/// retired in PI1.0 spec.  \r
 ///\r
 #define EFI_HOB_TYPE_CV           0x0008\r
 \r
index 629800569f5f98e0aae05a72f088ccb8a6a20ae2..5dc2f9c529abc7db54da7c7df27d1675f2e64d56 100644 (file)
@@ -180,9 +180,9 @@ struct _FRAMEWORK_EFI_PEI_SERVICES {
   EFI_PEI_RESET_SYSTEM              ResetSystem;\r
   ///\r
   /// Inconsistent with specification here: \r
-  /// In Framework Spec, PeiCis0.91, CpuIo and PciCfg is NOT pointers. it should be  \r
-  /// a typo error in spec..\r
+  /// In Framework Spec, PeiCis0.91, CpuIo and PciCfg is NOT pointers. \r
   ///\r
+  \r
   //\r
   // I/O Abstractions\r
   //\r
diff --git a/IntelFrameworkPkg/Include/Protocol/SmmStatusCode.h b/IntelFrameworkPkg/Include/Protocol/SmmStatusCode.h
new file mode 100644 (file)
index 0000000..c2b9e70
--- /dev/null
@@ -0,0 +1,83 @@
+/** @file\r
+  Provides the parent dispatch service for a given SMI source generator.\r
+  The EFI_SMM_ICHN_DISPATCH_PROTOCOL provides the ability to install child handlers for\r
+  the given event types.\r
+\r
+  Copyright (c) 2008 - 2009, 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:  SmmStatusCode.h\r
+\r
+  @par Revision Reference:\r
+  This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
+  Version 0.9.\r
+\r
+**/\r
+\r
+#ifndef _EFI_SMM_ICHN_DISPATCH_H_\r
+#define _EFI_SMM_ICHN_DISPATCH_H_\r
+\r
+#include <PiDxe.h>\r
+#include <Pi/PiStatusCode.h>\r
+\r
+//\r
+// Global ID for the Smm Status code Protocol\r
+//\r
+#define EFI_SMM_STATUS_CODE_PROTOCOL_GUID \\r
+  { \\r
+    0x6afd2b77, 0x98c1, 0x4acd, {0xa6, 0xf9, 0x8a, 0x94, 0x39, 0xde, 0xf, 0xb1 } \\r
+  }\r
+\r
+typedef struct _EFI_SMM_STATUS_CODE_PROTOCOL  EFI_SMM_STATUS_CODE_PROTOCOL;\r
+\r
+\r
+/**\r
+  Unregister a child SMI source dispatch function with a parent SMM driver\r
+\r
+  @param  This                  Points to this instance of the EFI_SMM_STATUS_CODE_PROTOCOL.\r
+  @param  CodeType              Indicates the type of status code being reported.\r
+  @param  Value                 Describes the current status of a hardware or software entity. \r
+                                This status includes information about the class and subclass \r
+                                that is used to classify the entity, as well as an operation. \r
+                                For progress codes, the operation is the current activity. For \r
+                                error codes, it is the exception. For debug codes, it is not defined \r
+                                at this time.\r
+  @param  Instance              The enumeration of a hardware or software entity within the system. \r
+                                A system may contain multiple entities that match a class/subclass pairing.                                 \r
+  @param  CallerId              This optional parameter may be used to identify the caller. This parameter \r
+                                allows the status code driver to apply different rules to different callers.\r
+  @param  Data                  This optional parameter may be used to pass additional data.\r
\r
\r
+  @retval EFI_SUCCESS           The function completed successfully.\r
+  @retval EFI_DEVICE_ERROR      The function should not be completed due to a device error.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_SMM_REPORT_STATUS_CODE) (\r
+  IN EFI_SMM_STATUS_CODE_PROTOCOL              *This,\r
+  IN EFI_STATUS_CODE_TYPE                       CodeType,\r
+  IN EFI_STATUS_CODE_VALUE                      Value, \r
+  IN UINT32                                     Instance,\r
+  IN EFI_GUID                                  *CallerId,\r
+  IN EFI_STATUS_CODE_DATA                      *Data OPTIONAL\r
+);\r
+\r
+\r
+/**\r
+  The EFI_SMM_STATUS_CODE_PROTOCOL provides the basic status code services while in SMRAM.\r
+ **/\r
+struct _EFI_SMM_STATUS_CODE_PROTOCOL {\r
+   EFI_SMM_REPORT_STATUS_CODE ReportStatusCode; ///< Allows for the SMM agent to produce a status code output.\r
+};\r
+\r
+extern EFI_GUID gEfiSmmStatusCodeProtocolGuid;\r
+\r
+#endif\r
index 65e497ff2fac27f075996cfc43576c7aa94eb2bf..33305d275a4f3870855e288578fe53449b0110f5 100644 (file)
   ## Include/Protocol/SmmIchnDispatch.h\r
   gEfiSmmIchnDispatchProtocolGuid = { 0xc50b323e, 0x9075, 0x4f2a, { 0xac, 0x8e, 0xd2, 0x59, 0x6a, 0x10, 0x85, 0xcc }}\r
   \r
+  ## Include/Protocol/SmmStatusCode.h\r
+  gEfiSmmStatusCodeProtocolGuid = { 0x6afd2b77, 0x98c1, 0x4acd, {0xa6, 0xf9, 0x8a, 0x94, 0x39, 0xde, 0xf, 0xb1 }}\r
+  \r
   ## Include/Protocol/FrameworkFormCallback.h\r
   gEfiFormCallbackProtocolGuid   = { 0xF3E4543D, 0xCF35, 0x6CEF, { 0x35, 0xC4, 0x4F, 0xE6, 0x34, 0x4D, 0xFC, 0x54 }}\r
   \r