linux/drivers/media/pci/mantis/mantis_reg.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
	Mantis PCI bridge driver

	Copyright (C) Manu Abraham ([email protected])

*/

#ifndef __MANTIS_REG_H
#define __MANTIS_REG_H

/* Interrupts */
#define MANTIS_INT_STAT
#define MANTIS_INT_MASK

#define MANTIS_INT_RISCSTAT
#define MANTIS_INT_RISCEN
#define MANTIS_INT_I2CRACK

/* #define MANTIS_INT_GPIF			(0xff << 12) */

#define MANTIS_INT_PCMCIA7
#define MANTIS_INT_PCMCIA6
#define MANTIS_INT_PCMCIA5
#define MANTIS_INT_PCMCIA4
#define MANTIS_INT_PCMCIA3
#define MANTIS_INT_PCMCIA2
#define MANTIS_INT_PCMCIA1
#define MANTIS_INT_PCMCIA0
#define MANTIS_INT_IRQ1
#define MANTIS_INT_IRQ0
#define MANTIS_INT_OCERR
#define MANTIS_INT_PABORT
#define MANTIS_INT_RIPERR
#define MANTIS_INT_PPERR
#define MANTIS_INT_FTRGT
#define MANTIS_INT_RISCI
#define MANTIS_INT_I2CDONE

/* DMA */
#define MANTIS_DMA_CTL
#define MANTIS_GPIF_RD
#define MANTIS_GPIF_WR
#define MANTIS_CPU_DO
#define MANTIS_DRV_DO
#define MANTIS_I2C_RD
#define MANTIS_I2C_WR
#define MANTIS_DCAP_MODE
#define MANTIS_FIFO_TP_4
#define MANTIS_FIFO_TP_8
#define MANTIS_FIFO_TP_16
#define MANTIS_FIFO_EN
#define MANTIS_DCAP_EN
#define MANTIS_RISC_EN

/* DEBUG */
#define MANTIS_DEBUGREG
#define MANTIS_DATINV
#define MANTIS_TOP_DEBUGSEL
#define MANTIS_PCMCIA_DEBUGSEL

#define MANTIS_RISC_START
#define MANTIS_RISC_PC

/* I2C */
#define MANTIS_I2CDATA_CTL
#define MANTIS_I2C_RATE_1
#define MANTIS_I2C_RATE_2
#define MANTIS_I2C_RATE_3
#define MANTIS_I2C_RATE_4
#define MANTIS_I2C_STOP
#define MANTIS_I2C_PGMODE

/* DATA */
#define MANTIS_CMD_DATA_R1
#define MANTIS_CMD_DATA_3
#define MANTIS_CMD_DATA_2
#define MANTIS_CMD_DATA_1
#define MANTIS_CMD_DATA_0

#define MANTIS_CMD_DATA_R2
#define MANTIS_CMD_DATA_7
#define MANTIS_CMD_DATA_6
#define MANTIS_CMD_DATA_5
#define MANTIS_CMD_DATA_4

#define MANTIS_CONTROL
#define MANTIS_DET
#define MANTIS_DAT_CF_EN
#define MANTIS_ACS
#define MANTIS_VCCEN
#define MANTIS_BYPASS
#define MANTIS_MRST
#define MANTIS_CRST_INT

#define MANTIS_GPIF_CFGSLA
#define MANTIS_GPIF_WAITSMPL
#define MANTIS_GPIF_BYTEADDRSUB
#define MANTIS_GPIF_WAITPOL
#define MANTIS_GPIF_NCDELAY
#define MANTIS_GPIF_RW2CSDELAY
#define MANTIS_GPIF_SLFTIMEDMODE
#define MANTIS_GPIF_SLFTIMEDDELY
#define MANTIS_GPIF_DEVTYPE
#define MANTIS_GPIF_BIGENDIAN
#define MANTIS_GPIF_FETCHCMD
#define MANTIS_GPIF_HWORDDEV

#define MANTIS_GPIF_WSTOPER
#define MANTIS_GPIF_WSTOPERWREN3
#define MANTIS_GPIF_PARBOOTN
#define MANTIS_GPIF_WSTOPERSLID3
#define MANTIS_GPIF_WSTOPERWREN2
#define MANTIS_GPIF_WSTOPERSLID2
#define MANTIS_GPIF_WSTOPERWREN1
#define MANTIS_GPIF_WSTOPERSLID1
#define MANTIS_GPIF_WSTOPERWREN0
#define MANTIS_GPIF_WSTOPERSLID0

#define MANTIS_GPIF_CS2RW
#define MANTIS_GPIF_CS2RWWREN3
#define MANTIS_GPIF_CS2RWDELY3
#define MANTIS_GPIF_CS2RWWREN2
#define MANTIS_GPIF_CS2RWDELY2
#define MANTIS_GPIF_CS2RWWREN1
#define MANTIS_GPIF_CS2RWDELY1
#define MANTIS_GPIF_CS2RWWREN0
#define MANTIS_GPIF_CS2RWDELY0

#define MANTIS_GPIF_IRQCFG
#define MANTIS_GPIF_IRQPOL
#define MANTIS_MASK_WRACK
#define MANTIS_MASK_BRRDY
#define MANTIS_MASK_OVFLW
#define MANTIS_MASK_OTHERR
#define MANTIS_MASK_WSTO
#define MANTIS_MASK_EXTIRQ
#define MANTIS_MASK_PLUGIN
#define MANTIS_MASK_PLUGOUT

#define MANTIS_GPIF_STATUS
#define MANTIS_SBUF_KILLOP
#define MANTIS_SBUF_OPDONE
#define MANTIS_SBUF_EMPTY
#define MANTIS_GPIF_DETSTAT
#define MANTIS_GPIF_INTSTAT
#define MANTIS_GPIF_WRACK
#define MANTIS_GPIF_BRRDY
#define MANTIS_SBUF_OVFLW
#define MANTIS_GPIF_OTHERR
#define MANTIS_SBUF_WSTO
#define MANTIS_GPIF_EXTIRQ
#define MANTIS_CARD_PLUGIN
#define MANTIS_CARD_PLUGOUT

#define MANTIS_GPIF_BRADDR
#define MANTIS_GPIF_PCMCIAREG
#define MANTIS_GPIF_PCMCIAIOM
#define MANTIS_GPIF_BR_ADDR

#define MANTIS_GPIF_BRBYTES
#define MANTIS_GPIF_BRCNT

#define MANTIS_PCMCIA_RESET
#define MANTIS_PCMCIA_RSTVAL

#define MANTIS_CARD_RESET

#define MANTIS_GPIF_ADDR
#define MANTIS_GPIF_HIFRDWRN
#define MANTIS_GPIF_PCMCIAREG
#define MANTIS_GPIF_PCMCIAIOM
#define MANTIS_GPIF_HIFADDR

#define MANTIS_GPIF_DOUT
#define MANTIS_GPIF_HIFDOUT

#define MANTIS_GPIF_DIN
#define MANTIS_GPIF_HIFDIN

#define MANTIS_GPIF_SPARE
#define MANTIS_GPIF_LOGICRD
#define MANTIS_GPIF_LOGICRW

#endif /* __MANTIS_REG_H */