3 Copyright (c) 2006 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Header file for Crc32SectionExtract.c
19 Please refer to the Framewokr Firmware Volume Specification 0.9.
23 #ifndef _CRC32_GUIDED_SECTION_EXTRACTION_H
24 #define _CRC32_GUIDED_SECTION_EXTRACTION_H
27 // The package level header files this module uses
31 // The protocols, PPI and GUID defintions for this module
33 #include <Protocol/SecurityPolicy.h>
34 #include <Protocol/GuidedSectionExtaction.h>
36 // The Library classes this module consumes
38 #include <Library/MemoryAllocationLib.h>
39 #include <Library/DebugLib.h>
40 #include <Library/UefiDriverEntryPoint.h>
41 #include <Library/BaseMemoryLib.h>
42 #include <Library/UefiBootServicesTableLib.h>
45 EFI_GUID_DEFINED_SECTION GuidedSectionHeader
;
47 } CRC32_SECTION_HEADER
;
50 // Function prototype declarations
56 IN EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL
*This
,
57 IN VOID
*InputSection
,
58 OUT VOID
**OutputBuffer
,
59 OUT UINTN
*OutputSize
,
60 OUT UINT32
*AuthenticationStatus
66 TODO: Add function description
70 This - TODO: add argument description
71 InputSection - TODO: add argument description
72 OutputBuffer - TODO: add argument description
73 OutputSize - TODO: add argument description
74 AuthenticationStatus - TODO: add argument description
78 TODO: add return values
85 InitializeCrc32GuidedSectionExtractionProtocol (
86 IN EFI_HANDLE ImageHandle
,
87 IN EFI_SYSTEM_TABLE
*SystemTable
93 Entry point of the CRC32 GUIDed section extraction protocol.
94 Creates and initializes an instance of the GUIDed section
95 extraction protocol with CRC32 GUID.
99 ImageHandle EFI_HANDLE: A handle for the image that is initializing
101 SystemTable EFI_SYSTEM_TABLE: A pointer to the EFI system table
105 EFI_SUCCESS: Driver initialized successfully
106 EFI_LOAD_ERROR: Failed to Initialize or has been loaded
107 EFI_OUT_OF_RESOURCES: Could not allocate needed resources