linux/drivers/comedi/drivers/ni_stc.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Register descriptions for NI DAQ-STC chip
 *
 * COMEDI - Linux Control and Measurement Device Interface
 * Copyright (C) 1998-9 David A. Schleef <[email protected]>
 */

/*
 * References:
 *   DAQ-STC Technical Reference Manual
 */

#ifndef _COMEDI_NI_STC_H
#define _COMEDI_NI_STC_H

#include "ni_tio.h"
#include "ni_routes.h"

/*
 * Registers in the National Instruments DAQ-STC chip
 */

#define NISTC_INTA_ACK_REG
#define NISTC_INTA_ACK_G0_GATE
#define NISTC_INTA_ACK_G0_TC
#define NISTC_INTA_ACK_AI_ERR
#define NISTC_INTA_ACK_AI_STOP
#define NISTC_INTA_ACK_AI_START
#define NISTC_INTA_ACK_AI_START2
#define NISTC_INTA_ACK_AI_START1
#define NISTC_INTA_ACK_AI_SC_TC
#define NISTC_INTA_ACK_AI_SC_TC_ERR
#define NISTC_INTA_ACK_G0_TC_ERR
#define NISTC_INTA_ACK_G0_GATE_ERR
#define NISTC_INTA_ACK_AI_ALL

#define NISTC_INTB_ACK_REG
#define NISTC_INTB_ACK_G1_GATE
#define NISTC_INTB_ACK_G1_TC
#define NISTC_INTB_ACK_AO_ERR
#define NISTC_INTB_ACK_AO_STOP
#define NISTC_INTB_ACK_AO_START
#define NISTC_INTB_ACK_AO_UPDATE
#define NISTC_INTB_ACK_AO_START1
#define NISTC_INTB_ACK_AO_BC_TC
#define NISTC_INTB_ACK_AO_UC_TC
#define NISTC_INTB_ACK_AO_UI2_TC
#define NISTC_INTB_ACK_AO_UI2_TC_ERR
#define NISTC_INTB_ACK_AO_BC_TC_ERR
#define NISTC_INTB_ACK_AO_BC_TC_TRIG_ERR
#define NISTC_INTB_ACK_G1_TC_ERR
#define NISTC_INTB_ACK_G1_GATE_ERR
#define NISTC_INTB_ACK_AO_ALL

#define NISTC_AI_CMD2_REG
#define NISTC_AI_CMD2_END_ON_SC_TC
#define NISTC_AI_CMD2_END_ON_EOS
#define NISTC_AI_CMD2_START1_DISABLE
#define NISTC_AI_CMD2_SC_SAVE_TRACE
#define NISTC_AI_CMD2_SI_SW_ON_SC_TC
#define NISTC_AI_CMD2_SI_SW_ON_STOP
#define NISTC_AI_CMD2_SI_SW_ON_TC
#define NISTC_AI_CMD2_SC_SW_ON_TC
#define NISTC_AI_CMD2_STOP_PULSE
#define NISTC_AI_CMD2_START_PULSE
#define NISTC_AI_CMD2_START2_PULSE
#define NISTC_AI_CMD2_START1_PULSE

#define NISTC_AO_CMD2_REG
#define NISTC_AO_CMD2_END_ON_BC_TC(x)
#define NISTC_AO_CMD2_START_STOP_GATE_ENA
#define NISTC_AO_CMD2_UC_SAVE_TRACE
#define NISTC_AO_CMD2_BC_GATE_ENA
#define NISTC_AO_CMD2_BC_SAVE_TRACE
#define NISTC_AO_CMD2_UI_SW_ON_BC_TC
#define NISTC_AO_CMD2_UI_SW_ON_STOP
#define NISTC_AO_CMD2_UI_SW_ON_TC
#define NISTC_AO_CMD2_UC_SW_ON_BC_TC
#define NISTC_AO_CMD2_UC_SW_ON_TC
#define NISTC_AO_CMD2_BC_SW_ON_TC
#define NISTC_AO_CMD2_MUTE_B
#define NISTC_AO_CMD2_MUTE_A
#define NISTC_AO_CMD2_UPDATE2_PULSE
#define NISTC_AO_CMD2_START1_PULSE

#define NISTC_G0_CMD_REG
#define NISTC_G1_CMD_REG

#define NISTC_AI_CMD1_REG
#define NISTC_AI_CMD1_ATRIG_RESET
#define NISTC_AI_CMD1_DISARM
#define NISTC_AI_CMD1_SI2_ARM
#define NISTC_AI_CMD1_SI2_LOAD
#define NISTC_AI_CMD1_SI_ARM
#define NISTC_AI_CMD1_SI_LOAD
#define NISTC_AI_CMD1_DIV_ARM
#define NISTC_AI_CMD1_DIV_LOAD
#define NISTC_AI_CMD1_SC_ARM
#define NISTC_AI_CMD1_SC_LOAD
#define NISTC_AI_CMD1_SCAN_IN_PROG_PULSE
#define NISTC_AI_CMD1_EXTMUX_CLK_PULSE
#define NISTC_AI_CMD1_LOCALMUX_CLK_PULSE
#define NISTC_AI_CMD1_SC_TC_PULSE
#define NISTC_AI_CMD1_CONVERT_PULSE

#define NISTC_AO_CMD1_REG
#define NISTC_AO_CMD1_ATRIG_RESET
#define NISTC_AO_CMD1_START_PULSE
#define NISTC_AO_CMD1_DISARM
#define NISTC_AO_CMD1_UI2_ARM_DISARM
#define NISTC_AO_CMD1_UI2_LOAD
#define NISTC_AO_CMD1_UI_ARM
#define NISTC_AO_CMD1_UI_LOAD
#define NISTC_AO_CMD1_UC_ARM
#define NISTC_AO_CMD1_UC_LOAD
#define NISTC_AO_CMD1_BC_ARM
#define NISTC_AO_CMD1_BC_LOAD
#define NISTC_AO_CMD1_DAC1_UPDATE_MODE
#define NISTC_AO_CMD1_LDAC1_SRC_SEL
#define NISTC_AO_CMD1_DAC0_UPDATE_MODE
#define NISTC_AO_CMD1_LDAC0_SRC_SEL
#define NISTC_AO_CMD1_UPDATE_PULSE

