aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/events.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-12-08 15:24:02 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-12-08 15:24:02 +0100
commit7fc4533b321fbe7ef6ce0ef05e3b99cebe13a39e (patch)
treeb862d841d85f51754110df948f0b471c5e4583de /extras/mini-os/include/events.h
parentbc70813814bf808d64f0331c2e450662058e07a7 (diff)
downloadxen-7fc4533b321fbe7ef6ce0ef05e3b99cebe13a39e.tar.gz
xen-7fc4533b321fbe7ef6ce0ef05e3b99cebe13a39e.tar.bz2
xen-7fc4533b321fbe7ef6ce0ef05e3b99cebe13a39e.zip
Merge in the newer Xenbus implementation from Linux to the Mini-OS. The new
version compiles and starts up, but I'm not really sure how to test the new xenbus implementation. * Added unbind_evtchn * Copied parts of the Linux spinlock implementation to make the changes to xenbus compared to Linux smaller. Also added a dummy rwsem implementation. * Updated the xenbus-files Signed-off-by: Simon Kagstrom <simon.kagstrom@bth.se>
Diffstat (limited to 'extras/mini-os/include/events.h')
-rw-r--r--extras/mini-os/include/events.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/mini-os/include/events.h b/extras/mini-os/include/events.h
index 76226efcd5..c4e7c67fd8 100644
--- a/extras/mini-os/include/events.h
+++ b/extras/mini-os/include/events.h
@@ -40,10 +40,12 @@ typedef struct _ev_action_t {
/* prototypes */
int do_event(u32 port, struct pt_regs *regs);
int bind_virq( u32 virq, void (*handler)(int, struct pt_regs *) );
-void bind_evtchn( u32 virq, void (*handler)(int, struct pt_regs *) );
+int bind_evtchn( u32 virq, void (*handler)(int, struct pt_regs *) );
+void unbind_evtchn( u32 port );
void init_events(void);
+void unbind_virq( u32 port );
-static inline int notify_via_evtchn(int port)
+static inline int notify_remote_via_evtchn(int port)
{
evtchn_op_t op;
op.cmd = EVTCHNOP_send;