bool 'National Instruments boards' CONFIG_COMEDI_NI
if [ "$CONFIG_COMEDI_NI" = "y" ];then
tristate ' AT-MIO E series' CONFIG_COMEDI_NI_ATMIO
+ tristate ' PCMCIA MIO E series' CONFIG_COMEDI_NI_MIO_CS
if [ "$CONFIG_PCI" = "y" ];then
tristate ' PCI-MIO E series' CONFIG_COMEDI_NI_PCIMIO
tristate ' NI PCI-DIO series' CONFIG_COMEDI_NI_PCIDIO
obj-$(CONFIG_COMEDI_MULTIQ3) += multiq3.o
obj-$(CONFIG_COMEDI_NI_ATMIO) += ni_atmio.o
+obj-$(CONFIG_COMEDI_NI_MIO_CS) += ni_mio_cs.o
obj-$(CONFIG_COMEDI_NI_PCIMIO) += ni_pcimio.o
obj-$(CONFIG_COMEDI_NI_PCIDIO) += ni_pcidio.o
obj-$(CONFIG_COMEDI_MITE) += mite.o
ni_writew(conf,AO_Configuration);
- if(range&1)data^=0x800;
+ if(range&1)
+ data^=(1<<(boardtype.aobits-1));
ni_writew(data,(chan)? DAC1_Direct_Data : DAC0_Direct_Data);
}
for(bit=0x80;bit;bit>>=1){
ni_writeb_p(0x04,Serial_Command);
ni_writeb_p(0x05,Serial_Command);
- bitstring|=((ni_readb_p(Status)&0x01)?bit:0);
+ bitstring|=((ni_readb_p(XXX_Status)&0x01)?bit:0);
}
ni_writeb_p(0x00,Serial_Command);
/* i/o port offsets */
/* 8 bit registers */
-#define Status 0x01
+#define XXX_Status 0x01
#define Serial_Command 0x0d
#define Misc_Command 0x0f
#define Port_A 0x19