#define NISTC_DIO_OUT_REG
#define NISTC_DIO_OUT_SERIAL(x)
#define NISTC_DIO_OUT_SERIAL_MASK
#define NISTC_DIO_OUT_PARALLEL(x)
#define NISTC_DIO_OUT_PARALLEL_MASK
#define NISTC_DIO_SDIN
#define NISTC_DIO_SDOUT

#define NISTC_DIO_CTRL_REG
#define NISTC_DIO_SDCLK
#define NISTC_DIO_CTRL_HW_SER_TIMEBASE
#define NISTC_DIO_CTRL_HW_SER_ENA
#define NISTC_DIO_CTRL_HW_SER_START
#define NISTC_DIO_CTRL_DIR(x)
#define NISTC_DIO_CTRL_DIR_MASK

#define NISTC_AI_MODE1_REG
#define NISTC_AI_MODE1_CONVERT_SRC(x)
#define NISTC_AI_MODE1_SI_SRC(x)
#define NISTC_AI_MODE1_CONVERT_POLARITY
#define NISTC_AI_MODE1_SI_POLARITY
#define NISTC_AI_MODE1_START_STOP
#define NISTC_AI_MODE1_RSVD
#define NISTC_AI_MODE1_CONTINUOUS
#define NISTC_AI_MODE1_TRIGGER_ONCE

#define NISTC_AI_MODE2_REG
#define NISTC_AI_MODE2_SC_GATE_ENA
#define NISTC_AI_MODE2_START_STOP_GATE_ENA
#define NISTC_AI_MODE2_PRE_TRIGGER
#define NISTC_AI_MODE2_EXTMUX_PRESENT
#define NISTC_AI_MODE2_SI2_INIT_LOAD_SRC
#define NISTC_AI_MODE2_SI2_RELOAD_MODE
#define NISTC_AI_MODE2_SI_INIT_LOAD_SRC
#define NISTC_AI_MODE2_SI_RELOAD_MODE(x)
#define NISTC_AI_MODE2_SI_WR_SWITCH
#define NISTC_AI_MODE2_SC_INIT_LOAD_SRC
#define NISTC_AI_MODE2_SC_RELOAD_MODE
#define NISTC_AI_MODE2_SC_WR_SWITCH

#define NISTC_AI_SI_LOADA_REG
#define NISTC_AI_SI_LOADB_REG
#define NISTC_AI_SC_LOADA_REG
#define NISTC_AI_SC_LOADB_REG
#define NISTC_AI_SI2_LOADA_REG
#define NISTC_AI_SI2_LOADB_REG

#define NISTC_G0_MODE_REG
#define NISTC_G1_MODE_REG
#define NISTC_G0_LOADA_REG
#define NISTC_G0_LOADB_REG
#define NISTC_G1_LOADA_REG
#define NISTC_G1_LOADB_REG
#define NISTC_G0_INPUT_SEL_REG
#define NISTC_G1_INPUT_SEL_REG

#define NISTC_AO_MODE1_REG
#define NISTC_AO_MODE1_UPDATE_SRC(x)
#define NISTC_AO_MODE1_UPDATE_SRC_MASK
#define NISTC_AO_MODE1_UI_SRC(x)
#define NISTC_AO_MODE1_UI_SRC_MASK
#define NISTC_AO_MODE1_MULTI_CHAN
#define NISTC_AO_MODE1_UPDATE_SRC_POLARITY
#define NISTC_AO_MODE1_UI_SRC_POLARITY
#define NISTC_AO_MODE1_UC_SW_EVERY_TC
#define NISTC_AO_MODE1_CONTINUOUS
#define NISTC_AO_MODE1_TRIGGER_ONCE

#define NISTC_AO_MODE2_REG
#define NISTC_AO_MODE2_FIFO_MODE(x)
#define NISTC_AO_MODE2_FIFO_MODE_MASK
#define NISTC_AO_MODE2_FIFO_MODE_E
#define NISTC_AO_MODE2_FIFO_MODE_HF
#define NISTC_AO_MODE2_FIFO_MODE_F
#define NISTC_AO_MODE2_FIFO_MODE_HF_F
#define NISTC_AO_MODE2_FIFO_REXMIT_ENA
#define NISTC_AO_MODE2_START1_DISABLE
#define NISTC_AO_MODE2_UC_INIT_LOAD_SRC
#define NISTC_AO_MODE2_UC_WR_SWITCH
#define NISTC_AO_MODE2_UI2_INIT_LOAD_SRC
#define NISTC_AO_MODE2_UI2_RELOAD_MODE
#define NISTC_AO_MODE2_UI_INIT_LOAD_SRC
#define NISTC_AO_MODE2_UI_RELOAD_MODE(x)
#define NISTC_AO_MODE2_UI_WR_SWITCH
#define NISTC_AO_MODE2_BC_INIT_LOAD_SRC
#define NISTC_AO_MODE2_BC_RELOAD_MODE
#define NISTC_AO_MODE2_BC_WR_SWITCH

#define NISTC_AO_UI_LOADA_REG
#define NISTC_AO_UI_LOADB_REG
#define NISTC_AO_BC_LOADA_REG
#define NISTC_AO_BC_LOADB_REG
#define NISTC_AO_UC_LOADA_REG
#define NISTC_AO_UC_LOADB_REG

