diff options
Diffstat (limited to 'EDK/Foundation/Protocol/FvbExtension')
-rw-r--r-- | EDK/Foundation/Protocol/FvbExtension/FvbExtension.c | 29 | ||||
-rw-r--r-- | EDK/Foundation/Protocol/FvbExtension/FvbExtension.h | 53 |
2 files changed, 82 insertions, 0 deletions
diff --git a/EDK/Foundation/Protocol/FvbExtension/FvbExtension.c b/EDK/Foundation/Protocol/FvbExtension/FvbExtension.c new file mode 100644 index 0000000..6bc312c --- /dev/null +++ b/EDK/Foundation/Protocol/FvbExtension/FvbExtension.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + FvbExtension.c + +Abstract: + + IPMI Extension Protocol to extend the FVB functionality to multiple erase blocks + at different block offsets. + + +--*/ + +#include "Tiano.h" +#include EFI_PROTOCOL_DEFINITION(FvbExtension) + +EFI_GUID gEfiFvbExtensionProtocolGuid = EFI_FVB_EXTENSION_PROTOCOL_GUID; + +EFI_GUID_STRING(&gEfiFvbExtensionProtocolGuid, "FVB EXTENSION", "FVB EXTENSION"); diff --git a/EDK/Foundation/Protocol/FvbExtension/FvbExtension.h b/EDK/Foundation/Protocol/FvbExtension/FvbExtension.h new file mode 100644 index 0000000..90dac56 --- /dev/null +++ b/EDK/Foundation/Protocol/FvbExtension/FvbExtension.h @@ -0,0 +1,53 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + FvbExtension.h + +Abstract: + + FVB Extension protocol that extends the FVB Class in a component fashion. + +--*/ + +#ifndef _FVB_EXTENSION_H_ +#define _FVB_EXTENSION_H_ + +#define EFI_FVB_EXTENSION_PROTOCOL_GUID \ + {0x53a4c71b, 0xb581, 0x4170, 0x91, 0xb3, 0x8d, 0xb8, 0x7a, 0x4b, 0x5c, 0x46 } + +EFI_FORWARD_DECLARATION (EFI_FVB_EXTENSION_PROTOCOL); + +// +// FVB Extension Function Prototypes +// +typedef +EFI_STATUS +(EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK) ( + IN EFI_FVB_EXTENSION_PROTOCOL *This, + IN EFI_LBA StartLba, + IN UINTN OffsetStartLba, + IN EFI_LBA LastLba, + IN UINTN OffsetLastLba +); + +// +// IPMI TRANSPORT PROTOCOL +// +typedef struct _EFI_FVB_EXTENSION_PROTOCOL { + EFI_FV_ERASE_CUSTOM_BLOCK EraseFvbCustomBlock; + } EFI_FVB_EXTENSION_PROTOCOL; + +extern EFI_GUID gEfiFvbExtensionProtocolGuid; + +#endif + |