1 | /** @file
|
---|
2 | *
|
---|
3 | * VBoxGuest -- VirtualBox Win32 guest support driver
|
---|
4 | *
|
---|
5 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
6 | *
|
---|
7 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | * available from http://www.virtualbox.org. This file is free software;
|
---|
9 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | * General Public License as published by the Free Software Foundation,
|
---|
11 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
12 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
13 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | */
|
---|
15 |
|
---|
16 | #ifndef _H_VBOXGUESTHELPER
|
---|
17 | #define _H_VBOXGUESTHELPER
|
---|
18 |
|
---|
19 | extern "C"
|
---|
20 | {
|
---|
21 | /**
|
---|
22 | * Helper to scan the PCI resource list and remember stuff.
|
---|
23 | *
|
---|
24 | * @param pResList Resource list
|
---|
25 | * @param pDevExt Device extension
|
---|
26 | * @return NT status code
|
---|
27 | */
|
---|
28 | NTSTATUS VBoxScanPCIResourceList(PCM_RESOURCE_LIST pResList, PVBOXGUESTDEVEXT pDevExt);
|
---|
29 |
|
---|
30 | /**
|
---|
31 | * Helper to map VMMDev Memory.
|
---|
32 | *
|
---|
33 | * @param pDevExt VMMDev device extension
|
---|
34 | * @return NT status code
|
---|
35 | */
|
---|
36 | NTSTATUS hlpVBoxMapVMMDevMemory (PVBOXGUESTDEVEXT pDevExt);
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * Helper to unmap VMMDev Memory.
|
---|
40 | *
|
---|
41 | * @param pDevExt VMMDev device extension
|
---|
42 | */
|
---|
43 | void hlpVBoxUnmapVMMDevMemory (PVBOXGUESTDEVEXT pDevExt);
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * Helper to report the guest information to host.
|
---|
47 | *
|
---|
48 | * @param pDevExt VMMDev device extension
|
---|
49 | * @return NT status code
|
---|
50 | */
|
---|
51 | NTSTATUS hlpVBoxReportGuestInfo (PVBOXGUESTDEVEXT pDevExt);
|
---|
52 | }
|
---|
53 |
|
---|
54 | #endif // _H_VBOXGUESTHELPER
|
---|