#define NISTC_CLK_FOUT_REG
#define NISTC_CLK_FOUT_ENA
#define NISTC_CLK_FOUT_TIMEBASE_SEL
#define NISTC_CLK_FOUT_DIO_SER_OUT_DIV2
#define NISTC_CLK_FOUT_SLOW_DIV2
#define NISTC_CLK_FOUT_SLOW_TIMEBASE
#define NISTC_CLK_FOUT_G_SRC_DIV2
#define NISTC_CLK_FOUT_TO_BOARD_DIV2
#define NISTC_CLK_FOUT_TO_BOARD
#define NISTC_CLK_FOUT_AI_OUT_DIV2
#define NISTC_CLK_FOUT_AI_SRC_DIV2
#define NISTC_CLK_FOUT_AO_OUT_DIV2
#define NISTC_CLK_FOUT_AO_SRC_DIV2
#define NISTC_CLK_FOUT_DIVIDER(x)
#define NISTC_CLK_FOUT_TO_DIVIDER(x)
#define NISTC_CLK_FOUT_DIVIDER_MASK

#define NISTC_IO_BIDIR_PIN_REG

#define NISTC_RTSI_TRIG_DIR_REG
#define NISTC_RTSI_TRIG_OLD_CLK_CHAN
#define NISTC_RTSI_TRIG_NUM_CHAN(_m)
#define NISTC_RTSI_TRIG_DIR(_c, _m)
#define NISTC_RTSI_TRIG_DIR_SUB_SEL1
#define NISTC_RTSI_TRIG_DIR_SUB_SEL1_SHIFT
#define NISTC_RTSI_TRIG_USE_CLK
#define NISTC_RTSI_TRIG_DRV_CLK

#define NISTC_INT_CTRL_REG
#define NISTC_INT_CTRL_INTB_ENA
#define NISTC_INT_CTRL_INTB_SEL(x)
#define NISTC_INT_CTRL_INTA_ENA
#define NISTC_INT_CTRL_INTA_SEL(x)
#define NISTC_INT_CTRL_PASSTHRU0_POL
#define NISTC_INT_CTRL_PASSTHRU1_POL
#define NISTC_INT_CTRL_3PIN_INT
#define NISTC_INT_CTRL_INT_POL

#define NISTC_AI_OUT_CTRL_REG
#define NISTC_AI_OUT_CTRL_START_SEL
#define NISTC_AI_OUT_CTRL_SCAN_IN_PROG_SEL(x)
#define NISTC_AI_OUT_CTRL_EXTMUX_CLK_SEL(x)
#define NISTC_AI_OUT_CTRL_LOCALMUX_CLK_SEL(x)
#define NISTC_AI_OUT_CTRL_SC_TC_SEL(x)
#define NISTC_AI_OUT_CTRL_CONVERT_SEL(x)
#define NISTC_AI_OUT_CTRL_CONVERT_HIGH_Z
#define NISTC_AI_OUT_CTRL_CONVERT_GND
#define NISTC_AI_OUT_CTRL_CONVERT_LOW
#define NISTC_AI_OUT_CTRL_CONVERT_HIGH

#define NISTC_ATRIG_ETC_REG
#define NISTC_ATRIG_ETC_GPFO_1_ENA
#define NISTC_ATRIG_ETC_GPFO_0_ENA
#define NISTC_ATRIG_ETC_GPFO_0_SEL(x)
#define NISTC_ATRIG_ETC_GPFO_0_SEL_TO_SRC(x)
#define NISTC_ATRIG_ETC_GPFO_1_SEL
#define NISTC_ATRIG_ETC_GPFO_1_SEL_TO_SRC(x)
#define NISTC_ATRIG_ETC_DRV
#define NISTC_ATRIG_ETC_ENA
#define NISTC_ATRIG_ETC_MODE(x)
#define NISTC_GPFO_0_G_OUT
#define NISTC_GPFO_1_G_OUT

#define NISTC_AI_START_STOP_REG
#define NISTC_AI_START_POLARITY
#define NISTC_AI_STOP_POLARITY
#define NISTC_AI_STOP_SYNC
#define NISTC_AI_STOP_EDGE
#define NISTC_AI_STOP_SEL(x)
#define NISTC_AI_START_SYNC
#define NISTC_AI_START_EDGE
#define NISTC_AI_START_SEL(x)

#define NISTC_AI_TRIG_SEL_REG
#define NISTC_AI_TRIG_START1_POLARITY
#define NISTC_AI_TRIG_START2_POLARITY
#define NISTC_AI_TRIG_START2_SYNC
#define NISTC_AI_TRIG_START2_EDGE
#define NISTC_AI_TRIG_START2_SEL(x)
#define NISTC_AI_TRIG_START1_SYNC
#define NISTC_AI_TRIG_START1_EDGE
#define NISTC_AI_TRIG_START1_SEL(x)

#define NISTC_AI_DIV_LOADA_REG

#define NISTC_AO_START_SEL_REG
#define NISTC_AO_START_UI2_SW_GATE
#define NISTC_AO_START_UI2_EXT_GATE_POL
#define NISTC_AO_START_POLARITY
#define NISTC_AO_START_AOFREQ_ENA
#define NISTC_AO_START_UI2_EXT_GATE_SEL(x)
#define NISTC_AO_START_SYNC
#define NISTC_AO_START_EDGE
#define NISTC_AO_START_SEL(x)

#define NISTC_AO_TRIG_SEL_REG
#define NISTC_AO_TRIG_UI2_EXT_GATE_ENA
#define NISTC_AO_TRIG_DELAYED_START1
#define NISTC_AO_TRIG_START1_POLARITY
#define NISTC_AO_TRIG_UI2_SRC_POLARITY
#define NISTC_AO_TRIG_UI2_SRC_SEL(x)
#define NISTC_AO_TRIG_START1_SYNC
#define NISTC_AO_TRIG_START1_EDGE
#define NISTC_AO_TRIG_START1_SEL(x)
#define NISTC_AO_TRIG_START1_SEL_MASK

#define NISTC_G0_AUTOINC_REG
#define NISTC_G1_AUTOINC_REG

