/* The below is only used for intr subdevices */
struct {
- /*
- * the number of asic channels in this subdev
- * that have interrutps
- */
- int num_asic_chans;
/*
* subdev-relative channel mask for channels
* we are interested in
unsigned mytrig =
((triggered >> 0)
&
- ((0x1 << subpriv->
- dio.intr.
- num_asic_chans) -
+ ((0x1 << 24) -
1)) << 0;
if (mytrig &
subpriv->dio.
subpriv->dio.intr.enabled_mask = 0;
subpriv->dio.intr.active = 1;
- nports = subpriv->dio.intr.num_asic_chans / CHANS_PER_PORT;
+ nports = 24 / CHANS_PER_PORT;
firstport = 0 / CHANS_PER_PORT;
if (cmd->chanlist) {
for (n = 0; n < cmd->chanlist_len; n++) {
<< CR_CHAN(cmd->chanlist[n]);
}
}
- bits &= ((0x1 << subpriv->dio.intr.num_asic_chans) - 1) << 0;
+ bits &= ((0x1 << 24) - 1) << 0;
subpriv->dio.intr.enabled_mask = bits;
{
subpriv = s->private;
subpriv->dio.intr.active = 0;
subpriv->dio.intr.stop_count = 0;
- subpriv->dio.intr.num_asic_chans = 24;
spin_lock_init(&subpriv->dio.intr.spinlock);