Changeset 77662 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Protocol/SmmControl2.h
- Timestamp:
- Mar 12, 2019 12:40:12 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129295
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776 /vendor/edk2/current 103735-103757,103769-103776,129194-129237
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Protocol/SmmControl2.h
r58466 r77662 12 12 these signals. 13 13 14 Copyright (c) 2009 - 201 1, Intel Corporation. All rights reserved.<BR>14 Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR> 15 15 This program and the accompanying materials 16 16 are licensed and made available under the terms and conditions of the BSD License … … 26 26 #define _SMM_CONTROL2_H_ 27 27 28 #include <P iDxe.h>28 #include <Protocol/MmControl.h> 29 29 30 #define EFI_SMM_CONTROL2_PROTOCOL_GUID \ 31 { \ 32 0x843dc720, 0xab1e, 0x42cb, {0x93, 0x57, 0x8a, 0x0, 0x78, 0xf3, 0x56, 0x1b} \ 33 } 30 #define EFI_SMM_CONTROL2_PROTOCOL_GUID EFI_MM_CONTROL_PROTOCOL_GUID 34 31 35 typedef struct _EFI_SMM_CONTROL2_PROTOCOL EFI_SMM_CONTROL2_PROTOCOL;36 typedef UINTNEFI_SMM_PERIOD;32 typedef EFI_MM_CONTROL_PROTOCOL EFI_SMM_CONTROL2_PROTOCOL; 33 typedef EFI_MM_PERIOD EFI_SMM_PERIOD; 37 34 38 /** 39 Invokes SMI activation from either the preboot or runtime environment. 35 typedef EFI_MM_ACTIVATE EFI_SMM_ACTIVATE2; 40 36 41 This function generates an SMI. 42 43 @param[in] This The EFI_SMM_CONTROL2_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. 49 50 @retval EFI_SUCCESS The SMI/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 SMM base service has not been initialized. 55 **/ 56 typedef 57 EFI_STATUS 58 (EFIAPI *EFI_SMM_ACTIVATE2)( 59 IN CONST EFI_SMM_CONTROL2_PROTOCOL *This, 60 IN OUT UINT8 *CommandPort OPTIONAL, 61 IN OUT UINT8 *DataPort OPTIONAL, 62 IN BOOLEAN Periodic OPTIONAL, 63 IN UINTN ActivationInterval OPTIONAL 64 ); 65 66 /** 67 Clears any system state that was created in response to the Trigger() call. 68 69 This function acknowledges and causes the deassertion of the SMI activation source. 70 71 @param[in] This The EFI_SMM_CONTROL2_PROTOCOL instance. 72 @param[in] Periodic Optional parameter to repeat at this period one time 73 74 @retval EFI_SUCCESS The SMI/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. 77 **/ 78 typedef 79 EFI_STATUS 80 (EFIAPI *EFI_SMM_DEACTIVATE2)( 81 IN CONST EFI_SMM_CONTROL2_PROTOCOL *This, 82 IN BOOLEAN Periodic OPTIONAL 83 ); 84 85 /// 86 /// The EFI_SMM_CONTROL2_PROTOCOL is produced by a runtime driver. It provides an 87 /// abstraction of the platform hardware that generates an SMI. There are often I/O ports that, when 88 /// accessed, will generate the SMI. Also, the hardware optionally supports the periodic generation of 89 /// these signals. 90 /// 91 struct _EFI_SMM_CONTROL2_PROTOCOL { 92 EFI_SMM_ACTIVATE2 Trigger; 93 EFI_SMM_DEACTIVATE2 Clear; 94 /// 95 /// Minimum interval at which the platform can set the period. A maximum is not 96 /// specified in that the SMM infrastructure code can emulate a maximum interval that is 97 /// greater than the hardware capabilities by using software emulation in the SMM 98 /// infrastructure code. 99 /// 100 EFI_SMM_PERIOD MinimumTriggerPeriod; 101 }; 102 37 typedef EFI_MM_DEACTIVATE EFI_SMM_DEACTIVATE2; 103 38 extern EFI_GUID gEfiSmmControl2ProtocolGuid; 104 39
Note:
See TracChangeset
for help on using the changeset viewer.