win-pvdrivers

view xenhide/xenhide.h @ 382:ecfd4ddaaf3d

remove dead code
author Andy Grover <andy.grover@oracle.com>
date Wed Jul 09 12:35:41 2008 -0700 (2008-07-09)
parents 0b08bdc622a6
children a6e3f76419c3
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 #include <xen_guids.h>
35 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
37 #define XENHIDE_POOL_TAG (ULONG) 'XHID'
39 //{CD433FE7-954F-4D51-BE29-D8A38DFA1108}
40 //DEFINE_GUID(GUID_XENHIDE_IFACE, 0xCD433FE7, 0x954F, 0x4D51, 0xBE, 0x29, 0xD8, 0xA3, 0x8D, 0xFA, 0x11, 0x08);
42 #define XENHIDE_TYPE_NONE 0
43 #define XENHIDE_TYPE_DEVICE 1
44 #define XENHIDE_TYPE_PCI_BUS 2
46 typedef struct {
47 PDEVICE_OBJECT filter_do;
48 PDEVICE_OBJECT pdo;
49 PDEVICE_OBJECT lower_do;
50 IO_REMOVE_LOCK RemoveLock;
51 USHORT hide_type;
52 } XENHIDE_DEVICE_DATA, *PXENHIDE_DEVICE_DATA;
54 typedef struct
55 {
56 LIST_ENTRY entry;
57 PDEVICE_OBJECT pdo;
58 } XENHIDE_HIDE_LIST_ENTRY, *PXENHIDE_HIDE_LIST_ENTRY;
60 typedef struct
61 {
62 PDEVICE_OBJECT pci_bus_pdo;
63 LIST_ENTRY hide_list_head;
64 KSPIN_LOCK hide_list_lock;
65 KEVENT hide_list_event;
66 } XENHIDE_DRIVER_DATA, *PXENHIDE_DRIVER_DATA;
68 #endif