X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FPi%2FPiSmmCis.h;h=6cb28b7fb2c9aee7e028b45bb03fa4c5dd81205c;hp=597eeb90869c2a1bdf65431178aaeddfb4d36f90;hb=08855193cafebaa2e071ffb5f083bcb3cb6d4df0;hpb=8fc71decbe7ada34f96f04261e680265ce916a51 diff --git a/MdePkg/Include/Pi/PiSmmCis.h b/MdePkg/Include/Pi/PiSmmCis.h index 597eeb9086..6cb28b7fb2 100644 --- a/MdePkg/Include/Pi/PiSmmCis.h +++ b/MdePkg/Include/Pi/PiSmmCis.h @@ -1,9 +1,9 @@ /** @file - Common definitions in the Platform Initialization Specification version 1.2 + Common definitions in the Platform Initialization Specification version 1.4a VOLUME 4 System Management Mode Core Interface version. - Copyright (c) 2009 - 2010, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -19,16 +19,6 @@ #include #include -/// -/// Note: -/// To avoid name conflict between PI and Framework SMM spec, the following names defined -/// in PI 1.2 SMM spec are renamed. These renamings are not yet in a public PI spec and errta. -/// -/// EFI_SMM_SYSTEM_TABLE -> EFI_SMM_SYSTEM_TABLE2 -/// EFI_SMM_SYSTEM_TABLE_REVISION -> EFI_SMM_SYSTEM_TABLE2_REVISION -/// EFI_SMM_INSTALL_CONFIGURATION_TABLE -> EFI_SMM_INSTALL_CONFIGURATION_TABLE2 -/// - typedef struct _EFI_SMM_SYSTEM_TABLE2 EFI_SMM_SYSTEM_TABLE2; /// @@ -36,9 +26,11 @@ typedef struct _EFI_SMM_SYSTEM_TABLE2 EFI_SMM_SYSTEM_TABLE2; /// #define SMM_SMST_SIGNATURE SIGNATURE_32 ('S', 'M', 'S', 'T') /// -/// The System Management System Table (SMST) revision is 1.0 +/// The System Management System Table (SMST) revision is 1.4 /// -#define EFI_SMM_SYSTEM_TABLE2_REVISION ((1 << 16) | (0x00)) +#define SMM_SPECIFICATION_MAJOR_REVISION 1 +#define SMM_SPECIFICATION_MINOR_REVISION 40 +#define EFI_SMM_SYSTEM_TABLE2_REVISION ((SMM_SPECIFICATION_MAJOR_REVISION<<16) | (SMM_SPECIFICATION_MINOR_REVISION)) /** Adds, updates, or removes a configuration table entry from the System Management System Table. @@ -68,15 +60,15 @@ EFI_STATUS ); /** - The SmmStartupThisAp() lets the caller to get one distinct application processor - (AP) in the enabled processor pool to execute a caller-provided code stream - while in SMM. It runs the given code on this processor and reports the status. - It must be noted that the supplied code stream will be run only on an enabled - processor which has also entered SMM. + This service lets the caller to get one distinct application processor (AP) to execute + a caller-provided code stream while in SMM. - @param[in] Procedure A pointer to the code stream to be run on the designated AP of the system. - @param[in] CpuNumber The zero-based index of the processor number of the AP on which the code stream is supposed to run. - @param[in,out] ProcArguments Allow the caller to pass a list of parameters to the code that is run by the AP. + @param[in] Procedure A pointer to the code stream to be run on the designated + AP of the system. + @param[in] CpuNumber The zero-based index of the processor number of the AP + on which the code stream is supposed to run. + @param[in,out] ProcArguments Allows the caller to pass a list of parameters to the code + that is run by the AP. @retval EFI_SUCCESS The call was successful and the return parameters are valid. @retval EFI_INVALID_PARAMETER The input arguments are out of range. @@ -114,14 +106,17 @@ EFI_STATUS The SmmRegisterProtocolNotify() function creates a registration Function that is to be called whenever a protocol interface is installed for Protocol by SmmInstallProtocolInterface(). + If Function == NULL and Registration is an existing registration, then the callback is unhooked. @param[in] Protocol The unique ID of the protocol for which the event is to be registered. @param[in] Function Points to the notification function. @param[out] Registration A pointer to a memory location to receive the registration value. - @retval EFI_SUCCESS Successfully returned the registration record that has been added. - @retval EFI_INVALID_PARAMETER One or more of Protocol, Function and Registration is NULL. + @retval EFI_SUCCESS Successfully returned the registration record + that has been added or unhooked. + @retval EFI_INVALID_PARAMETER Protocol is NULL or Registration is NULL. @retval EFI_OUT_OF_RESOURCES Not enough memory resource to finish the request. + @retval EFI_NOT_FOUND If the registration is not found when Function == NULL. **/ typedef EFI_STATUS @@ -139,10 +134,10 @@ EFI_STATUS @param[in,out] CommBuffer Points to the optional communication buffer. @param[in,out] CommBufferSize Points to the size of the optional communication buffer. - @retval EFI_SUCCESS Interrupt source was processed successfully but not quiesced. + @retval EFI_WARN_INTERRUPT_SOURCE_PENDING Interrupt source was processed successfully but not quiesced. @retval EFI_INTERRUPT_PENDING One or more SMI sources could not be quiesced. - @retval EFI_WARN_INTERRUPT_SOURCE_PENDING Interrupt source was not handled or quiesced. - @retval EFI_WARN_INTERRUPT_SOURCE_QUIESCED Interrupt source was handled and quiesced. + @retval EFI_NOT_FOUND Interrupt source was not handled or quiesced. + @retval EFI_SUCCESS Interrupt source was handled and quiesced. **/ typedef EFI_STATUS @@ -183,7 +178,7 @@ EFI_STATUS /** Registers a handler to execute within SMM. - @param[in] Handler Handler service funtion pointer. + @param[in] Handler Handler service function pointer. @param[in] HandlerType Points to the handler type or NULL for root SMI handlers. @param[out] DispatchHandle On return, contains a unique handle which can be used to later unregister the handler function. @@ -224,7 +219,7 @@ typedef struct _EFI_SMM_ENTRY_CONTEXT { /// UINTN CurrentlyExecutingCpu; /// - /// The number of current operational processors in the platform. This is a 1 based + /// The number of possible processors in the platform. This is a 1 based /// counter. This does not indicate the number of processors that entered SMM. /// UINTN NumberOfCpus; @@ -305,7 +300,7 @@ struct _EFI_SMM_SYSTEM_TABLE2 { /// UINTN CurrentlyExecutingCpu; /// - /// The number of current operational processors in the platform. This is a 1 based counter. + /// The number of possible processors in the platform. This is a 1 based counter. /// UINTN NumberOfCpus; ///