]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | \r | |
3 | FVB Extension protocol that extends the FVB Class in a component fashion.\r | |
4 | \r | |
5 | Copyright (c) 2006 - 2008, Intel Corporation\r | |
6 | All rights reserved. This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef __FVB_EXTENSION_H__\r | |
17 | #define __FVB_EXTENSION_H__\r | |
18 | \r | |
19 | #define EFI_FVB_EXTENSION_PROTOCOL_GUID \\r | |
20 | {0x53a4c71b, 0xb581, 0x4170, {0x91, 0xb3, 0x8d, 0xb8, 0x7a, 0x4b, 0x5c, 0x46 } }\r | |
21 | \r | |
22 | typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL;\r | |
23 | \r | |
24 | //\r | |
25 | // FVB Extension Function Prototypes\r | |
26 | //\r | |
27 | /**\r | |
28 | Erases and initializes a specified range of a firmware volume block\r | |
29 | \r | |
30 | @param[in] This Pointer to the FVB Extension protocol instance\r | |
31 | @param[in] StartLba The starting logical block index to be erased\r | |
32 | @param[in] OffsetStartLba Offset into the starting block at which to \r | |
33 | begin erasing \r | |
34 | @param[in] LastLba The last logical block index to be erased\r | |
35 | @param[in] OffsetLastLba Offset into the last block at which to end erasing \r | |
36 | \r | |
37 | @retval EFI_SUCCESS The specified range was erased successfully\r | |
38 | @retval EFI_ACCESS_DENIED The firmware volume block is in the WriteDisabled state\r | |
39 | @retval EFI_DEVICE_ERROR The block device is not functioning correctly and \r | |
40 | could not be written. Firmware device may have been\r | |
41 | partially erased\r | |
42 | **/\r | |
43 | typedef\r | |
44 | EFI_STATUS\r | |
45 | (EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK)(\r | |
46 | IN EFI_FVB_EXTENSION_PROTOCOL *This,\r | |
47 | IN EFI_LBA StartLba,\r | |
48 | IN UINTN OffsetStartLba,\r | |
49 | IN EFI_LBA LastLba,\r | |
50 | IN UINTN OffsetLastLba\r | |
51 | );\r | |
52 | \r | |
53 | //\r | |
54 | // FVB Extension PROTOCOL\r | |
55 | //\r | |
56 | struct _EFI_FVB_EXTENSION_PROTOCOL {\r | |
57 | EFI_FV_ERASE_CUSTOM_BLOCK EraseFvbCustomBlock;\r | |
58 | };\r | |
59 | \r | |
60 | extern EFI_GUID gEfiFvbExtensionProtocolGuid;\r | |
61 | \r | |
62 | #endif\r | |
63 | \r |