Merge commit '15ada8fc6dd9f38f563acc69f9f22f88a48b752a'
[unleashed/tickless.git] / kernel / zmod / zconf.h
blobbf91b5cd08b1f6c8805a5f4857298bba803fdc2d
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _ZCONF_H
28 #define _ZCONF_H
30 #include <sys/param.h>
31 #include <sys/systm.h>
32 #include <sys/types.h>
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
39 * We don't want to turn on zlib's debugging.
41 #undef DEBUG
44 * We define our own memory allocation and deallocation routines that use kmem.
46 #define MY_ZCALLOC
49 * We don't define HAVE_MEMCPY here, but do in zutil.c, and implement our
50 * our versions of zmemcpy(), zmemzero(), and zmemcmp().
54 * We have a sufficiently capable compiler as to not need zlib's compiler hack.
56 #define NO_DUMMY_DECL
58 #define compressBound(len) (len + (len >> 12) + (len >> 14) + 11)
60 #define z_off_t off_t
61 #define OF(p) p
62 #define ZEXTERN extern
63 #define ZEXPORT
64 #define ZEXPORTVA
65 #define FAR
67 #define deflateInit_ z_deflateInit_
68 #define deflate z_deflate
69 #define deflateEnd z_deflateEnd
70 #define inflateInit_ z_inflateInit_
71 #define inflate z_inflate
72 #define inflateEnd z_inflateEnd
73 #define deflateInit2_ z_deflateInit2_
74 #define deflateSetDictionary z_deflateSetDictionary
75 #define deflateCopy z_deflateCopy
76 #define deflateReset z_deflateReset
77 #define deflateParams z_deflateParams
78 #define deflateBound z_deflateBound
79 #define deflatePrime z_deflatePrime
80 #define inflateInit2_ z_inflateInit2_
81 #define inflateSetDictionary z_inflateSetDictionary
82 #define inflateSync z_inflateSync
83 #define inflateSyncPoint z_inflateSyncPoint
84 #define inflateCopy z_inflateCopy
85 #define inflateReset z_inflateReset
86 #define inflateBack z_inflateBack
87 #define inflateBackEnd z_inflateBackEnd
88 #define compress zz_compress
89 #define compress2 zz_compress2
90 #define uncompress zz_uncompress
91 #define adler32 z_adler32
92 #define crc32 z_crc32
93 #define get_crc_table z_get_crc_table
94 #define zError z_zError
96 #define MAX_MEM_LEVEL 9
97 #define MAX_WBITS 15
99 typedef unsigned char Byte;
100 typedef unsigned int uInt;
101 typedef unsigned long uLong;
102 typedef Byte Bytef;
103 typedef char charf;
104 typedef int intf;
105 typedef uInt uIntf;
106 typedef uLong uLongf;
107 typedef void *voidpc;
108 typedef void *voidpf;
109 typedef void *voidp;
111 #ifdef __cplusplus
113 #endif
115 #endif /* _ZCONF_H */