Commit c5f26499 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_stc.h: refactor 'aobits' boardinfo

For aesthetics, change the 'aobits' in the boardinfo to 'ao_maxdata'
to remove the need for the calculation of the subdevice 'maxdata'.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent db2255f5
...@@ -113,7 +113,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -113,7 +113,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -129,7 +129,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -129,7 +129,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 2000, .ai_speed = 2000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -145,7 +145,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -145,7 +145,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 10000, .ao_speed = 10000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -160,7 +160,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -160,7 +160,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 10000, .ao_speed = 10000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -176,7 +176,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -176,7 +176,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 2000, .ai_speed = 2000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -193,7 +193,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -193,7 +193,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_8, .gainlkup = ai_gain_8,
.ai_speed = 50000, .ai_speed = 50000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 50000, .ao_speed = 50000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -209,7 +209,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -209,7 +209,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_14, .gainlkup = ai_gain_14,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
......
...@@ -5544,7 +5544,7 @@ static int ni_E_init(struct comedi_device *dev, ...@@ -5544,7 +5544,7 @@ static int ni_E_init(struct comedi_device *dev,
if (devpriv->is_m_series) if (devpriv->is_m_series)
s->subdev_flags |= SDF_SOFT_CALIBRATED; s->subdev_flags |= SDF_SOFT_CALIBRATED;
s->n_chan = board->n_aochan; s->n_chan = board->n_aochan;
s->maxdata = (1 << board->aobits) - 1; s->maxdata = board->ao_maxdata;
s->range_table = board->ao_range_table; s->range_table = board->ao_range_table;
s->insn_read = &ni_ao_insn_read; s->insn_read = &ni_ao_insn_read;
s->insn_write = &ni_ao_insn_write; s->insn_write = &ni_ao_insn_write;
......
...@@ -81,7 +81,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -81,7 +81,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 2000, .ai_speed = 2000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1176, .ao_speed = 1176,
...@@ -97,7 +97,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -97,7 +97,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000000, .ao_speed = 1000000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -113,7 +113,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -113,7 +113,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000000, .ao_speed = 1000000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -124,7 +124,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -124,7 +124,7 @@ static const struct ni_board_struct ni_boards[] = {
.name = "DAQCard-6715", .name = "DAQCard-6715",
.device_id = 0x0000, /* unknown */ .device_id = 0x0000, /* unknown */
.n_aochan = 8, .n_aochan = 8,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_671x = 8192, .ao_671x = 8192,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
.caldac = { mb88341, mb88341 }, .caldac = { mb88341, mb88341 },
......
...@@ -217,7 +217,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -217,7 +217,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_8, .gainlkup = ai_gain_8,
.ai_speed = 50000, .ai_speed = 50000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 50000, .ao_speed = 50000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -232,7 +232,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -232,7 +232,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_14, .gainlkup = ai_gain_14,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 10000, .ao_speed = 10000,
...@@ -248,7 +248,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -248,7 +248,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 100000, .ao_speed = 100000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -263,7 +263,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -263,7 +263,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_14, .gainlkup = ai_gain_14,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 10000, .ao_speed = 10000,
...@@ -278,7 +278,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -278,7 +278,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -297,7 +297,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -297,7 +297,7 @@ static const struct ni_board_struct ni_boards[] = {
*/ */
.ai_speed = 2000, .ai_speed = 2000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 512, .ao_fifo_depth = 512,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -312,7 +312,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -312,7 +312,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 2000, .ai_speed = 2000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 512, .ao_fifo_depth = 512,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -328,7 +328,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -328,7 +328,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_14, .gainlkup = ai_gain_14,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 10000, .ao_speed = 10000,
...@@ -366,7 +366,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -366,7 +366,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -391,7 +391,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -391,7 +391,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 100000, .ao_speed = 100000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -405,7 +405,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -405,7 +405,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 100000, .ao_speed = 100000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -420,7 +420,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -420,7 +420,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 100000, .ao_speed = 100000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -447,7 +447,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -447,7 +447,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 100000, .ao_speed = 100000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -462,7 +462,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -462,7 +462,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 3000, .ai_speed = 3000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 3000, .ao_speed = 3000,
...@@ -479,7 +479,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -479,7 +479,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_611x, .gainlkup = ai_gain_611x,
.ai_speed = 200, .ai_speed = 200,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.reg_type = ni_reg_611x, .reg_type = ni_reg_611x,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
...@@ -495,7 +495,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -495,7 +495,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_611x, .gainlkup = ai_gain_611x,
.ai_speed = 200, .ai_speed = 200,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.reg_type = ni_reg_611x, .reg_type = ni_reg_611x,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
...@@ -513,7 +513,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -513,7 +513,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_611x, .gainlkup = ai_gain_611x,
.ai_speed = 100, .ai_speed = 100,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_671x = 1, .ao_671x = 1,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_speed = 250, .ao_speed = 250,
...@@ -532,7 +532,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -532,7 +532,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_611x, .gainlkup = ai_gain_611x,
.ai_speed = 100, .ai_speed = 100,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_671x = 1, .ao_671x = 1,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_speed = 250, .ao_speed = 250,
...@@ -545,7 +545,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -545,7 +545,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PCI6711] = { [BOARD_PCI6711] = {
.name = "pci-6711", .name = "pci-6711",
.n_aochan = 4, .n_aochan = 4,
.aobits = 12, .ao_maxdata = 0x0fff,
/* data sheet says 8192, but fifo really holds 16384 samples */ /* data sheet says 8192, but fifo really holds 16384 samples */
.ao_fifo_depth = 16384, .ao_fifo_depth = 16384,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
...@@ -557,7 +557,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -557,7 +557,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PXI6711] = { [BOARD_PXI6711] = {
.name = "pxi-6711", .name = "pxi-6711",
.n_aochan = 4, .n_aochan = 4,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 16384, .ao_fifo_depth = 16384,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -568,7 +568,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -568,7 +568,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PCI6713] = { [BOARD_PCI6713] = {
.name = "pci-6713", .name = "pci-6713",
.n_aochan = 8, .n_aochan = 8,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 16384, .ao_fifo_depth = 16384,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -579,7 +579,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -579,7 +579,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PXI6713] = { [BOARD_PXI6713] = {
.name = "pxi-6713", .name = "pxi-6713",
.n_aochan = 8, .n_aochan = 8,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 16384, .ao_fifo_depth = 16384,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -590,7 +590,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -590,7 +590,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PCI6731] = { [BOARD_PCI6731] = {
.name = "pci-6731", .name = "pci-6731",
.n_aochan = 4, .n_aochan = 4,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8192, .ao_fifo_depth = 8192,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -602,7 +602,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -602,7 +602,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PXI6731] = { /* .device_id = ????, */ [BOARD_PXI6731] = { /* .device_id = ????, */
.name = "pxi-6731", .name = "pxi-6731",
.n_aochan = 4, .n_aochan = 4,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8192, .ao_fifo_depth = 8192,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -613,7 +613,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -613,7 +613,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PCI6733] = { [BOARD_PCI6733] = {
.name = "pci-6733", .name = "pci-6733",
.n_aochan = 8, .n_aochan = 8,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 16384, .ao_fifo_depth = 16384,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -624,7 +624,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -624,7 +624,7 @@ static const struct ni_board_struct ni_boards[] = {
[BOARD_PXI6733] = { [BOARD_PXI6733] = {
.name = "pxi-6733", .name = "pxi-6733",
.n_aochan = 8, .n_aochan = 8,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 16384, .ao_fifo_depth = 16384,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -641,7 +641,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -641,7 +641,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -657,7 +657,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -657,7 +657,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 12, .ao_maxdata = 0x0fff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 1000, .ao_speed = 1000,
...@@ -673,7 +673,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -673,7 +673,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_16, .gainlkup = ai_gain_16,
.ai_speed = 3000, .ai_speed = 3000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 3000, .ao_speed = 3000,
...@@ -689,7 +689,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -689,7 +689,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_14, .gainlkup = ai_gain_14,
.ai_speed = 10000, .ai_speed = 10000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 2048, .ao_fifo_depth = 2048,
.ao_range_table = &range_ni_E_ao_ext, .ao_range_table = &range_ni_E_ao_ext,
.ao_speed = 10000, .ao_speed = 10000,
...@@ -705,7 +705,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -705,7 +705,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_4, .gainlkup = ai_gain_4,
.ai_speed = 5000, .ai_speed = 5000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.ao_speed = 100000, .ao_speed = 100000,
.num_p0_dio_channels = 8, .num_p0_dio_channels = 8,
...@@ -730,7 +730,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -730,7 +730,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_622x, .gainlkup = ai_gain_622x,
.ai_speed = 4000, .ai_speed = 4000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x, .reg_type = ni_reg_622x,
...@@ -746,7 +746,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -746,7 +746,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_622x, .gainlkup = ai_gain_622x,
.ai_speed = 4000, .ai_speed = 4000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x, .reg_type = ni_reg_622x,
...@@ -784,7 +784,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -784,7 +784,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_622x, .gainlkup = ai_gain_622x,
.ai_speed = 4000, .ai_speed = 4000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x, .reg_type = ni_reg_622x,
...@@ -800,7 +800,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -800,7 +800,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_622x, .gainlkup = ai_gain_622x,
.ai_speed = 4000, .ai_speed = 4000,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x, .reg_type = ni_reg_622x,
...@@ -816,7 +816,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -816,7 +816,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_622x, .gainlkup = ai_gain_622x,
.ai_speed = 4000, .ai_speed = 4000,
.n_aochan = 4, .n_aochan = 4,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_bipolar10, .ao_range_table = &range_bipolar10,
.reg_type = ni_reg_622x, .reg_type = ni_reg_622x,
...@@ -843,7 +843,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -843,7 +843,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_625x_ao, .ao_range_table = &range_ni_M_625x_ao,
.reg_type = ni_reg_625x, .reg_type = ni_reg_625x,
...@@ -859,7 +859,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -859,7 +859,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_625x_ao, .ao_range_table = &range_ni_M_625x_ao,
.reg_type = ni_reg_625x, .reg_type = ni_reg_625x,
...@@ -875,7 +875,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -875,7 +875,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_625x_ao, .ao_range_table = &range_ni_M_625x_ao,
.reg_type = ni_reg_625x, .reg_type = ni_reg_625x,
...@@ -902,7 +902,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -902,7 +902,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 4, .n_aochan = 4,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_625x_ao, .ao_range_table = &range_ni_M_625x_ao,
.reg_type = ni_reg_625x, .reg_type = ni_reg_625x,
...@@ -918,7 +918,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -918,7 +918,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 800, .ai_speed = 800,
.n_aochan = 4, .n_aochan = 4,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_625x_ao, .ao_range_table = &range_ni_M_625x_ao,
.reg_type = ni_reg_625x, .reg_type = ni_reg_625x,
...@@ -946,7 +946,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -946,7 +946,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 1600, .ai_speed = 1600,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_628x_ao, .ao_range_table = &range_ni_M_628x_ao,
.reg_type = ni_reg_628x, .reg_type = ni_reg_628x,
...@@ -962,7 +962,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -962,7 +962,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 1600, .ai_speed = 1600,
.n_aochan = 2, .n_aochan = 2,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_628x_ao, .ao_range_table = &range_ni_M_628x_ao,
.reg_type = ni_reg_628x, .reg_type = ni_reg_628x,
...@@ -989,7 +989,7 @@ static const struct ni_board_struct ni_boards[] = { ...@@ -989,7 +989,7 @@ static const struct ni_board_struct ni_boards[] = {
.gainlkup = ai_gain_628x, .gainlkup = ai_gain_628x,
.ai_speed = 1600, .ai_speed = 1600,
.n_aochan = 4, .n_aochan = 4,
.aobits = 16, .ao_maxdata = 0xffff,
.ao_fifo_depth = 8191, .ao_fifo_depth = 8191,
.ao_range_table = &range_ni_M_628x_ao, .ao_range_table = &range_ni_M_628x_ao,
.reg_type = ni_reg_628x, .reg_type = ni_reg_628x,
......
...@@ -1401,7 +1401,7 @@ struct ni_board_struct { ...@@ -1401,7 +1401,7 @@ struct ni_board_struct {
int ai_speed; int ai_speed;
int n_aochan; int n_aochan;
int aobits; unsigned int ao_maxdata;
int ao_fifo_depth; int ao_fifo_depth;
const struct comedi_lrange *ao_range_table; const struct comedi_lrange *ao_range_table;
unsigned ao_speed; unsigned ao_speed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment