]>
Commit | Line | Data |
---|---|---|
8a2d4996 | 1 | /** @file\r |
2 | The EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL is related to EDK II-specific implementation \r | |
3 | and used to abstract the swap operation of boot block and backup block of FV in EFI \r | |
4 | SMM environment. This swap is especially needed when updating the boot block of FV. \r | |
5 | If a power failure happens during the boot block update, the swapped backup block \r | |
6 | (now the boot block) can boot the machine with the old boot block backed up in it. \r | |
7 | The swap operation is platform dependent, so other protocols such as SMM FTW (Fault \r | |
8 | Tolerant Write) should use this protocol instead of handling hardware directly.\r | |
9 | \r | |
10 | Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r | |
11 | This program and the accompanying materials are licensed and made available under \r | |
12 | the terms and conditions of the BSD License that accompanies this distribution. \r | |
13 | The full text of the license may be found at\r | |
14 | http://opensource.org/licenses/bsd-license.php. \r | |
15 | \r | |
16 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
17 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
18 | \r | |
19 | **/\r | |
20 | \r | |
21 | #ifndef __SMM_SWAP_ADDRESS_RANGE_H__\r | |
22 | #define __SMM_SWAP_ADDRESS_RANGE_H__\r | |
23 | \r | |
24 | #include <Protocol/SwapAddressRange.h>\r | |
25 | \r | |
26 | #define EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL_GUID \\r | |
27 | { \\r | |
28 | 0x67c4f112, 0x3385, 0x4e55, { 0x9c, 0x5b, 0xc0, 0x5b, 0x71, 0x7c, 0x42, 0x28 } \\r | |
29 | }\r | |
30 | \r | |
31 | //\r | |
32 | // SMM Swap Address Range protocol structure is the same as Swap Address Range protocol. \r | |
33 | // The SMM one is intend to run in SMM environment, which means it can be used by \r | |
34 | // SMM drivers after ExitPmAuth. \r | |
35 | // \r | |
36 | typedef EFI_SWAP_ADDRESS_RANGE_PROTOCOL EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL;\r | |
37 | \r | |
38 | extern EFI_GUID gEfiSmmSwapAddressRangeProtocolGuid;\r | |
39 | \r | |
40 | #endif\r |