The PCI-6534 requires a firmware upload after power-up to work, the
firmware data and instructions for loading it with comedi_config
it are contained in the
-comedi_firmware tarball available from http://www.comedi.org
+comedi_nonfree_firmware tarball available from http://www.comedi.org
*/
/*
writew(0xc0 | fpga_index, dev->iobase + Firmware_Control_Register);
for(i = 0; (readw(dev->iobase + Firmware_Status_Register) & 0x2) == 0 && i < timeout; ++i)
{
- comedi_udelay(1);
+ udelay(1);
}
if(i == timeout)
{
writew(0x80 | fpga_index, dev->iobase + Firmware_Control_Register);
for(i = 0; readw(dev->iobase + Firmware_Status_Register) != 0x3 && i < timeout; ++i)
{
- comedi_udelay(1);
+ udelay(1);
}
if(i == timeout)
{
writew(value, dev->iobase + Firmware_Data_Register);
for(i = 0; (readw(dev->iobase + Firmware_Status_Register) & 0x2) == 0 && i < timeout; ++i)
{
- comedi_udelay(1);
+ udelay(1);
}
if(i == timeout)
{
printk("ni_pcidio: failed to load word into fpga %i\n", fpga_index);
return -EIO;
}
+ if(need_resched())
+ schedule();
}
writew(0x0, dev->iobase + Firmware_Control_Register);
return 0;