xref: /freebsd/sys/contrib/ck/include/ck_md.h (revision 8f87df16d414c7b09739ba95030e1e5650207b73)
15ac7aafeSOlivier Houchard /*
25ac7aafeSOlivier Houchard  * Copyright 2011-2012 Samy Al Bahra.
35ac7aafeSOlivier Houchard  * All rights reserved.
45ac7aafeSOlivier Houchard  *
55ac7aafeSOlivier Houchard  * Redistribution and use in source and binary forms, with or without
65ac7aafeSOlivier Houchard  * modification, are permitted provided that the following conditions
75ac7aafeSOlivier Houchard  * are met:
85ac7aafeSOlivier Houchard  * 1. Redistributions of source code must retain the above copyright
95ac7aafeSOlivier Houchard  *    notice, this list of conditions and the following disclaimer.
105ac7aafeSOlivier Houchard  * 2. Redistributions in binary form must reproduce the above copyright
115ac7aafeSOlivier Houchard  *    notice, this list of conditions and the following disclaimer in the
125ac7aafeSOlivier Houchard  *    documentation and/or other materials provided with the distribution.
135ac7aafeSOlivier Houchard  *
145ac7aafeSOlivier Houchard  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
155ac7aafeSOlivier Houchard  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
165ac7aafeSOlivier Houchard  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
175ac7aafeSOlivier Houchard  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
185ac7aafeSOlivier Houchard  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
195ac7aafeSOlivier Houchard  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
205ac7aafeSOlivier Houchard  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
215ac7aafeSOlivier Houchard  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
225ac7aafeSOlivier Houchard  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
235ac7aafeSOlivier Houchard  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
245ac7aafeSOlivier Houchard  * SUCH DAMAGE.
255ac7aafeSOlivier Houchard  *
265ac7aafeSOlivier Houchard  * $FreeBSD$
275ac7aafeSOlivier Houchard  */
285ac7aafeSOlivier Houchard 
295ac7aafeSOlivier Houchard #ifndef CK_MD_H
305ac7aafeSOlivier Houchard #define CK_MD_H
315ac7aafeSOlivier Houchard 
325ac7aafeSOlivier Houchard #ifndef CK_MD_CACHELINE
335ac7aafeSOlivier Houchard #define CK_MD_CACHELINE (64)
345ac7aafeSOlivier Houchard #endif
355ac7aafeSOlivier Houchard 
365ac7aafeSOlivier Houchard #ifndef CK_MD_PAGESIZE
375ac7aafeSOlivier Houchard #define CK_MD_PAGESIZE (4096)
385ac7aafeSOlivier Houchard #endif
395ac7aafeSOlivier Houchard 
405ac7aafeSOlivier Houchard #ifndef CK_MD_RTM_DISABLE
415ac7aafeSOlivier Houchard #define CK_MD_RTM_DISABLE
425ac7aafeSOlivier Houchard #endif /* CK_MD_RTM_DISABLE */
435ac7aafeSOlivier Houchard 
445ac7aafeSOlivier Houchard #ifndef CK_MD_POINTER_PACK_DISABLE
455ac7aafeSOlivier Houchard #define CK_MD_POINTER_PACK_DISABLE
465ac7aafeSOlivier Houchard #endif /* CK_MD_POINTER_PACK_DISABLE */
475ac7aafeSOlivier Houchard 
485ac7aafeSOlivier Houchard #ifndef CK_MD_VMA_BITS_UNKNOWN
495ac7aafeSOlivier Houchard #define CK_MD_VMA_BITS_UNKNOWN
505ac7aafeSOlivier Houchard #endif /* CK_MD_VMA_BITS_UNKNOWN */
515ac7aafeSOlivier Houchard 
52*8f87df16SOlivier Houchard #ifndef CK_PR_DISABLE_DOUBLE
53*8f87df16SOlivier Houchard #define CK_PR_DISABLE_DOUBLE
54*8f87df16SOlivier Houchard #endif /* CK_PR_DISABLE_DOUBLE */
55*8f87df16SOlivier Houchard 
565ac7aafeSOlivier Houchard #ifndef CK_MD_RMO
575ac7aafeSOlivier Houchard #define CK_MD_RMO
585ac7aafeSOlivier Houchard #endif /* CK_MD_RMO */
595ac7aafeSOlivier Houchard 
605ac7aafeSOlivier Houchard #define CK_VERSION "0.5.2"
615ac7aafeSOlivier Houchard #define CK_GIT_SHA ""
625ac7aafeSOlivier Houchard 
635ac7aafeSOlivier Houchard /*
645ac7aafeSOlivier Houchard  * CK expects those, which are normally defined by the build system.
655ac7aafeSOlivier Houchard  */
665ac7aafeSOlivier Houchard #if defined(__i386__) && !defined(__x86__)
675ac7aafeSOlivier Houchard #define __x86__
685ac7aafeSOlivier Houchard #elif defined(__sparc64__) && !defined(__sparcv9__)
695ac7aafeSOlivier Houchard #define __sparcv9__
705ac7aafeSOlivier Houchard #elif defined(__powerpc64__) && !defined(__ppc64__)
715ac7aafeSOlivier Houchard #define __ppc64__
725ac7aafeSOlivier Houchard #elif defined(__powerpc__) && !defined(__ppc__)
735ac7aafeSOlivier Houchard #define __ppc__
745ac7aafeSOlivier Houchard #endif
755ac7aafeSOlivier Houchard #endif /* CK_MD_H */
76