#define NISTC_AO_MODE3_REG
#define NISTC_AO_MODE3_UI2_SW_NEXT_TC
#define NISTC_AO_MODE3_UC_SW_EVERY_BC_TC
#define NISTC_AO_MODE3_TRIG_LEN
#define NISTC_AO_MODE3_STOP_ON_OVERRUN_ERR
#define NISTC_AO_MODE3_STOP_ON_BC_TC_TRIG_ERR
#define NISTC_AO_MODE3_STOP_ON_BC_TC_ERR
#define NISTC_AO_MODE3_NOT_AN_UPDATE
#define NISTC_AO_MODE3_SW_GATE
#define NISTC_AO_MODE3_LAST_GATE_DISABLE

#define NISTC_RESET_REG
#define NISTC_RESET_SOFTWARE
#define NISTC_RESET_AO_CFG_END
#define NISTC_RESET_AI_CFG_END
#define NISTC_RESET_AO_CFG_START
#define NISTC_RESET_AI_CFG_START
#define NISTC_RESET_G1
#define NISTC_RESET_G0
#define NISTC_RESET_AO
#define NISTC_RESET_AI

#define NISTC_INTA_ENA_REG
#define NISTC_INTA2_ENA_REG
#define NISTC_INTA_ENA_PASSTHRU0
#define NISTC_INTA_ENA_G0_GATE
#define NISTC_INTA_ENA_AI_FIFO
#define NISTC_INTA_ENA_G0_TC
#define NISTC_INTA_ENA_AI_ERR
#define NISTC_INTA_ENA_AI_STOP
#define NISTC_INTA_ENA_AI_START
#define NISTC_INTA_ENA_AI_START2
#define NISTC_INTA_ENA_AI_START1
#define NISTC_INTA_ENA_AI_SC_TC
#define NISTC_INTA_ENA_AI_MASK

#define NISTC_INTB_ENA_REG
#define NISTC_INTB2_ENA_REG
#define NISTC_INTB_ENA_PASSTHRU1
#define NISTC_INTB_ENA_G1_GATE
#define NISTC_INTB_ENA_G1_TC
#define NISTC_INTB_ENA_AO_FIFO
#define NISTC_INTB_ENA_AO_UI2_TC
#define NISTC_INTB_ENA_AO_UC_TC
#define NISTC_INTB_ENA_AO_ERR
#define NISTC_INTB_ENA_AO_STOP
#define NISTC_INTB_ENA_AO_START
#define NISTC_INTB_ENA_AO_UPDATE
#define NISTC_INTB_ENA_AO_START1
#define NISTC_INTB_ENA_AO_BC_TC

#define NISTC_AI_PERSONAL_REG
#define NISTC_AI_PERSONAL_SHIFTIN_PW
#define NISTC_AI_PERSONAL_EOC_POLARITY
#define NISTC_AI_PERSONAL_SOC_POLARITY
#define NISTC_AI_PERSONAL_SHIFTIN_POL
#define NISTC_AI_PERSONAL_CONVERT_TIMEBASE
#define NISTC_AI_PERSONAL_CONVERT_PW
#define NISTC_AI_PERSONAL_CONVERT_ORIG_PULSE
#define NISTC_AI_PERSONAL_FIFO_FLAGS_POL
#define NISTC_AI_PERSONAL_OVERRUN_MODE
#define NISTC_AI_PERSONAL_EXTMUX_CLK_PW
#define NISTC_AI_PERSONAL_LOCALMUX_CLK_PW
#define NISTC_AI_PERSONAL_AIFREQ_POL

#define NISTC_AO_PERSONAL_REG
#define NISTC_AO_PERSONAL_MULTI_DACS
#define NISTC_AO_PERSONAL_NUM_DAC
#define NISTC_AO_PERSONAL_FAST_CPU
#define NISTC_AO_PERSONAL_TMRDACWR_PW
#define NISTC_AO_PERSONAL_FIFO_FLAGS_POL
#define NISTC_AO_PERSONAL_FIFO_ENA
#define NISTC_AO_PERSONAL_AOFREQ_POL
#define NISTC_AO_PERSONAL_DMA_PIO_CTRL
#define NISTC_AO_PERSONAL_UPDATE_ORIG_PULSE
#define NISTC_AO_PERSONAL_UPDATE_TIMEBASE
#define NISTC_AO_PERSONAL_UPDATE_PW
#define NISTC_AO_PERSONAL_BC_SRC_SEL
#define NISTC_AO_PERSONAL_INTERVAL_BUFFER_MODE

#define NISTC_RTSI_TRIGA_OUT_REG
#define NISTC_RTSI_TRIGB_OUT_REG
#define NISTC_RTSI_TRIGB_SUB_SEL1
#define NISTC_RTSI_TRIGB_SUB_SEL1_SHIFT
#define NISTC_RTSI_TRIG(_c, _s)
#define NISTC_RTSI_TRIG_MASK(_c)
#define NISTC_RTSI_TRIG_TO_SRC(_c, _b)

#define NISTC_RTSI_BOARD_REG

#define NISTC_CFG_MEM_CLR_REG
#define NISTC_ADC_FIFO_CLR_REG
#define NISTC_DAC_FIFO_CLR_REG
#define NISTC_WR_STROBE3_REG

#define NISTC_AO_OUT_CTRL_REG
#define NISTC_AO_OUT_CTRL_EXT_GATE_ENA
#define NISTC_AO_OUT_CTRL_EXT_GATE_SEL(x)
#define NISTC_AO_OUT_CTRL_CHANS(x)
#define NISTC_AO_OUT_CTRL_UPDATE2_SEL(x)
#define NISTC_AO_OUT_CTRL_EXT_GATE_POL
#define NISTC_AO_OUT_CTRL_UPDATE2_TOGGLE
#define NISTC_AO_OUT_CTRL_UPDATE_SEL(x)
#define NISTC_AO_OUT_CTRL_UPDATE_SEL_HIGHZ
#define NISTC_AO_OUT_CTRL_UPDATE_SEL_GND
#define NISTC_AO_OUT_CTRL_UPDATE_SEL_LOW
#define NISTC_AO_OUT_CTRL_UPDATE_SEL_HIGH

