From: David Schleef Date: Sat, 14 Jul 2001 21:43:18 +0000 (+0000) Subject: PowerPC has higher IRQ numbers. X-Git-Tag: r0_7_60~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f9d560fd630ab4288704ca6b845a3a0677fd8d2;p=comedi.git PowerPC has higher IRQ numbers. --- 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) {