}, {
.name = "ME-4670",
.device_id = 0x4670,
- .ao = {
- .count = 4,
- },
+ .ao_nchan = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ex_trig_analog = 1,
}, {
.name = "ME-4670i",
.device_id = 0x4671,
- .ao = {
- .count = 4,
- },
+ .ao_nchan = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ex_trig_analog = 1,
}, {
.name = "ME-4670s",
.device_id = 0x4672,
- .ao = {
- .count = 4,
- },
+ .ao_nchan = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ai_sh_nchan = 8,
}, {
.name = "ME-4670is",
.device_id = 0x4673,
- .ao = {
- .count = 4,
- },
+ .ao_nchan = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ai_sh_nchan = 8,
}, {
.name = "ME-4680",
.device_id = 0x4680,
- .ao = {
- .count = 4,
- .fifo_count = 4,
- },
+ .ao_nchan = 4,
+ .ao_fifo = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ex_trig_analog = 1,
}, {
.name = "ME-4680i",
.device_id = 0x4681,
- .ao = {
- .count = 4,
- .fifo_count = 4,
- },
+ .ao_nchan = 4,
+ .ao_fifo = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ex_trig_analog = 1,
}, {
.name = "ME-4680s",
.device_id = 0x4682,
- .ao = {
- .count = 4,
- .fifo_count = 4,
- },
+ .ao_nchan = 4,
+ .ao_fifo = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ai_sh_nchan = 8,
}, {
.name = "ME-4680is",
.device_id = 0x4683,
- .ao = {
- .count = 4,
- .fifo_count = 4,
- },
+ .ao_nchan = 4,
+ .ao_fifo = 4,
.ai_nchan = 32,
.ai_diff_nchan = 16,
.ai_sh_nchan = 8,
{
int i;
- for (i = 0; i < thisboard->ao.count; i++) {
+ for (i = 0; i < thisboard->ao_nchan; i++) {
/* spin_lock_init(&info->ao_context[i].use_lock); */
info->ao_context[i].irq = info->irq;
return -EINVAL;
}
- if (chan >= thisboard->ao.count) {
+ if (chan >= thisboard->ao_nchan) {
printk(KERN_ERR
"comedi%d: me4000: me4000_ao_insn_write(): "
"Invalid channel %d\n", dev->minor, insn->n);
s = &dev->subdevices[1];
- if (thisboard->ao.count) {
+ if (thisboard->ao_nchan) {
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITEABLE | SDF_COMMON | SDF_GROUND;
- s->n_chan = thisboard->ao.count;
+ s->n_chan = thisboard->ao_nchan;
s->maxdata = 0xFFFF; /* 16 bit DAC */
s->range_table = &me4000_ao_range;
s->insn_write = me4000_ao_insn_write;
Information about the hardware capabilities
===========================================================================*/
-struct me4000_ao_info {
- int count;
- int fifo_count;
-};
-
struct me4000_board {
const char *name;
unsigned short device_id;
- struct me4000_ao_info ao;
+ int ao_nchan;
+ int ao_fifo;
int ai_nchan;
int ai_diff_nchan;
int ai_sh_nchan;