#define NISTC_AI_MODE3_REG
#define NISTC_AI_MODE3_TRIG_LEN
#define NISTC_AI_MODE3_DELAY_START
#define NISTC_AI_MODE3_SOFTWARE_GATE
#define NISTC_AI_MODE3_SI_TRIG_DELAY
#define NISTC_AI_MODE3_SI2_SRC_SEL
#define NISTC_AI_MODE3_DELAYED_START2
#define NISTC_AI_MODE3_DELAYED_START1
#define NISTC_AI_MODE3_EXT_GATE_MODE
#define NISTC_AI_MODE3_FIFO_MODE(x)
#define NISTC_AI_MODE3_FIFO_MODE_NE
#define NISTC_AI_MODE3_FIFO_MODE_HF
#define NISTC_AI_MODE3_FIFO_MODE_F
#define NISTC_AI_MODE3_FIFO_MODE_HF_E
#define NISTC_AI_MODE3_EXT_GATE_POL
#define NISTC_AI_MODE3_EXT_GATE_SEL(x)

#define NISTC_AI_STATUS1_REG
#define NISTC_AI_STATUS1_INTA
#define NISTC_AI_STATUS1_FIFO_F
#define NISTC_AI_STATUS1_FIFO_HF
#define NISTC_AI_STATUS1_FIFO_E
#define NISTC_AI_STATUS1_OVERRUN
#define NISTC_AI_STATUS1_OVERFLOW
#define NISTC_AI_STATUS1_SC_TC_ERR
#define NISTC_AI_STATUS1_OVER
#define NISTC_AI_STATUS1_ERR
#define NISTC_AI_STATUS1_START2
#define NISTC_AI_STATUS1_START1
#define NISTC_AI_STATUS1_SC_TC
#define NISTC_AI_STATUS1_START
#define NISTC_AI_STATUS1_STOP
#define NISTC_AI_STATUS1_G0_TC
#define NISTC_AI_STATUS1_G0_GATE
#define NISTC_AI_STATUS1_FIFO_REQ
#define NISTC_AI_STATUS1_PASSTHRU0

#define NISTC_AO_STATUS1_REG
#define NISTC_AO_STATUS1_INTB
#define NISTC_AO_STATUS1_FIFO_F
#define NISTC_AO_STATUS1_FIFO_HF
#define NISTC_AO_STATUS1_FIFO_E
#define NISTC_AO_STATUS1_BC_TC_ERR
#define NISTC_AO_STATUS1_START
#define NISTC_AO_STATUS1_OVERRUN
#define NISTC_AO_STATUS1_START1
#define NISTC_AO_STATUS1_BC_TC
#define NISTC_AO_STATUS1_UC_TC
#define NISTC_AO_STATUS1_UPDATE
#define NISTC_AO_STATUS1_UI2_TC
#define NISTC_AO_STATUS1_G1_TC
#define NISTC_AO_STATUS1_G1_GATE
#define NISTC_AO_STATUS1_FIFO_REQ
#define NISTC_AO_STATUS1_PASSTHRU1

#define NISTC_G01_STATUS_REG

#define NISTC_AI_STATUS2_REG

#define NISTC_AO_STATUS2_REG

#define NISTC_DIO_IN_REG

#define NISTC_G0_HW_SAVE_REG
#define NISTC_G1_HW_SAVE_REG

#define NISTC_G0_SAVE_REG
#define NISTC_G1_SAVE_REG

#define NISTC_AO_UI_SAVE_REG
#define NISTC_AO_BC_SAVE_REG
#define NISTC_AO_UC_SAVE_REG

#define NISTC_STATUS1_REG
#define NISTC_STATUS1_SERIO_IN_PROG

#define NISTC_DIO_SERIAL_IN_REG

#define NISTC_STATUS2_REG
#define NISTC_STATUS2_AO_TMRDACWRS_IN_PROGRESS

#define NISTC_AI_SI_SAVE_REG
#define NISTC_AI_SC_SAVE_REG

/*
 * PCI E Series Registers
 */
#define NI_E_STC_WINDOW_ADDR_REG
#define NI_E_STC_WINDOW_DATA_REG

#define NI_E_STATUS_REG
#define NI_E_STATUS_AI_FIFO_LOWER_NE
#define NI_E_STATUS_PROMOUT

#define NI_E_DMA_AI_AO_SEL_REG
#define NI_E_DMA_AI_SEL(x)
#define NI_E_DMA_AI_SEL_MASK
#define NI_E_DMA_AO_SEL(x)
#define NI_E_DMA_AO_SEL_MASK

#define NI_E_DMA_G0_G1_SEL_REG
#define NI_E_DMA_G0_G1_SEL(_g, _c)
#define NI_E_DMA_G0_G1_SEL_MASK(_g)

#define NI_E_SERIAL_CMD_REG
#define NI_E_SERIAL_CMD_DAC_LD(x)
#define NI_E_SERIAL_CMD_EEPROM_CS
#define NI_E_SERIAL_CMD_SDATA
#define NI_E_SERIAL_CMD_SCLK

#define NI_E_MISC_CMD_REG
#define NI_E_MISC_CMD_INTEXT_ATRIG(x)
#define NI_E_MISC_CMD_EXT_ATRIG
#define NI_E_MISC_CMD_INT_ATRIG

#define NI_E_AI_CFG_LO_REG
#define NI_E_AI_CFG_LO_LAST_CHAN
#define NI_E_AI_CFG_LO_GEN_TRIG
#define NI_E_AI_CFG_LO_DITHER
#define NI_E_AI_CFG_LO_UNI
#define NI_E_AI_CFG_LO_GAIN(x)

#define NI_E_AI_CFG_HI_REG
#define NI_E_AI_CFG_HI_TYPE(x)
#define NI_E_AI_CFG_HI_TYPE_DIFF
#define NI_E_AI_CFG_HI_TYPE_COMMON
#define NI_E_AI_CFG_HI_TYPE_GROUND
#define NI_E_AI_CFG_HI_AC_COUPLE
#define NI_E_AI_CFG_HI_CHAN(x)

