1 | /* $Id: the-solaris-kernel.h 40669 2012-03-27 17:31:20Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IPRT - Include all necessary headers for the Solaris kernel.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2007 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | */
|
---|
26 |
|
---|
27 | #ifndef ___the_solaris_kernel_h
|
---|
28 | #define ___the_solaris_kernel_h
|
---|
29 |
|
---|
30 | #include <sys/kmem.h>
|
---|
31 | #include <sys/types.h>
|
---|
32 | #include <sys/mman.h>
|
---|
33 | #include <sys/thread.h>
|
---|
34 | #include <sys/mutex.h>
|
---|
35 | #include <sys/condvar.h>
|
---|
36 | #include <sys/sdt.h>
|
---|
37 | #include <sys/schedctl.h>
|
---|
38 | #include <sys/time.h>
|
---|
39 | #include <sys/sysmacros.h>
|
---|
40 | #include <sys/cmn_err.h>
|
---|
41 | #include <sys/vmsystm.h>
|
---|
42 | #include <sys/cyclic.h>
|
---|
43 | #include <sys/class.h>
|
---|
44 | #include <sys/cpuvar.h>
|
---|
45 | #include <sys/archsystm.h>
|
---|
46 | #include <sys/x_call.h> /* in platform dir */
|
---|
47 | #include <sys/x86_archext.h>
|
---|
48 | #include <vm/hat.h>
|
---|
49 | #include <vm/seg_vn.h>
|
---|
50 | #include <vm/seg_kmem.h>
|
---|
51 | #include <sys/ddi.h>
|
---|
52 | #include <sys/sunddi.h>
|
---|
53 | #include <sys/spl.h>
|
---|
54 | #include <sys/archsystm.h>
|
---|
55 | #include <sys/callo.h>
|
---|
56 | #include <sys/kobj.h>
|
---|
57 | #include "vbi.h"
|
---|
58 |
|
---|
59 | #undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */
|
---|
60 |
|
---|
61 | #include <iprt/cdefs.h>
|
---|
62 | #include <iprt/types.h>
|
---|
63 |
|
---|
64 | RT_C_DECLS_BEGIN
|
---|
65 |
|
---|
66 | typedef callout_id_t (*PFNSOL_timeout_generic)(int type, void (*func)(void *),
|
---|
67 | void *arg, hrtime_t expiration,
|
---|
68 | hrtime_t resultion, int flags);
|
---|
69 | typedef hrtime_t (*PFNSOL_untimeout_generic)(callout_id_t id, int nowait);
|
---|
70 | typedef int (*PFNSOL_cyclic_reprogram)(cyclic_id_t id, hrtime_t expiration);
|
---|
71 |
|
---|
72 |
|
---|
73 | /* IPRT globals. */
|
---|
74 | extern bool g_frtSolarisSplSetsEIF;
|
---|
75 | extern struct ddi_dma_attr g_SolarisX86PhysMemLimits;
|
---|
76 | extern RTCPUSET g_rtMpSolarisCpuSet;
|
---|
77 | extern PFNSOL_timeout_generic g_pfnrtR0Sol_timeout_generic;
|
---|
78 | extern PFNSOL_untimeout_generic g_pfnrtR0Sol_untimeout_generic;
|
---|
79 | extern PFNSOL_cyclic_reprogram g_pfnrtR0Sol_cyclic_reprogram;
|
---|
80 |
|
---|
81 | /* Solaris globals. */
|
---|
82 | extern uintptr_t kernelbase;
|
---|
83 |
|
---|
84 | /* Misc stuff from newer kernels. */
|
---|
85 | #ifndef CALLOUT_FLAG_ABSOLUTE
|
---|
86 | # define CALLOUT_FLAG_ABSOLUTE 2
|
---|
87 | #endif
|
---|
88 |
|
---|
89 | RT_C_DECLS_END
|
---|
90 |
|
---|
91 | #endif /* ___the_solaris_kernel_h */
|
---|
92 |
|
---|