]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
f57387d5 HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 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 | GuidedSectionExtraction.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | GUIDed section extraction protocol as defined in the Tiano File\r | |
19 | Image Format specification.\r | |
20 | \r | |
21 | This interface provides a means of decoding a GUID defined encapsulation \r | |
22 | section. There may be multiple different GUIDs associated with the GUIDed\r | |
23 | section extraction protocol. That is, all instances of the GUIDed section\r | |
24 | extraction protocol must have the same interface structure.\r | |
25 | \r | |
26 | --*/\r | |
27 | \r | |
28 | #ifndef _GUIDED_SECTION_EXTRACTION_PROTOCOL_H\r | |
29 | #define _GUIDED_SECTION_EXTRACTION_PROTOCOL_H\r | |
30 | \r | |
31 | #include "EfiFirmwareFileSystem.h"\r | |
32 | \r | |
33 | //\r | |
34 | // Protocol GUID definition. Each GUIDed section extraction protocol has the\r | |
35 | // same interface but with different GUID. All the GUIDs is defined here.\r | |
36 | // May add multiple GUIDs here.\r | |
37 | //\r | |
38 | #define EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID \\r | |
39 | { \\r | |
7ccf38a3 | 40 | 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83} \\r |
3eb9473e | 41 | }\r |
42 | \r | |
43 | //\r | |
44 | // Forward reference for pure ANSI compatability\r | |
45 | //\r | |
46 | EFI_FORWARD_DECLARATION (EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL);\r | |
47 | \r | |
48 | //\r | |
49 | // Protocol member functions\r | |
50 | //\r | |
51 | typedef\r | |
52 | EFI_STATUS\r | |
53 | (EFIAPI *EFI_EXTRACT_GUIDED_SECTION) (\r | |
c7f33ca4 | 54 | IN EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL * This,\r |
3eb9473e | 55 | IN VOID *InputSection,\r |
56 | OUT VOID **OutputBuffer,\r | |
57 | OUT UINTN *OutputSize,\r | |
58 | OUT UINT32 *AuthenticationStatus\r | |
59 | );\r | |
60 | \r | |
61 | //\r | |
62 | // Protocol definition\r | |
63 | //\r | |
9c092841 | 64 | struct _EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL {\r |
3eb9473e | 65 | EFI_EXTRACT_GUIDED_SECTION ExtractSection;\r |
9c092841 | 66 | };\r |
3eb9473e | 67 | \r |
68 | //\r | |
69 | // may add other GUID here\r | |
70 | //\r | |
71 | extern EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid;\r | |
72 | \r | |
73 | #endif\r |