#define NI_E_AO_CFG_REG
#define NI_E_AO_DACSEL(x)
#define NI_E_AO_GROUND_REF
#define NI_E_AO_EXT_REF
#define NI_E_AO_DEGLITCH
#define NI_E_AO_CFG_BIP

#define NI_E_DAC_DIRECT_DATA_REG(x)

#define NI_E_8255_BASE

#define NI_E_AI_FIFO_DATA_REG

#define NI_E_AO_FIFO_DATA_REG

/*
 * 611x registers (these boards differ from the e-series)
 */
#define NI611X_MAGIC_REG
#define NI611X_CALIB_CHAN_SEL_REG
#define NI611X_AI_FIFO_DATA_REG
#define NI611X_AI_FIFO_OFFSET_LOAD_REG
#define NI611X_AO_FIFO_DATA_REG
#define NI611X_CAL_GAIN_SEL_REG

#define NI611X_AO_WINDOW_ADDR_REG
#define NI611X_AO_WINDOW_DATA_REG

/*
 * 6143 registers
 */
#define NI6143_MAGIC_REG
#define NI6143_DMA_G0_G1_SEL_REG
#define NI6143_PIPELINE_DELAY_REG
#define NI6143_EOC_SET_REG
#define NI6143_DMA_AI_SEL_REG
#define NI6143_AI_FIFO_DATA_REG
#define NI6143_AI_FIFO_FLAG_REG
#define NI6143_AI_FIFO_CTRL_REG
#define NI6143_AI_FIFO_STATUS_REG
#define NI6143_AI_FIFO_DMA_THRESH_REG
#define NI6143_AI_FIFO_WORDS_AVAIL_REG

#define NI6143_CALIB_CHAN_REG
#define NI6143_CALIB_CHAN_RELAY_ON
#define NI6143_CALIB_CHAN_RELAY_OFF
#define NI6143_CALIB_CHAN(x)
#define NI6143_CALIB_CHAN_GND_GND
#define NI6143_CALIB_CHAN_2V5_GND
#define NI6143_CALIB_CHAN_PWM_GND
#define NI6143_CALIB_CHAN_2V5_PWM
#define NI6143_CALIB_CHAN_PWM_PWM
#define NI6143_CALIB_CHAN_GND_PWM
#define NI6143_CALIB_LO_TIME_REG
#define NI6143_CALIB_HI_TIME_REG
#define NI6143_RELAY_COUNTER_LOAD_REG
#define NI6143_SIGNATURE_REG
#define NI6143_RELEASE_DATE_REG
#define NI6143_RELEASE_OLDEST_DATE_REG

/*
 * 671x, 611x windowed ao registers
 */
#define NI671X_DAC_DIRECT_DATA_REG(x)
#define NI611X_AO_TIMED_REG
#define NI671X_AO_IMMEDIATE_REG
#define NI611X_AO_FIFO_OFFSET_LOAD_REG
#define NI67XX_AO_SP_UPDATES_REG
#define NI611X_AO_WAVEFORM_GEN_REG
#define NI611X_AO_MISC_REG
#define NI611X_AO_MISC_CLEAR_WG
#define NI67XX_AO_CAL_CHAN_SEL_REG
#define NI67XX_AO_CFG2_REG
#define NI67XX_CAL_CMD_REG
#define NI67XX_CAL_STATUS_REG
#define NI67XX_CAL_STATUS_BUSY
#define NI67XX_CAL_STATUS_OSC_DETECT
#define NI67XX_CAL_STATUS_OVERRANGE
#define NI67XX_CAL_DATA_REG
#define NI67XX_CAL_CFG_HI_REG
#define NI67XX_CAL_CFG_LO_REG

#define CS5529_CMD_CB
#define CS5529_CMD_SINGLE_CONV
#define CS5529_CMD_CONT_CONV
#define CS5529_CMD_READ
#define CS5529_CMD_REG(x)
#define CS5529_CMD_REG_MASK
#define CS5529_CMD_PWR_SAVE

#define CS5529_OFFSET_REG
#define CS5529_GAIN_REG
#define CS5529_CONV_DATA_REG
#define CS5529_SETUP_REG

#define CS5529_CFG_REG
#define CS5529_CFG_AOUT(x)
#define CS5529_CFG_DOUT(x)
#define CS5529_CFG_LOW_PWR_MODE
#define CS5529_CFG_WORD_RATE(x)
#define CS5529_CFG_WORD_RATE_MASK
#define CS5529_CFG_WORD_RATE_2180
#define CS5529_CFG_WORD_RATE_1092
#define CS5529_CFG_WORD_RATE_532
#define CS5529_CFG_WORD_RATE_388
#define CS5529_CFG_WORD_RATE_324
#define CS5529_CFG_WORD_RATE_17444
#define CS5529_CFG_WORD_RATE_8724
#define CS5529_CFG_WORD_RATE_4364
#define CS5529_CFG_UNIPOLAR
#define CS5529_CFG_RESET
#define CS5529_CFG_RESET_VALID
#define CS5529_CFG_PORT_FLAG
#define CS5529_CFG_PWR_SAVE_SEL
#define CS5529_CFG_DONE_FLAG
#define CS5529_CFG_CALIB(x)
#define CS5529_CFG_CALIB_NONE
#define CS5529_CFG_CALIB_OFFSET_SELF
#define CS5529_CFG_CALIB_GAIN_SELF
#define CS5529_CFG_CALIB_BOTH_SELF
#define CS5529_CFG_CALIB_OFFSET_SYS
#define CS5529_CFG_CALIB_GAIN_SYS

/*
 * M-Series specific registers not handled by the DAQ-STC and GPCT register
 * remapping.
 */
