The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/qat/qat_api/common/compression/include/dc_header_footer.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: BSD-3-Clause */
    2 /* Copyright(c) 2007-2022 Intel Corporation */
    3 /* $FreeBSD$ */
    4 /**
    5  *****************************************************************************
    6  * @file dc_header_footer.h
    7  *
    8  * @ingroup Dc_DataCompression
    9  *
   10  * @description
   11  *      Definition of the Data Compression header and footer parameters.
   12  *
   13  *****************************************************************************/
   14 #ifndef DC_HEADER_FOOTER_H_
   15 #define DC_HEADER_FOOTER_H_
   16 
   17 /* Header and footer sizes for Zlib and Gzip */
   18 #define DC_ZLIB_HEADER_SIZE (2)
   19 #define DC_GZIP_HEADER_SIZE (10)
   20 #define DC_ZLIB_FOOTER_SIZE (4)
   21 #define DC_GZIP_FOOTER_SIZE (8)
   22 
   23 /* Values used to build the headers for Zlib and Gzip */
   24 #define DC_GZIP_ID1 (0x1f)
   25 #define DC_GZIP_ID2 (0x8b)
   26 #define DC_GZIP_FILESYSTYPE (0x03)
   27 #define DC_ZLIB_WINDOWSIZE_OFFSET (4)
   28 #define DC_ZLIB_FLEVEL_OFFSET (6)
   29 #define DC_ZLIB_HEADER_OFFSET (31)
   30 
   31 /* Compression level for Zlib */
   32 #define DC_ZLIB_LEVEL_0 (0)
   33 #define DC_ZLIB_LEVEL_1 (1)
   34 #define DC_ZLIB_LEVEL_2 (2)
   35 #define DC_ZLIB_LEVEL_3 (3)
   36 
   37 /* CM parameter for Zlib */
   38 #define DC_ZLIB_CM_DEFLATE (8)
   39 
   40 /* Type of Gzip compression */
   41 #define DC_GZIP_FAST_COMP (4)
   42 #define DC_GZIP_MAX_COMP (2)
   43 
   44 #endif /* DC_HEADER_FOOTER_H_ */

Cache object: c2730a8763f631cfc1af96b670481c90


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.