diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-09-22 09:54:31 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-28 07:31:43 +0300 |
commit | 1b7898ee276b39e54d870dc4ef3374f663d0b426 (patch) | |
tree | 1c41ed5b37a1214816eb732c7d75cd4326e82deb /arch/powerpc/boot/ops.h | |
parent | 22750d98b00bd704694224d6df69a1a6f29ea22c (diff) | |
download | linux-1b7898ee276b39e54d870dc4ef3374f663d0b426.tar.xz |
powerpc/boot: Use the pre-boot decompression API
Currently the powerpc boot wrapper has its own wrapper around zlib to
handle decompressing gzipped kernels. The kernel decompressor library
functions now provide a generic interface that can be used in the
pre-boot environment. This allows boot wrappers to easily support
different compression algorithms. This patch converts the wrapper to use
this new API, but does not add support for using new algorithms.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r-- | arch/powerpc/boot/ops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index e19b64ef977a..309d1b127e96 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h @@ -260,4 +260,7 @@ int __ilog2_u32(u32 n) return 31 - bit; } +long partial_decompress(void *inbuf, unsigned long input_size, void *outbuf, + unsigned long output_size, unsigned long skip); + #endif /* _PPC_BOOT_OPS_H_ */ |