#define NI_M_CDIO_DMA_SEL_REG
#define NI_M_CDIO_DMA_SEL_CDO(x)
#define NI_M_CDIO_DMA_SEL_CDO_MASK
#define NI_M_CDIO_DMA_SEL_CDI(x)
#define NI_M_CDIO_DMA_SEL_CDI_MASK
#define NI_M_SCXI_STATUS_REG
#define NI_M_AI_AO_SEL_REG
#define NI_M_G0_G1_SEL_REG
#define NI_M_MISC_CMD_REG
#define NI_M_SCXI_SER_DO_REG
#define NI_M_SCXI_CTRL_REG
#define NI_M_SCXI_OUT_ENA_REG
#define NI_M_AI_FIFO_DATA_REG
#define NI_M_DIO_REG
#define NI_M_DIO_DIR_REG
#define NI_M_CAL_PWM_REG
#define NI_M_CAL_PWM_HIGH_TIME(x)
#define NI_M_CAL_PWM_LOW_TIME(x)
#define NI_M_GEN_PWM_REG(x)
#define NI_M_AI_CFG_FIFO_DATA_REG
#define NI_M_AI_CFG_LAST_CHAN
#define NI_M_AI_CFG_DITHER
#define NI_M_AI_CFG_POLARITY
#define NI_M_AI_CFG_GAIN(x)
#define NI_M_AI_CFG_CHAN_TYPE(x)
#define NI_M_AI_CFG_CHAN_TYPE_MASK
#define NI_M_AI_CFG_CHAN_TYPE_CALIB
#define NI_M_AI_CFG_CHAN_TYPE_DIFF
#define NI_M_AI_CFG_CHAN_TYPE_COMMON
#define NI_M_AI_CFG_CHAN_TYPE_GROUND
#define NI_M_AI_CFG_CHAN_TYPE_AUX
#define NI_M_AI_CFG_CHAN_TYPE_GHOST
#define NI_M_AI_CFG_BANK_SEL(x)
#define NI_M_AI_CFG_CHAN_SEL(x)
#define NI_M_INTC_ENA_REG
#define NI_M_INTC_ENA
#define NI_M_INTC_STATUS_REG
#define NI_M_INTC_STATUS
#define NI_M_ATRIG_CTRL_REG
#define NI_M_AO_SER_INT_ENA_REG
#define NI_M_AO_SER_INT_ACK_REG
#define NI_M_AO_SER_INT_STATUS_REG
#define NI_M_AO_CALIB_REG
#define NI_M_AO_FIFO_DATA_REG
#define NI_M_PFI_FILTER_REG
#define NI_M_PFI_FILTER_SEL(_c, _f)
#define NI_M_PFI_FILTER_SEL_MASK(_c)
#define NI_M_RTSI_FILTER_REG
#define NI_M_SCXI_LEGACY_COMPAT_REG
#define NI_M_DAC_DIRECT_DATA_REG(x)
#define NI_M_AO_WAVEFORM_ORDER_REG(x)
#define NI_M_AO_CFG_BANK_REG(x)
#define NI_M_AO_CFG_BANK_BIPOLAR
#define NI_M_AO_CFG_BANK_UPDATE_TIMED
#define NI_M_AO_CFG_BANK_REF(x)
#define NI_M_AO_CFG_BANK_REF_MASK
#define NI_M_AO_CFG_BANK_REF_INT_10V
#define NI_M_AO_CFG_BANK_REF_INT_5V
#define NI_M_AO_CFG_BANK_OFFSET(x)
#define NI_M_AO_CFG_BANK_OFFSET_MASK
#define NI_M_AO_CFG_BANK_OFFSET_0V
#define NI_M_AO_CFG_BANK_OFFSET_5V
#define NI_M_RTSI_SHARED_MUX_REG
#define NI_M_CLK_FOUT2_REG
#define NI_M_CLK_FOUT2_RTSI_10MHZ
#define NI_M_CLK_FOUT2_TIMEBASE3_PLL
#define NI_M_CLK_FOUT2_TIMEBASE1_PLL
#define NI_M_CLK_FOUT2_PLL_SRC(x)
#define NI_M_CLK_FOUT2_PLL_SRC_MASK
#define NI_M_MAX_RTSI_CHAN
#define NI_M_CLK_FOUT2_PLL_SRC_RTSI(x)
#define NI_M_CLK_FOUT2_PLL_SRC_STAR
#define NI_M_CLK_FOUT2_PLL_SRC_PXI10
#define NI_M_PLL_CTRL_REG
#define NI_M_PLL_CTRL_VCO_MODE(x)
#define NI_M_PLL_CTRL_VCO_MODE_200_325MHZ
#define NI_M_PLL_CTRL_VCO_MODE_175_225MHZ
#define NI_M_PLL_CTRL_VCO_MODE_100_225MHZ
#define NI_M_PLL_CTRL_VCO_MODE_75_150MHZ
#define NI_M_PLL_CTRL_ENA
#define NI_M_PLL_MAX_DIVISOR
#define NI_M_PLL_CTRL_DIVISOR(x)
#define NI_M_PLL_MAX_MULTIPLIER
#define NI_M_PLL_CTRL_MULTIPLIER(x)
#define NI_M_PLL_STATUS_REG
#define NI_M_PLL_STATUS_LOCKED
#define NI_M_PFI_OUT_SEL_REG(x)
#define NI_M_PFI_CHAN(_c)
#define NI_M_PFI_OUT_SEL(_c, _s)
#define NI_M_PFI_OUT_SEL_MASK(_c)
#define NI_M_PFI_OUT_SEL_TO_SRC(_c, _b)
#define NI_M_PFI_DI_REG
#define NI_M_PFI_DO_REG
#define NI_M_CFG_BYPASS_FIFO_REG
#define NI_M_CFG_BYPASS_FIFO
#define NI_M_CFG_BYPASS_AI_POLARITY
#define NI_M_CFG_BYPASS_AI_DITHER
#define NI_M_CFG_BYPASS_AI_GAIN(x)
#define NI_M_CFG_BYPASS_AO_CAL(x)
#define NI_M_CFG_BYPASS_AO_CAL_MASK
#define NI_M_CFG_BYPASS_AI_MODE_MUX(x)
#define NI_M_CFG_BYPASS_AI_MODE_MUX_MASK
#define NI_M_CFG_BYPASS_AI_CAL_NEG(x)
#define NI_M_CFG_BYPASS_AI_CAL_NEG_MASK
#define NI_M_CFG_BYPASS_AI_CAL_POS(x)
#define NI_M_CFG_BYPASS_AI_CAL_POS_MASK
#define NI_M_CFG_BYPASS_AI_CAL_MASK
#define NI_M_CFG_BYPASS_AI_BANK(x)
#define NI_M_CFG_BYPASS_AI_BANK_MASK
#define NI_M_CFG_BYPASS_AI_CHAN(x)
#define NI_M_CFG_BYPASS_AI_CHAN_MASK
#define NI_M_SCXI_DIO_ENA_REG
#define NI_M_CDI_FIFO_DATA_REG
#define NI_M_CDO_FIFO_DATA_REG
#define NI_M_CDIO_STATUS_REG
#define NI_M_CDIO_STATUS_CDI_OVERFLOW
#define NI_M_CDIO_STATUS_CDI_OVERRUN
#define NI_M_CDIO_STATUS_CDI_ERROR
#define NI_M_CDIO_STATUS_CDI_FIFO_REQ
#define NI_M_CDIO_STATUS_CDI_FIFO_FULL
#define NI_M_CDIO_STATUS_CDI_FIFO_EMPTY
#define NI_M_CDIO_STATUS_CDO_UNDERFLOW
#define NI_M_CDIO_STATUS_CDO_OVERRUN
#define NI_M_CDIO_STATUS_CDO_ERROR
#define NI_M_CDIO_STATUS_CDO_FIFO_REQ
#define NI_M_CDIO_STATUS_CDO_FIFO_FULL
#define NI_M_CDIO_STATUS_CDO_FIFO_EMPTY
#define NI_M_CDIO_CMD_REG
#define NI_M_CDI_CMD_SW_UPDATE
#define NI_M_CDO_CMD_SW_UPDATE
#define NI_M_CDO_CMD_F_E_INT_ENA_CLR
#define NI_M_CDO_CMD_F_E_INT_ENA_SET
#define NI_M_CDI_CMD_ERR_INT_CONFIRM
#define NI_M_CDO_CMD_ERR_INT_CONFIRM
#define NI_M_CDI_CMD_F_REQ_INT_ENA_CLR
#define NI_M_CDI_CMD_F_REQ_INT_ENA_SET
#define NI_M_CDO_CMD_F_REQ_INT_ENA_CLR
#define NI_M_CDO_CMD_F_REQ_INT_ENA_SET
#define NI_M_CDI_CMD_ERR_INT_ENA_CLR
#define NI_M_CDI_CMD_ERR_INT_ENA_SET
#define NI_M_CDO_CMD_ERR_INT_ENA_CLR
#define NI_M_CDO_CMD_ERR_INT_ENA_SET
#define NI_M_CDI_CMD_RESET
#define NI_M_CDO_CMD_RESET
#define NI_M_CDI_CMD_ARM
#define NI_M_CDI_CMD_DISARM
#define NI_M_CDO_CMD_ARM
#define NI_M_CDO_CMD_DISARM
#define NI_M_CDI_MODE_REG
#define NI_M_CDI_MODE_DATA_LANE(x)
#define NI_M_CDI_MODE_DATA_LANE_MASK
#define NI_M_CDI_MODE_DATA_LANE_0_15
#define NI_M_CDI_MODE_DATA_LANE_16_31
#define NI_M_CDI_MODE_DATA_LANE_0_7
#define NI_M_CDI_MODE_DATA_LANE_8_15
#define NI_M_CDI_MODE_DATA_LANE_16_23
#define NI_M_CDI_MODE_DATA_LANE_24_31
#define NI_M_CDI_MODE_FIFO_MODE
#define NI_M_CDI_MODE_POLARITY
#define NI_M_CDI_MODE_HALT_ON_ERROR
#define NI_M_CDI_MODE_SAMPLE_SRC(x)
#define NI_M_CDI_MODE_SAMPLE_SRC_MASK
#define NI_M_CDO_MODE_REG
#define NI_M_CDO_MODE_DATA_LANE(x)
#define NI_M_CDO_MODE_DATA_LANE_MASK
#define NI_M_CDO_MODE_DATA_LANE_0_15
#define NI_M_CDO_MODE_DATA_LANE_16_31
#define NI_M_CDO_MODE_DATA_LANE_0_7
#define NI_M_CDO_MODE_DATA_LANE_8_15
#define NI_M_CDO_MODE_DATA_LANE_16_23
#define NI_M_CDO_MODE_DATA_LANE_24_31
#define NI_M_CDO_MODE_FIFO_MODE
#define NI_M_CDO_MODE_POLARITY
#define NI_M_CDO_MODE_HALT_ON_ERROR
#define NI_M_CDO_MODE_RETRANSMIT
#define NI_M_CDO_MODE_SAMPLE_SRC(x)
#define NI_M_CDO_MODE_SAMPLE_SRC_MASK
#define NI_M_CDI_MASK_ENA_REG
#define NI_M_CDO_MASK_ENA_REG
#define NI_M_STATIC_AI_CTRL_REG(x)
#define NI_M_AO_REF_ATTENUATION_REG(x)
#define NI_M_AO_REF_ATTENUATION_X5

enum {};

enum caldac_enum {};

enum ni_reg_type {};

struct ni_board_struct {};

#define MAX_N_CALDACS
#define MAX_N_AO_CHAN
#define NUM_GPCT

#define NUM_PFI_OUTPUT_SELECT_REGS
#define NUM_RTSI_SHARED_MUXS

#define M_SERIES_EEPROM_SIZE

struct ni_private {};

#endif /* _COMEDI_NI_STC_H */