]>
Commit | Line | Data |
---|---|---|
504214c4 | 1 | /** @file\r |
88f20127 | 2 | \r |
346cf9ac LG |
3 | FVB Extension protocol provides one extended service to FVB protocol defined in PI specification.\r |
4 | This service can erase the specified range of a firmware volume block.\r | |
504214c4 LG |
5 | \r |
6 | Copyright (c) 2006 - 2008, Intel Corporation\r | |
88f20127 | 7 | All rights reserved. This program and the accompanying materials\r |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
504214c4 | 15 | **/\r |
88f20127 | 16 | \r |
17 | #ifndef __FVB_EXTENSION_H__\r | |
18 | #define __FVB_EXTENSION_H__\r | |
19 | \r | |
20 | #define EFI_FVB_EXTENSION_PROTOCOL_GUID \\r | |
21 | {0x53a4c71b, 0xb581, 0x4170, {0x91, 0xb3, 0x8d, 0xb8, 0x7a, 0x4b, 0x5c, 0x46 } }\r | |
22 | \r | |
23 | typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL;\r | |
24 | \r | |
25 | //\r | |
26 | // FVB Extension Function Prototypes\r | |
27 | //\r | |
5f597758 | 28 | /**\r |
346cf9ac | 29 | Erases and initializes a specified range of a firmware volume block.\r |
5f597758 LG |
30 | \r |
31 | @param[in] This Pointer to the FVB Extension protocol instance\r | |
32 | @param[in] StartLba The starting logical block index to be erased\r | |
346cf9ac | 33 | @param[in] OffsetStartLba Offset into the starting block at which to begin erasing \r |
5f597758 LG |
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 | |
346cf9ac | 41 | partially erased.\r |
504214c4 | 42 | **/\r |
88f20127 | 43 | typedef\r |
44 | EFI_STATUS\r | |
7d839888 | 45 | (EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK)(\r |
88f20127 | 46 | IN EFI_FVB_EXTENSION_PROTOCOL *This,\r |
5f597758 LG |
47 | IN EFI_LBA StartLba,\r |
48 | IN UINTN OffsetStartLba,\r | |
49 | IN EFI_LBA LastLba,\r | |
50 | IN UINTN OffsetLastLba\r | |
88f20127 | 51 | );\r |
52 | \r | |
53 | //\r | |
504214c4 | 54 | // FVB Extension PROTOCOL\r |
88f20127 | 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 |