summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/ni_labpc_regs.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-14 10:58:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-15 09:26:25 +0200
commit8ffdff6a8cfbdc174a3a390b6f825a277b5bb895 (patch)
tree10d8b8e9a98ca6dbcff017ef9ab0767ddcf30214 /drivers/staging/comedi/drivers/ni_labpc_regs.h
parent027ffa10b80be722c284067f7eee431ced1db208 (diff)
staging: comedi: move out of staging directory
The comedi code came into the kernel back in 2008, but traces its lifetime to much much earlier. It's been polished and buffed and there's really nothing preventing it from being part of the "real" portion of the kernel. So move it to drivers/comedi/ as it belongs there. Many thanks to the hundreds of developers who did the work to make this happen. Cc: Ian Abbott <abbotti@mev.co.uk> Cc: H Hartley Sweeten <hsweeten@visionengravers.com> Link: https://lore.kernel.org/r/YHauop4u3sP6lz8j@kroah.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/ni_labpc_regs.h')
-rw-r--r--drivers/staging/comedi/drivers/ni_labpc_regs.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/drivers/staging/comedi/drivers/ni_labpc_regs.h b/drivers/staging/comedi/drivers/ni_labpc_regs.h
deleted file mode 100644
index ace40065a25b..000000000000
--- a/drivers/staging/comedi/drivers/ni_labpc_regs.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * ni_labpc register definitions.
- */
-
-#ifndef _NI_LABPC_REGS_H
-#define _NI_LABPC_REGS_H
-
-/*
- * Register map (all registers are 8-bit)
- */
-#define STAT1_REG 0x00 /* R: Status 1 reg */
-#define STAT1_DAVAIL BIT(0)
-#define STAT1_OVERRUN BIT(1)
-#define STAT1_OVERFLOW BIT(2)
-#define STAT1_CNTINT BIT(3)
-#define STAT1_GATA0 BIT(5)
-#define STAT1_EXTGATA0 BIT(6)
-#define CMD1_REG 0x00 /* W: Command 1 reg */
-#define CMD1_MA(x) (((x) & 0x7) << 0)
-#define CMD1_TWOSCMP BIT(3)
-#define CMD1_GAIN(x) (((x) & 0x7) << 4)
-#define CMD1_SCANEN BIT(7)
-#define CMD2_REG 0x01 /* W: Command 2 reg */
-#define CMD2_PRETRIG BIT(0)
-#define CMD2_HWTRIG BIT(1)
-#define CMD2_SWTRIG BIT(2)
-#define CMD2_TBSEL BIT(3)
-#define CMD2_2SDAC0 BIT(4)
-#define CMD2_2SDAC1 BIT(5)
-#define CMD2_LDAC(x) BIT(6 + ((x) & 0x1))
-#define CMD3_REG 0x02 /* W: Command 3 reg */
-#define CMD3_DMAEN BIT(0)
-#define CMD3_DIOINTEN BIT(1)
-#define CMD3_DMATCINTEN BIT(2)
-#define CMD3_CNTINTEN BIT(3)
-#define CMD3_ERRINTEN BIT(4)
-#define CMD3_FIFOINTEN BIT(5)
-#define ADC_START_CONVERT_REG 0x03 /* W: Start Convert reg */
-#define DAC_LSB_REG(x) (0x04 + 2 * (x)) /* W: DAC0/1 LSB reg */
-#define DAC_MSB_REG(x) (0x05 + 2 * (x)) /* W: DAC0/1 MSB reg */
-#define ADC_FIFO_CLEAR_REG 0x08 /* W: A/D FIFO Clear reg */
-#define ADC_FIFO_REG 0x0a /* R: A/D FIFO reg */
-#define DMATC_CLEAR_REG 0x0a /* W: DMA Interrupt Clear reg */
-#define TIMER_CLEAR_REG 0x0c /* W: Timer Interrupt Clear reg */
-#define CMD6_REG 0x0e /* W: Command 6 reg */
-#define CMD6_NRSE BIT(0)
-#define CMD6_ADCUNI BIT(1)
-#define CMD6_DACUNI(x) BIT(2 + ((x) & 0x1))
-#define CMD6_HFINTEN BIT(5)
-#define CMD6_DQINTEN BIT(6)
-#define CMD6_SCANUP BIT(7)
-#define CMD4_REG 0x0f /* W: Command 3 reg */
-#define CMD4_INTSCAN BIT(0)
-#define CMD4_EOIRCV BIT(1)
-#define CMD4_ECLKDRV BIT(2)
-#define CMD4_SEDIFF BIT(3)
-#define CMD4_ECLKRCV BIT(4)
-#define DIO_BASE_REG 0x10 /* R/W: 8255 DIO base reg */
-#define COUNTER_A_BASE_REG 0x14 /* R/W: 8253 Counter A base reg */
-#define COUNTER_B_BASE_REG 0x18 /* R/W: 8253 Counter B base reg */
-#define CMD5_REG 0x1c /* W: Command 5 reg */
-#define CMD5_WRTPRT BIT(2)
-#define CMD5_DITHEREN BIT(3)
-#define CMD5_CALDACLD BIT(4)
-#define CMD5_SCLK BIT(5)
-#define CMD5_SDATA BIT(6)
-#define CMD5_EEPROMCS BIT(7)
-#define STAT2_REG 0x1d /* R: Status 2 reg */
-#define STAT2_PROMOUT BIT(0)
-#define STAT2_OUTA1 BIT(1)
-#define STAT2_FIFONHF BIT(2)
-#define INTERVAL_COUNT_REG 0x1e /* W: Interval Counter Data reg */
-#define INTERVAL_STROBE_REG 0x1f /* W: Interval Counter Strobe reg */
-
-#endif /* _NI_LABPC_REGS_H */