Merge from vendor branch LIBPCAP:
[dragonfly.git] / sys / platform / vkernel / include / param.h
1 /*
2  * $DragonFly: src/sys/platform/vkernel/include/param.h,v 1.3 2007/09/04 22:07:54 dillon Exp $
3  */
4
5 #ifndef _MACHINE_PARAM_H_
6
7 #ifndef _NO_NAMESPACE_POLLUTION
8 #define _MACHINE_PARAM_H_
9 #endif
10
11 #ifndef _MACHINE_PLATFORM
12 #define _MACHINE_PLATFORM       vkernel
13 #endif
14
15 #ifndef _NO_NAMESPACE_POLLUTION
16
17 #ifndef MACHINE_PLATFORM
18 #define MACHINE_PLATFORM        "vkernel"
19 #endif
20
21 #endif
22
23 /*
24  * This is kinda silly but why not?  We use a 32 bit bitmask so 31 is
25  * the most we can have.  We use the msb bit for other purposes in the
26  * spinlock code so we can't have 32.
27  */
28 #ifndef SMP_MAXCPU
29 #define SMP_MAXCPU      31
30 #endif
31
32 /*
33  * Set the default HZ to the likely resolution of the kqueue timer
34  * the vkernel uses, otherwise our ticks will be seriously off and
35  * while date/time will be correct, sleep intervals will not.
36  */
37 #ifdef _KERNEL
38 #ifndef HZ
39 #define HZ      20
40 #endif
41 #endif
42
43 #include <cpu/param.h>
44
45 #endif
46