mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
4fa9c49f4d
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms and conditions of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details the full gnu general public license is included in this distribution in the file called copying this program is free software you can redistribute it and or modify it under the terms and conditions of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope [that] it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details the full gnu general public license is included in this distribution in the file called copying extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 57 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141901.515993066@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
691 B
C
32 lines
691 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2018 Chelsio Communications. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __CUDBG_ZLIB_H__
|
|
#define __CUDBG_ZLIB_H__
|
|
|
|
#include <linux/zlib.h>
|
|
|
|
#define CUDBG_ZLIB_COMPRESS_ID 17
|
|
#define CUDBG_ZLIB_WIN_BITS 12
|
|
#define CUDBG_ZLIB_MEM_LVL 4
|
|
|
|
struct cudbg_compress_hdr {
|
|
u32 compress_id;
|
|
u64 decompress_size;
|
|
u64 compress_size;
|
|
u64 rsvd[32];
|
|
};
|
|
|
|
static inline int cudbg_get_workspace_size(void)
|
|
{
|
|
return zlib_deflate_workspacesize(CUDBG_ZLIB_WIN_BITS,
|
|
CUDBG_ZLIB_MEM_LVL);
|
|
}
|
|
|
|
int cudbg_compress_buff(struct cudbg_init *pdbg_init,
|
|
struct cudbg_buffer *pin_buff,
|
|
struct cudbg_buffer *pout_buff);
|
|
#endif /* __CUDBG_ZLIB_H__ */
|