mite->ring[i].next=0;
mite->ring[i].unused=0x1c; /* eh? */
+ mite->used = 1;
+
return (int) mite->daq_io_addr;
}
iounmap(mite->daq_io_addr);
mite->daq_io_addr=NULL;
}
+
+ mite->used = 0;
}
for(mite=mite_devices;mite;mite=next){
next=mite->next;
printk(" 0x%04x",mite_device_id(mite));
+ if(mite->used)printk("(used)");
}
printk("\n");
int i;
for(mite=mite_devices;mite;mite=mite->next){
+ if(mite->used)continue;
for(i=0;i<n_nidio_boards;i++){
if(mite_device_id(mite)==nidio_boards[i].dev_id){
dev->board=i;
adbits: 16,
ai_fifo_depth: 512,
alwaysdither: 1,
- gainlkup: ai_gain_8_602x, // XXX check
+ gainlkup: ai_gain_4_603x,
ai_speed: 5000,
n_aochan: 0,
aobits: 0,
int i;
for(mite=mite_devices;mite;mite=mite->next){
+ if(mite->used)continue;
for(i=0;i<n_pcimio_boards;i++){
if(mite_device_id(mite)==ni_boards[i].device_id){
dev->board=i;