if((ret=alloc_subdevices(dev))<0)
return ret;
+ dev->read_subdev = 0;
s = dev->subdevices + 0;
s->type = COMEDI_SUBD_AI;
s->subdev_flags = SDF_READABLE|SDF_RT|SDF_COMMON|SDF_GROUND|SDF_DIFF;
* 0=use SSHO (pin 45) signal with onboard hardware S&H logic
* 1=use ADCHN7 (pin 23) signal and use software for timing
* (in this case external multiplexor can serve only 128 A/D channels)
-*/
\ No newline at end of file
+*/
+
printk(" ( no irq )\n");
}
+ dev->read_subdev=0;
s=dev->subdevices+0;
/* ai */
if(thisboard->ai){
if(alloc_subdevices(dev) < 0)
return -ENOMEM;
+ dev->read_subdev = 0;
/* analog input subdevice */
s = dev->subdevices + 0;
s->type = COMEDI_SUBD_AI;
if(alloc_subdevices(dev) < 0)
return -ENOMEM;
+ dev->read_subdev = 0;
/* analog input subdevice */
s = dev->subdevices + 0;
s->type = COMEDI_SUBD_AI;
if((ret=alloc_private(dev,sizeof(dt2814_private)))<0)
return ret;
+ dev->read_subdev = 0;
s=dev->subdevices+0;
s->type=COMEDI_SUBD_AI;
s->subdev_flags=SDF_READABLE;
s=dev->subdevices+0;
+ dev->read_subdev=0;
/* ai subdevice */
s->type=COMEDI_SUBD_AI;
s->subdev_flags=SDF_READABLE|((it->options[opt_diff])?SDF_DIFF:SDF_COMMON);
s++;
if((s->n_chan=boardtype.dachan)){
+ dev->write_subdev=1;
/* ao subsystem */
s->type=COMEDI_SUBD_AO;
s->subdev_flags=SDF_WRITEABLE;
devpriv->dac1_coding = it->options[12];
+ dev->read_subdev = 0;
/* setup sub-devices */
s=dev->subdevices+0;
/* ai subdevice */
/* analog input subdevice */
+ dev->read_subdev=0;
s=dev->subdevices+0;
s->type=COMEDI_SUBD_AI;
s->subdev_flags=SDF_READABLE|SDF_RT|SDF_GROUND|SDF_COMMON|SDF_DIFF|SDF_OTHER;
/* analog output subdevice */
/* XXX what about boards without ao? */
+ dev->write_subdev=1;
s=dev->subdevices+1;
if(boardtype.n_aochan){
s->type=COMEDI_SUBD_AO;
return -ENOMEM;
s=dev->subdevices+0;
+ dev->read_subdev=0;
/* analog input subdevice */
s->type=COMEDI_SUBD_AI;
s->subdev_flags=SDF_READABLE;