1 | /* $Id: SUPLibInternal.h 4071 2007-08-07 17:07:59Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox Support Library - Internal header.
|
---|
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 __SupInternal_h__
|
---|
19 | #define __SupInternal_h__
|
---|
20 |
|
---|
21 | #include <VBox/cdefs.h>
|
---|
22 | #include <VBox/types.h>
|
---|
23 |
|
---|
24 |
|
---|
25 |
|
---|
26 | /*******************************************************************************
|
---|
27 | * Global Variables *
|
---|
28 | *******************************************************************************/
|
---|
29 | /** The negotiated interrupt number. */
|
---|
30 | extern uint8_t g_uchInterruptNo;
|
---|
31 | /** The negotiated cookie. */
|
---|
32 | extern uint32_t g_u32Cookie;
|
---|
33 | /** The negotiated cookie. */
|
---|
34 | extern uint32_t g_u32CookieSession;
|
---|
35 |
|
---|
36 |
|
---|
37 |
|
---|
38 | /*******************************************************************************
|
---|
39 | * OS Specific Function *
|
---|
40 | *******************************************************************************/
|
---|
41 | __BEGIN_DECLS
|
---|
42 | int suplibOsInstall(void);
|
---|
43 | int suplibOsUninstall(void);
|
---|
44 | int suplibOsInit(size_t cbReserve);
|
---|
45 | int suplibOsTerm(void);
|
---|
46 | int suplibOsIOCtl(unsigned uFunction, void *pvIn, size_t cbIn, void *pvOut, size_t cbOut);
|
---|
47 | #ifdef VBOX_WITHOUT_IDT_PATCHING
|
---|
48 | int suplibOSIOCtlFast(unsigned uFunction);
|
---|
49 | #endif
|
---|
50 | int suplibOsPageAlloc(size_t cPages, void **ppvPages);
|
---|
51 | int suplibOsPageFree(void *pvPages, size_t cPages);
|
---|
52 | __END_DECLS
|
---|
53 |
|
---|
54 |
|
---|
55 | #endif
|
---|
56 |
|
---|