diff options
author | sos22@douglas.cl.cam.ac.uk <sos22@douglas.cl.cam.ac.uk> | 2006-07-28 14:02:49 +0100 |
---|---|---|
committer | sos22@douglas.cl.cam.ac.uk <sos22@douglas.cl.cam.ac.uk> | 2006-07-28 14:02:49 +0100 |
commit | a0f55d516b1eec2c53530338e6fab512586eea5f (patch) | |
tree | 9cfcfa5ad85d3d6e59a5398468b5a626d3e86810 /extras/mini-os/include/events.h | |
parent | d4b239ecc1455bd212c410bdb2bacaa2d3a6b702 (diff) | |
download | xen-a0f55d516b1eec2c53530338e6fab512586eea5f.tar.gz xen-a0f55d516b1eec2c53530338e6fab512586eea5f.tar.bz2 xen-a0f55d516b1eec2c53530338e6fab512586eea5f.zip |
[MINI-OS] Clean up event channel types in mini-os.
Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Diffstat (limited to 'extras/mini-os/include/events.h')
-rw-r--r-- | extras/mini-os/include/events.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/extras/mini-os/include/events.h b/extras/mini-os/include/events.h index 5e032bb4b4..1ffcecb61b 100644 --- a/extras/mini-os/include/events.h +++ b/extras/mini-os/include/events.h @@ -22,19 +22,19 @@ #include<traps.h> #include <xen/event_channel.h> +typedef void (*evtchn_handler_t)(evtchn_port_t, struct pt_regs *, void *); + /* prototypes */ -int do_event(u32 port, struct pt_regs *regs); -int bind_virq( u32 virq, void (*handler)(int, struct pt_regs *, void *data), - void *data); -int bind_evtchn( u32 virq, void (*handler)(int, struct pt_regs *, void *data), - void *data ); -void unbind_evtchn( u32 port ); +int do_event(evtchn_port_t port, struct pt_regs *regs); +int bind_virq(uint32_t virq, evtchn_handler_t handler, void *data); +evtchn_port_t bind_evtchn(evtchn_port_t port, evtchn_handler_t handler, + void *data); +void unbind_evtchn(evtchn_port_t port); void init_events(void); -int evtchn_alloc_unbound(void (*handler)(int, struct pt_regs *regs, - void *data), - void *data); +evtchn_port_t evtchn_alloc_unbound(evtchn_handler_t handler, + void *data); -static inline int notify_remote_via_evtchn(int port) +static inline int notify_remote_via_evtchn(evtchn_port_t port) { evtchn_op_t op; op.cmd = EVTCHNOP_send; |