win-pvdrivers

view common/include/evtchn_public.h @ 73:f74723639713

Corrected merge of dpc patches.
Releasing 0.5.0.0
author James Harper <james.harper@bendigoit.com.au>
date Thu Dec 20 13:07:44 2007 +1100 (2007-12-20)
parents 94d0f2823b42
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(_EVTCHN_PUBLIC_H_)
21 #define _EVTCHN_PUBLIC_H_
23 DEFINE_GUID( GUID_XEN_IFACE_EVTCHN, 0xD2D20756, 0xDE69, 0x4447, 0x8A, 0x7D, 0x98, 0x37, 0x19, 0x7D, 0x61, 0x66);
24 //{D2D20756-DE69-4447-8A7D-9837197D6166}
26 typedef NTSTATUS
27 (*PXEN_EVTCHN_BIND)(PVOID Context, evtchn_port_t Port, PKSERVICE_ROUTINE ServiceRoutine, PVOID ServiceContext);
29 typedef NTSTATUS
30 (*PXEN_EVTCHN_UNBIND)(PVOID Context, evtchn_port_t Port);
32 typedef NTSTATUS
33 (*PXEN_EVTCHN_MASK)(PVOID Context, evtchn_port_t Port);
35 typedef NTSTATUS
36 (*PXEN_EVTCHN_UNMASK)(PVOID Context, evtchn_port_t Port);
38 typedef NTSTATUS
39 (*PXEN_EVTCHN_NOTIFY)(PVOID Context, evtchn_port_t Port);
41 typedef evtchn_port_t
42 (*PXEN_EVTCHN_ALLOCUNBOUND)(PVOID Context, domid_t Domain);
44 typedef struct _XENBUS_IFACE_EVTCHN {
45 INTERFACE InterfaceHeader;
47 PXEN_EVTCHN_BIND Bind;
48 PXEN_EVTCHN_UNBIND Unbind;
49 PXEN_EVTCHN_MASK Mask;
50 PXEN_EVTCHN_UNMASK Unmask;
51 PXEN_EVTCHN_NOTIFY Notify;
52 PXEN_EVTCHN_ALLOCUNBOUND AllocUnbound;
53 PXEN_EVTCHN_BIND BindDpc;
55 } XEN_IFACE_EVTCHN, *PXEN_IFACE_EVTCHN;
57 #endif