win-pvdrivers

view xenhide/xenhide.h @ 189:eeeeb6924803

updates preparing for next release
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 18 22:16:03 2008 +1100 (2008-02-18)
parents 8c87bd40fe36
children 6128d5c1e7a8
line source
1 /*PV Drivers for Windows Xen HVM Domains
2 Copyright (C) 2007 James Harper
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
19 #if !defined(_XENHIDE_H_)
20 #define _XENHIDE_H_
22 #include <ntddk.h>
23 #include <wdm.h>
24 #include <initguid.h>
25 #include <wdmguid.h>
26 #include <errno.h>
28 #define NTSTRSAFE_LIB
29 #include <ntstrsafe.h>
31 #define __DRIVER_NAME "XenHide"
33 #define XENHIDE_POOL_TAG (ULONG) 'XHID'
35 //{CD433FE7-954F-4D51-BE29-D8A38DFA1108}
36 DEFINE_GUID(GUID_XENHIDE_IFACE, 0xCD433FE7, 0x954F, 0x4D51, 0xBE, 0x29, 0xD8, 0xA3, 0x8D, 0xFA, 0x11, 0x08);
38 #define XENHIDE_TYPE_PCI 1
39 #define XENHIDE_TYPE_HIDE 2
41 struct _DEVICE_EXTENSION {
42 PDEVICE_OBJECT Self;
43 PDEVICE_OBJECT PhysicalDeviceObject;
44 PDRIVER_OBJECT DriverObject;
45 PDEVICE_OBJECT NextLowerDevice;
46 IO_REMOVE_LOCK RemoveLock;
47 UNICODE_STRING InterfaceName;
48 ULONG InternalState;
49 } typedef DEVICE_EXTENSION, *PDEVICE_EXTENSION;
51 #endif