VirtualBox

source: vbox/trunk/src/VBox/Runtime/r0drv/solaris/the-solaris-kernel.h@ 4287

Last change on this file since 4287 was 4287, checked in by vboxsync, 18 years ago

Solaris

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1/* $Id: the-solaris-kernel.h 4287 2007-08-22 14:49:19Z vboxsync $ */
2/** @file
3 * innotek Portable Runtime - Include all necessary headers for the Solaris kernel.
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___the_solaris_kernel_h
19#define ___the_solaris_kernel_h
20
21#include <sys/kmem.h>
22#include <sys/types.h>
23#include <sys/mman.h>
24#include <sys/thread.h>
25#include <sys/mutex.h>
26#include <sys/condvar.h>
27#include <sys/sdt.h>
28#include <sys/schedctl.h>
29#include <sys/time.h>
30#include <sys/sysmacros.h>
31#include <vm/hat.h>
32#include <vm/seg_kmem.h>
33#include <sys/ddi.h>
34#include <sys/sunddi.h>
35
36#include <iprt/param.h> /* for PAGE_SIZE */
37
38/**
39 * Used in alloc-r0drv-solaris.c and in memobj-r0drv-solaris.cpp
40 * Basically needs to be used anywhere where contiguous allocation
41 * is needed.
42 *
43 * @todo r=bird: This should be moved out of this header as it will probably
44 * be instantiated in all the files using this header and
45 * the compiler will bitch about it not being used.
46 */
47static struct ddi_dma_attr g_SolarisX86PhysMemLimits =
48{
49 DMA_ATTR_V0, /* Version Number */
50 (uint64_t)0, /* lower limit */
51 (uint64_t)0xffffffff, /* high limit (32-bit PA) */
52 (uint64_t)0xffffffff, /* counter limit */
53 (uint64_t)PAGE_SIZE, /* alignment */
54 (uint64_t)PAGE_SIZE, /* burst size */
55 (uint64_t)PAGE_SIZE, /* effective DMA size */
56 (uint64_t)0xffffffff, /* max DMA xfer size */
57 (uint64_t)0xffffffff, /* segment boundary */
58 512, /* s/g length */
59 1, /* device granularity */
60 0 /* bus-specific flags */
61};
62
63/* commented for now
64#include <iprt/cdefs.h>
65__BEGIN_DECLS
66
67__END_DECLS
68*/
69
70#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette