ia64/xen-unstable

view extras/mini-os/include/events.h @ 11114:5a454f6e320f

Make room in e820map for SMBIOS tables.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
author kfraser@localhost.localdomain
date Mon Aug 14 17:29:11 2006 +0100 (2006-08-14)
parents cbfced5fcdb3
children fc8ae086f706
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 typedef void (*evtchn_handler_t)(evtchn_port_t, struct pt_regs *, void *);
27 /* prototypes */
28 int do_event(evtchn_port_t port, struct pt_regs *regs);
29 int bind_virq(uint32_t virq, evtchn_handler_t handler, void *data);
30 evtchn_port_t bind_evtchn(evtchn_port_t port, evtchn_handler_t handler,
31 void *data);
32 void unbind_evtchn(evtchn_port_t port);
33 void init_events(void);
34 int evtchn_alloc_unbound(domid_t pal, evtchn_handler_t handler,
35 void *data, evtchn_port_t *port);
36 int evtchn_bind_interdomain(domid_t pal, evtchn_port_t remote_port,
37 evtchn_handler_t handler, void *data,
38 evtchn_port_t *local_port);
40 static inline int notify_remote_via_evtchn(evtchn_port_t port)
41 {
42 evtchn_op_t op;
43 op.cmd = EVTCHNOP_send;
44 op.u.send.port = port;
45 return HYPERVISOR_event_channel_op(&op);
46 }
49 #endif /* _EVENTS_H_ */