]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/Crc32SectionExtract.h
Make EdkModulePkg pass Intel IPF compiler with /W4 /WX switches, solving warning...
[mirror_edk2.git] / EdkModulePkg / Universal / FirmwareVolume / GuidedSectionExtraction / Crc32SectionExtract / Dxe / Crc32SectionExtract.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, 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 Tiano File Image Format specification \r
20 FV spec 0.3.6\r
21\r
22--*/\r
23\r
24#ifndef _CRC32_GUIDED_SECTION_EXTRACTION_H\r
25#define _CRC32_GUIDED_SECTION_EXTRACTION_H\r
26\r
27typedef struct {\r
28 EFI_GUID_DEFINED_SECTION GuidedSectionHeader;\r
29 UINT32 CRC32Checksum;\r
30} CRC32_SECTION_HEADER;\r
31\r
32//\r
33// Function prototype declarations\r
34//\r
35STATIC\r
36EFI_STATUS\r
2bbf72b0 37EFIAPI\r
878ddf1f 38Crc32ExtractSection (\r
39 IN EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,\r
40 IN VOID *InputSection,\r
41 OUT VOID **OutputBuffer,\r
42 OUT UINTN *OutputSize,\r
43 OUT UINT32 *AuthenticationStatus\r
44 )\r
45/*++\r
46\r
47Routine Description:\r
48\r
49 TODO: Add function description\r
50\r
51Arguments:\r
52\r
53 This - TODO: add argument description\r
54 InputSection - TODO: add argument description\r
55 OutputBuffer - TODO: add argument description\r
56 OutputSize - TODO: add argument description\r
57 AuthenticationStatus - TODO: add argument description\r
58\r
59Returns:\r
60\r
61 TODO: add return values\r
62\r
63--*/\r
64;\r
65\r
92dda53e 66EFI_STATUS\r
67EFIAPI\r
68InitializeCrc32GuidedSectionExtractionProtocol (\r
69 IN EFI_HANDLE ImageHandle,\r
70 IN EFI_SYSTEM_TABLE *SystemTable\r
71 )\r
72/*++\r
73\r
74Routine Description: \r
75\r
76 Entry point of the CRC32 GUIDed section extraction protocol. \r
77 Creates and initializes an instance of the GUIDed section \r
78 extraction protocol with CRC32 GUID.\r
79\r
80Arguments: \r
81\r
82 ImageHandle EFI_HANDLE: A handle for the image that is initializing \r
83 this driver\r
84 SystemTable EFI_SYSTEM_TABLE: A pointer to the EFI system table \r
85\r
86Returns: \r
87\r
88 EFI_SUCCESS: Driver initialized successfully\r
89 EFI_LOAD_ERROR: Failed to Initialize or has been loaded \r
90 EFI_OUT_OF_RESOURCES: Could not allocate needed resources\r
91\r
92--*/\r
93;\r
94\r
878ddf1f 95#endif\r