From 5f9d560fd630ab4288704ca6b845a3a0677fd8d2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 14 Jul 2001 21:43:18 +0000 Subject: [PATCH] PowerPC has higher IRQ numbers. --- comedi/rt.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/comedi/rt.c b/comedi/rt.c index 85fd0ae8..6b0e0066 100644 --- a/comedi/rt.c +++ b/comedi/rt.c @@ -174,6 +174,7 @@ void comedi_rt_pend_wakeup(wait_queue_head_t *q) /* RTAI section */ #ifdef CONFIG_COMEDI_RTAI +#if 0 #define DECLARE_VOID_IRQ(irq) \ static void handle_void_irq_ ## irq (void){ handle_void_irq(irq);} @@ -251,6 +252,25 @@ static int rt_release_irq(struct comedi_irq_struct *it) rt_free_global_irq(it->irq); return 0; } +#else + +static int rt_get_irq(struct comedi_irq_struct *it) +{ + rt_request_global_irq_arg(it->irq,it->handler,it->flags, + it->device,it->dev_id); + rt_startup_irq(it->irq); + + return 0; +} + +static int rt_release_irq(struct comedi_irq_struct *it) +{ + rt_shutdown_irq(it->irq); + rt_free_global_irq(it->irq); + return 0; +} +#endif + void comedi_rt_init(void) { -- 2.26.2