win-pvdrivers

view xenaddresource/xenaddresource.h @ 566:003c946e756a

don't sign xenhide
author James Harper <james.harper@bendigoit.com.au>
date Sun May 10 20:19:28 2009 +1000 (2009-05-10)
parents b7863ede7a37
children
line source
1 /*
2 PV Drivers for Windows Xen HVM Domains
3 Copyright (C) 2007 James Harper
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
20 #if !defined(_XENADDRESOURCE_H_)
21 #define _XENADDRESOURCE_H_
23 #define __attribute__(arg) /* empty */
25 #include <ntddk.h>
26 #include <wdm.h>
27 #include <wdf.h>
28 #include <initguid.h>
29 #include <wdmguid.h>
30 #include <errno.h>
32 #define NTSTRSAFE_LIB
33 #include <ntstrsafe.h>
35 #define __DRIVER_NAME "XenAddResource"
36 #include <xen_windows.h>
38 #include <memory.h>
39 #include <grant_table.h>
40 #include <event_channel.h>
41 #include <hvm/params.h>
42 #include <hvm/hvm_op.h>
43 #include <xen_public.h>
45 #define XENADDRESOURCE_POOL_TAG (ULONG) 'XenR'
47 #define NR_RESERVED_ENTRIES 8
48 #define NR_GRANT_FRAMES 4
49 #define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * PAGE_SIZE / sizeof(grant_entry_t))
51 //#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
53 #define ADDRESOURCE_DATA_MAGIC 0x12345678
55 /*
56 typedef struct {
57 ULONG Magic;
58 PXENPCI_XEN_DEVICE_DATA XenDeviceData;
59 XEN_IFACE_EVTCHN EvtChnInterface;
60 XEN_IFACE_XENBUS XenBusInterface;
61 //XEN_IFACE_XEN XenInterface;
62 XEN_IFACE_GNTTBL GntTblInterface;
63 } XENADDRESOURCE_DEVICE_DATA, *PXENADDRESOURCE_DEVICE_DATA;
64 */
65 /*
66 typedef unsigned long xenbus_transaction_t;
67 typedef uint32_t XENSTORE_RING_IDX;
69 #define XBT_NIL ((xenbus_transaction_t)0)
70 */
72 #endif