Index: mite.c
===================================================================
RCS file: /var/cvs/comedi/comedi/drivers/mite.c,v
retrieving revision 1.55
diff -r1.55 mite.c
61a62
> #define PCI_DAQ_SIZE_660X       8192
123c124,130
< 	length = PCI_DAQ_SIZE + offset;
---
> 
> 	// In case of a 660x board, DAQ size is 8k instead of 4k (see as shown by lspci output)
> 	if ((mite->pcidev->device == 0x1310) || (mite->pcidev->device == 0x2c60)){
> 	        length = PCI_DAQ_SIZE_660X + offset;
> 		printk("mite: detected NI660X board, using PCI DAQ SIZE of 8k\n");
> 	}
>         else length = PCI_DAQ_SIZE + offset;
127c134,141
< 	writel(mite->daq_phys_addr | WENAB , mite->mite_io_addr + MITE_IODWBSR);
---
> 	// The 6602 board needs different initalisation, see the
> 	// _updated_ (nov 2002) reg. Level Manual p. 3.55
> 	if (mite->pcidev->device == 0x1310 ){
> 	        printk("mite: detected NI6602, using other I/O Window Base Size register\n");
> 	        writel((mite->daq_phys_addr & 0xffffff00L) | WENAB_6602 , mite->mite_io_addr + MITE_IODWBSR_NI6602);
> 	        writel(0 , mite->mite_io_addr + MITE_IODWCR_NI6602);
> 	}
> 	else writel(mite->daq_phys_addr | WENAB , mite->mite_io_addr + MITE_IODWBSR);
