Re: NI DAQCard 1200

Hi

fredag 09 juni 2006 15:08 skrev Ian Abbott:
> >  /*====================================================================*/
> >
> >  /*
> > _at__at_ -300,11 +310,15 _at__at_
> >  #endif
> >      /* Interrupt setup */
> >      link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_FORCED_PULSE;
> > +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
> > +    link->irq.IRQInfo1 = IRQ_PULSE_ID;
> > +#else
> >      link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_PULSE_ID;
> >      if (irq_list[0] == -1)
> >  		link->irq.IRQInfo2 = irq_mask;
> >      else for (i = 0; i < 4; i++)
> >  	    link->irq.IRQInfo2 |= 1 << irq_list[i];
> > +#endif
> >      link->irq.Handler = NULL;
> >
> >      /*
>
> I think it should still work if you omit this part of the patch, as
> IRQInfo2 should be ignored anyway.  Is it possible for you to test the
> driver with the IRQInfo2 stuff left in for 2.6.16 to see if it still works?

Yes, this entire section of the patch can be omitted, at least for 
daqcard-1200, (surprisingly to me) even IRQ_INFO2_VALID can be left in.

Regards
Torben

>
> I think I'll update my PCMCIA patches anyway to get rid of the IRQInfo2
> stuff for 2.6.11 upwards.  Thanks for the info!
Welcome!

Received on 2006-06-09Z13:41:59