]>
Commit | Line | Data |
---|---|---|
1 | /*++\r | |
2 | \r | |
3 | Copyright (c) 2006 - 2007, 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 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 | |
26 | #include <PiDxe.h>\r | |
27 | #include <Protocol/SecurityPolicy.h>\r | |
28 | #include <Protocol/Crc32GuidedSectionExtraction.h>\r | |
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 | |
35 | \r | |
36 | \r | |
37 | typedef 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 | |
45 | STATIC\r | |
46 | EFI_STATUS\r | |
47 | EFIAPI\r | |
48 | Crc32ExtractSection (\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 | |
57 | Routine Description:\r | |
58 | \r | |
59 | TODO: Add function description\r | |
60 | \r | |
61 | Arguments:\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 | |
69 | Returns:\r | |
70 | \r | |
71 | TODO: add return values\r | |
72 | \r | |
73 | --*/\r | |
74 | ;\r | |
75 | \r | |
76 | EFI_STATUS\r | |
77 | EFIAPI\r | |
78 | InitializeCrc32GuidedSectionExtractionProtocol (\r | |
79 | IN EFI_HANDLE ImageHandle,\r | |
80 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
81 | )\r | |
82 | /*++\r | |
83 | \r | |
84 | Routine 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 | |
90 | Arguments: \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 | |
96 | Returns: \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 |