ia64/xen-unstable

view extras/mini-os/include/events.h @ 10843:4f6d858ea570

[PCI] Per-device permissive flag (replaces global permissive flag).
Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
author kfraser@localhost.localdomain
date Fri Jul 28 12:56:10 2006 +0100 (2006-07-28)
parents 43474e663b3d
children a10d02d20b31
line source
1 /* -*- Mode:C; c-basic-offset:4; tab-width:4 -*-
2 ****************************************************************************
3 * (C) 2003 - Rolf Neugebauer - Intel Research Cambridge
4 * (C) 2005 - Grzegorz Milos - Intel Reseach Cambridge
5 ****************************************************************************
6 *
7 * File: events.h
8 * Author: Rolf Neugebauer (neugebar@dcs.gla.ac.uk)
9 * Changes: Grzegorz Milos (gm281@cam.ac.uk)
10 *
11 * Date: Jul 2003, changes Jun 2005
12 *
13 * Environment: Xen Minimal OS
14 * Description: Deals with events on the event channels
15 *
16 ****************************************************************************
17 */
19 #ifndef _EVENTS_H_
20 #define _EVENTS_H_
22 #include<traps.h>
23 #include <xen/event_channel.h>
25 /* prototypes */
26 int do_event(u32 port, struct pt_regs *regs);
27 int bind_virq( u32 virq, void (*handler)(int, struct pt_regs *, void *data),
28 void *data);
29 int bind_evtchn( u32 virq, void (*handler)(int, struct pt_regs *, void *data),
30 void *data );
31 void unbind_evtchn( u32 port );
32 void init_events(void);
33 void unbind_virq( u32 port );
34 int evtchn_alloc_unbound(void (*handler)(int, struct pt_regs *regs,
35 void *data),
36 void *data);
38 static inline int notify_remote_via_evtchn(int port)
39 {
40 evtchn_op_t op;
41 op.cmd = EVTCHNOP_send;
42 op.u.send.port = port;
43 return HYPERVISOR_event_channel_op(&op);
44 }
47 #endif /* _EVENTS_H_ */