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>
35 #include <Protocol/Crc32GuidedSectionExtraction.h>
37 // The Library classes this module consumes
39 #include <Library/MemoryAllocationLib.h>
40 #include <Library/DebugLib.h>
41 #include <Library/UefiDriverEntryPoint.h>
42 #include <Library/BaseMemoryLib.h>
43 #include <Library/UefiBootServicesTableLib.h>
46 EFI_GUID_DEFINED_SECTION GuidedSectionHeader
;
48 } CRC32_SECTION_HEADER
;
51 // Function prototype declarations
57 IN EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL
*This
,
58 IN VOID
*InputSection
,
59 OUT VOID
**OutputBuffer
,
60 OUT UINTN
*OutputSize
,
61 OUT UINT32
*AuthenticationStatus
67 TODO: Add function description
71 This - TODO: add argument description
72 InputSection - TODO: add argument description
73 OutputBuffer - TODO: add argument description
74 OutputSize - TODO: add argument description
75 AuthenticationStatus - TODO: add argument description
79 TODO: add return values
86 InitializeCrc32GuidedSectionExtractionProtocol (
87 IN EFI_HANDLE ImageHandle
,
88 IN EFI_SYSTEM_TABLE
*SystemTable
94 Entry point of the CRC32 GUIDed section extraction protocol.
95 Creates and initializes an instance of the GUIDed section
96 extraction protocol with CRC32 GUID.
100 ImageHandle EFI_HANDLE: A handle for the image that is initializing
102 SystemTable EFI_SYSTEM_TABLE: A pointer to the EFI system table
106 EFI_SUCCESS: Driver initialized successfully
107 EFI_LOAD_ERROR: Failed to Initialize or has been loaded
108 EFI_OUT_OF_RESOURCES: Could not allocate needed resources