1 | /* $Id: the-netbsd-kernel.h 82968 2020-02-04 10:35:17Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IPRT - Ring-0 Driver, The NetBSD Kernel Headers.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Contributed by knut st. osmundsen.
|
---|
8 | *
|
---|
9 | * Copyright (C) 2007-2020 Oracle Corporation
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | * available from http://www.virtualbox.org. This file is free software;
|
---|
13 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | * General Public License (GPL) as published by the Free Software
|
---|
15 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | *
|
---|
19 | * The contents of this file may alternatively be used under the terms
|
---|
20 | * of the Common Development and Distribution License Version 1.0
|
---|
21 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
22 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
23 | * CDDL are applicable instead of those of the GPL.
|
---|
24 | *
|
---|
25 | * You may elect to license modified versions of this file under the
|
---|
26 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
27 | * --------------------------------------------------------------------
|
---|
28 | *
|
---|
29 | * Copyright (c) 2007 knut st. osmundsen <[email protected]>
|
---|
30 | *
|
---|
31 | * Permission is hereby granted, free of charge, to any person
|
---|
32 | * obtaining a copy of this software and associated documentation
|
---|
33 | * files (the "Software"), to deal in the Software without
|
---|
34 | * restriction, including without limitation the rights to use,
|
---|
35 | * copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
36 | * copies of the Software, and to permit persons to whom the
|
---|
37 | * Software is furnished to do so, subject to the following
|
---|
38 | * conditions:
|
---|
39 | *
|
---|
40 | * The above copyright notice and this permission notice shall be
|
---|
41 | * included in all copies or substantial portions of the Software.
|
---|
42 | *
|
---|
43 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
44 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
---|
45 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
46 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
---|
47 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
48 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
49 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
50 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
51 | */
|
---|
52 |
|
---|
53 | #ifndef IPRT_INCLUDED_SRC_r0drv_netbsd_the_netbsd_kernel_h
|
---|
54 | #define IPRT_INCLUDED_SRC_r0drv_netbsd_the_netbsd_kernel_h
|
---|
55 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
56 | # pragma once
|
---|
57 | #endif
|
---|
58 |
|
---|
59 | #include <iprt/types.h>
|
---|
60 |
|
---|
61 | /* Deal with conflicts first. */
|
---|
62 | #include <sys/param.h>
|
---|
63 | #undef PVM
|
---|
64 | #include <sys/bus.h>
|
---|
65 | #include <sys/types.h>
|
---|
66 | #include <sys/errno.h>
|
---|
67 | #include <sys/kernel.h>
|
---|
68 | #include <sys/uio.h>
|
---|
69 | #include <sys/systm.h>
|
---|
70 | #include <sys/malloc.h>
|
---|
71 | #include <sys/proc.h>
|
---|
72 | #include <sys/syslimits.h>
|
---|
73 | #include <sys/sleepq.h>
|
---|
74 | #include <sys/unistd.h>
|
---|
75 | #include <sys/kthread.h>
|
---|
76 | #include <sys/lock.h>
|
---|
77 | #include <sys/mutex.h>
|
---|
78 | #include <sys/sched.h>
|
---|
79 | #include <sys/callout.h>
|
---|
80 | #include <sys/rwlock.h>
|
---|
81 | #include <sys/kmem.h>
|
---|
82 | #include <sys/cpu.h>
|
---|
83 | #include <sys/vmmeter.h> /* cnt */
|
---|
84 | #include <sys/resourcevar.h>
|
---|
85 | #include <uvm/uvm.h>
|
---|
86 | #include <uvm/uvm_extern.h>
|
---|
87 | #include <uvm/uvm_page.h>
|
---|
88 | #include <machine/cpu.h>
|
---|
89 |
|
---|
90 | /**
|
---|
91 | * Check whether we can use kmem_alloc_prot.
|
---|
92 | */
|
---|
93 | #if 0 /** @todo Not available yet. */
|
---|
94 | # define USE_KMEM_ALLOC_PROT
|
---|
95 | #endif
|
---|
96 |
|
---|
97 | #endif /* !IPRT_INCLUDED_SRC_r0drv_netbsd_the_netbsd_kernel_h */
|
---|