]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | Crc32SectionExtract.h\r | |
15 | \r | |
16 | Abstract:\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 | |
27 | typedef 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 | |
35 | STATIC\r | |
36 | EFI_STATUS\r | |
2bbf72b0 | 37 | EFIAPI\r |
878ddf1f | 38 | Crc32ExtractSection (\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 | |
47 | Routine Description:\r | |
48 | \r | |
49 | TODO: Add function description\r | |
50 | \r | |
51 | Arguments:\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 | |
59 | Returns:\r | |
60 | \r | |
61 | TODO: add return values\r | |
62 | \r | |
63 | --*/\r | |
64 | ;\r | |
65 | \r | |
92dda53e | 66 | EFI_STATUS\r |
67 | EFIAPI\r | |
68 | InitializeCrc32GuidedSectionExtractionProtocol (\r | |
69 | IN EFI_HANDLE ImageHandle,\r | |
70 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
71 | )\r | |
72 | /*++\r | |
73 | \r | |
74 | Routine 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 | |
80 | Arguments: \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 | |
86 | Returns: \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 |