Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* infutil.h -- types and macros common to blocks and codes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  * Copyright (C) 1995-1998 Mark Adler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * For conditions of distribution and use, see copyright notice in zlib.h 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) /* WARNING: this file should *not* be used by applications. It is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)    part of the implementation of the compression library and is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)    subject to change. Applications should only use zlib.h.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _INFUTIL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _INFUTIL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/zlib.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #ifdef CONFIG_ZLIB_DFLTCC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include "../zlib_dfltcc/dfltcc.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <asm/page.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /* memory allocation for inflation */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) struct inflate_workspace {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	struct inflate_state inflate_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #ifdef CONFIG_ZLIB_DFLTCC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	struct dfltcc_state dfltcc_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	unsigned char working_window[(1 << MAX_WBITS) + PAGE_SIZE];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	unsigned char working_window[(1 << MAX_WBITS)];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #ifdef CONFIG_ZLIB_DFLTCC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) /* dfltcc_state must be doubleword aligned for DFLTCC call */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) static_assert(offsetof(struct inflate_workspace, dfltcc_state) % 8 == 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define WS(strm) ((struct inflate_workspace *)(strm->workspace))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #endif