2 EFI MM Control Protocol as defined in the PI 1.5 specification.
4 This protocol is used initiate synchronous MMI activations. This protocol could be published by a
5 processor driver to abstract the MMI IPI or a driver which abstracts the ASIC that is supporting the
6 APM port. Because of the possibility of performing MMI IPI transactions, the ability to generate this
7 event from a platform chipset agent is an optional capability for both IA-32 and x64-based systems.
9 The EFI_MM_CONTROL_PROTOCOL is produced by a runtime driver. It provides an
10 abstraction of the platform hardware that generates an MMI. There are often I/O ports that, when
11 accessed, will generate the MMI. Also, the hardware optionally supports the periodic generation of
14 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
15 This program and the accompanying materials
16 are licensed and made available under the terms and conditions of the BSD License
17 which accompanies this distribution. The full text of the license may be found at
18 http://opensource.org/licenses/bsd-license.php
20 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
21 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
25 #ifndef _MM_CONTROL_H_
26 #define _MM_CONTROL_H_
30 #define EFI_MM_CONTROL_PROTOCOL_GUID \
32 0x843dc720, 0xab1e, 0x42cb, {0x93, 0x57, 0x8a, 0x0, 0x78, 0xf3, 0x56, 0x1b} \
35 typedef struct _EFI_MM_CONTROL_PROTOCOL EFI_MM_CONTROL_PROTOCOL
;
36 typedef UINTN EFI_MM_PERIOD
;
39 Invokes MMI activation from either the preboot or runtime environment.
41 This function generates an MMI.
43 @param[in] This The EFI_MM_CONTROL_PROTOCOL instance.
44 @param[in,out] CommandPort The value written to the command port.
45 @param[in,out] DataPort The value written to the data port.
46 @param[in] Periodic Optional mechanism to engender a periodic stream.
47 @param[in] ActivationInterval Optional parameter to repeat at this period one
48 time or, if the Periodic Boolean is set, periodically.
50 @retval EFI_SUCCESS The MMI/PMI has been engendered.
51 @retval EFI_DEVICE_ERROR The timing is unsupported.
52 @retval EFI_INVALID_PARAMETER The activation period is unsupported.
53 @retval EFI_INVALID_PARAMETER The last periodic activation has not been cleared.
54 @retval EFI_NOT_STARTED The MM base service has not been initialized.
58 (EFIAPI
*EFI_MM_ACTIVATE
)(
59 IN CONST EFI_MM_CONTROL_PROTOCOL
*This
,
60 IN OUT UINT8
*CommandPort OPTIONAL
,
61 IN OUT UINT8
*DataPort OPTIONAL
,
62 IN BOOLEAN Periodic OPTIONAL
,
63 IN UINTN ActivationInterval OPTIONAL
67 Clears any system state that was created in response to the Trigger() call.
69 This function acknowledges and causes the deassertion of the MMI activation source.
71 @param[in] This The EFI_MM_CONTROL_PROTOCOL instance.
72 @param[in] Periodic Optional parameter to repeat at this period one time
74 @retval EFI_SUCCESS The MMI/PMI has been engendered.
75 @retval EFI_DEVICE_ERROR The source could not be cleared.
76 @retval EFI_INVALID_PARAMETER The service did not support the Periodic input argument.
80 (EFIAPI
*EFI_MM_DEACTIVATE
)(
81 IN CONST EFI_MM_CONTROL_PROTOCOL
*This
,
82 IN BOOLEAN Periodic OPTIONAL
86 /// The EFI_MM_CONTROL_PROTOCOL is produced by a runtime driver. It provides an
87 /// abstraction of the platform hardware that generates an MMI. There are often I/O ports that, when
88 /// accessed, will generate the MMI. Also, the hardware optionally supports the periodic generation of
91 struct _EFI_MM_CONTROL_PROTOCOL
{
92 EFI_MM_ACTIVATE Trigger
;
93 EFI_MM_DEACTIVATE Clear
;
95 /// Minimum interval at which the platform can set the period. A maximum is not
96 /// specified in that the MM infrastructure code can emulate a maximum interval that is
97 /// greater than the hardware capabilities by using software emulation in the MM
98 /// infrastructure code.
100 EFI_MM_PERIOD MinimumTriggerPeriod
;
103 extern EFI_GUID gEfiMmControlProtocolGuid
;