]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/Decompress.h
Changed the name of the SPD to .nspd so as not to break the build if someone runs...
[mirror_edk2.git] / MdePkg / Include / Ppi / Decompress.h
CommitLineData
5879b875 1/* @file\r
2 Provides decompression services to the PEI Foundatoin.\r
3\r
4 Copyright (c) 2006, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13 Module Name: Decompress.h\r
14\r
15 @par Revision Reference:\r
16 This PPI is defined in PI Version 1.00.\r
17\r
18**/\r
19\r
20#ifndef __DECOMPRESS_PPI_H__\r
21#define __DECOMPRESS_PPI_H__\r
22\r
23#define EFI_PEI_DECOMPRESS_PPI_GUID \\r
24 { 0x1a36e4e7, 0xfab6, 0x476a, { 0x8e, 0x75, 0x69, 0x5a, 0x5, 0x76, 0xfd, 0xd7 } }\r
25\r
26typedef struct _EFI_PEI_DECOMPRESS_PPI EFI_PEI_DECOMPRESS_PPI;;\r
27\r
28/** \r
29 Decompresses the data in a compressed section and returns it\r
30 as a series of standard PI Firmware File Sections. The\r
31 required memory is allocated from permanent memory.\r
32\r
33 @param This Points to this instance of the\r
34 EFI_PEI_DECOMPRESS_PEI PPI. InputSection Points to\r
35 the compressed section.\r
36\r
37 @param OutputBuffer Holds the returned pointer to the\r
38 decompressed sections.\r
39\r
40 @param OutputSize Holds the returned size of the decompress\r
41 section streams.\r
42\r
43 @retval EFI_SUCCESS The section was decompressed\r
44 successfully. OutputBuffer contains the\r
45 resulting data and OutputSize contains\r
46 the resulting size.\r
47\r
48 @retval EFI_OUT_OF_RESOURCES Unable to allocate sufficient\r
49 memory to hold the decompressed data.\r
50\r
51 @retval EFI_UNSUPPORTED The compression type specified\r
52 in the compression header is unsupported.\r
53**/\r
54typedef\r
55EFI_STATUS\r
56(EFIAPI *EFI_PEI_DECOMPRESS_DECOMPRESS)(\r
57 IN CONST EFI_PEI_DECOMPRESS_PPI *This,\r
58 IN CONST EFI_COMPRESSION_SECTION *InputSection,\r
59 OUT VOID **OutputBuffer,\r
60 OUT UINTN *OutputSize\r
61);\r
62\r
63\r
64/** \r
65