1. Sync the latest network stack. Add NetLibCreateIPv4DPathNode () in netlib library.
[mirror_edk2.git] / MdeModulePkg / Universal / FirmwareVolume / Crc32SectionExtractDxe / Crc32SectionExtract.h
CommitLineData
d7dec593 1/*++\r
2\r
3Copyright (c) 2006 - 2007, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 Crc32SectionExtract.h\r
15 \r
16Abstract:\r
17\r
18 Header file for Crc32SectionExtract.c\r
19 Please refer to the Framewokr Firmware Volume Specification 0.9.\r
20\r
21--*/\r
22\r
23#ifndef _CRC32_GUIDED_SECTION_EXTRACTION_H\r
24#define _CRC32_GUIDED_SECTION_EXTRACTION_H\r
25\r
d7dec593 26#include <PiDxe.h>\r
d7dec593 27#include <Protocol/SecurityPolicy.h>\r
b2e26e83 28#include <Protocol/Crc32GuidedSectionExtraction.h>\r
d7dec593 29#include <Library/MemoryAllocationLib.h>\r
30#include <Library/DebugLib.h>\r
31#include <Library/UefiDriverEntryPoint.h>\r
32#include <Library/BaseMemoryLib.h>\r
33#include <Library/UefiBootServicesTableLib.h>\r
34\r
ba237732
A
35\r
36\r
d7dec593 37typedef struct {\r
38 EFI_GUID_DEFINED_SECTION GuidedSectionHeader;\r
39 UINT32 CRC32Checksum;\r
40} CRC32_SECTION_HEADER;\r
41\r
42//\r
43// Function prototype declarations\r
44//\r
45STATIC\r
46EFI_STATUS\r
47EFIAPI\r
48Crc32ExtractSection (\r
49 IN EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,\r
50 IN VOID *InputSection,\r
51 OUT VOID **OutputBuffer,\r
52 OUT UINTN *OutputSize,\r
53 OUT UINT32 *AuthenticationStatus\r
54 )\r
55/*++\r
56\r
57Routine Description:\r
58\r
59 TODO: Add function description\r
60\r
61Arguments:\r
62\r
63 This - TODO: add argument description\r
64 InputSection - TODO: add argument description\r
65 OutputBuffer - TODO: add argument description\r
66 OutputSize - TODO: add argument description\r
67 AuthenticationStatus - TODO: add argument description\r
68\r
69Returns:\r
70\r
71 TODO: add return values\r
72\r
73--*/\r
74;\r
75\r
76EFI_STATUS\r
77EFIAPI\r
78InitializeCrc32GuidedSectionExtractionProtocol (\r
79 IN EFI_HANDLE ImageHandle,\r
80 IN EFI_SYSTEM_TABLE *SystemTable\r
81 )\r
82/*++\r
83\r
84Routine Description: \r
85\r
86 Entry point of the CRC32 GUIDed section extraction protocol. \r
87 Creates and initializes an instance of the GUIDed section \r
88 extraction protocol with CRC32 GUID.\r
89\r
90Arguments: \r
91\r
92 ImageHandle EFI_HANDLE: A handle for the image that is initializing \r
93 this driver\r
94 SystemTable EFI_SYSTEM_TABLE: A pointer to the EFI system table \r
95\r
96Returns: \r
97\r
98 EFI_SUCCESS: Driver initialized successfully\r
99 EFI_LOAD_ERROR: Failed to Initialize or has been loaded \r
100 EFI_OUT_OF_RESOURCES: Could not allocate needed resources\r
101\r
102--*/\r
103;\r
104\r
105#endif\r