mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 18:26:39 +07:00
2da572c959
Add 842-format software compression and decompression functions. Update the MAINTAINERS 842 section to include the new files. The 842 compression function can compress any input data into the 842 compression format. The 842 decompression function can decompress any standard-format 842 compressed data - specifically, either a compressed data buffer created by the 842 software compression function, or a compressed data buffer created by the 842 hardware compressor (located in PowerPC coprocessors). The 842 compressed data format is explained in the header comments. This is used in a later patch to provide a full software 842 compression and decompression crypto interface. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
13 lines
289 B
C
13 lines
289 B
C
#ifndef __SW842_H__
|
|
#define __SW842_H__
|
|
|
|
#define SW842_MEM_COMPRESS (0xf000)
|
|
|
|
int sw842_compress(const u8 *src, unsigned int srclen,
|
|
u8 *dst, unsigned int *destlen, void *wmem);
|
|
|
|
int sw842_decompress(const u8 *src, unsigned int srclen,
|
|
u8 *dst, unsigned int *destlen);
|
|
|
|
#endif
|