linux/drivers/media/pci/ddbridge/ddbridge-regs.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * ddbridge-regs.h: Digital Devices PCIe bridge driver
 *
 * Copyright (C) 2010-2017 Digital Devices GmbH
 */

#ifndef __DDBRIDGE_REGS_H__
#define __DDBRIDGE_REGS_H__

/* ------------------------------------------------------------------------- */
/* SPI Controller */

#define SPI_CONTROL
#define SPI_DATA

/* ------------------------------------------------------------------------- */
/* GPIO */

#define GPIO_OUTPUT
#define GPIO_INPUT
#define GPIO_DIRECTION

/* ------------------------------------------------------------------------- */

#define BOARD_CONTROL

/* ------------------------------------------------------------------------- */

/* Interrupt controller
 * How many MSI's are available depends on HW (Min 2 max 8)
 * How many are usable also depends on Host platform
 */

#define INTERRUPT_BASE

#define INTERRUPT_ENABLE
#define MSI1_ENABLE
#define MSI2_ENABLE
#define MSI3_ENABLE
#define MSI4_ENABLE
#define MSI5_ENABLE
#define MSI6_ENABLE
#define MSI7_ENABLE

#define INTERRUPT_STATUS
#define INTERRUPT_ACK

/* Temperature Monitor ( 2x LM75A @ 0x90,0x92 I2c ) */
#define TEMPMON_BASE
#define TEMPMON_CONTROL

#define TEMPMON_CONTROL_AUTOSCAN
#define TEMPMON_CONTROL_INTENABLE
#define TEMPMON_CONTROL_OVERTEMP

/* SHORT Temperature in Celsius x 256 */
#define TEMPMON_SENSOR0
#define TEMPMON_SENSOR1

#define TEMPMON_FANCONTROL

/* ------------------------------------------------------------------------- */
/* I2C Master Controller */

#define I2C_COMMAND
#define I2C_TIMING
#define I2C_TASKLENGTH
#define I2C_TASKADDRESS
#define I2C_MONITOR

#define I2C_SPEED_400
#define I2C_SPEED_100

/* ------------------------------------------------------------------------- */
/* DMA  Controller */

#define DMA_BASE_WRITE
#define DMA_BASE_READ

#define TS_CONTROL(_io)
#define TS_CONTROL2(_io)

/* ------------------------------------------------------------------------- */
/* DMA  Buffer */

#define DMA_BUFFER_CONTROL(_dma)
#define DMA_BUFFER_ACK(_dma)
#define DMA_BUFFER_CURRENT(_dma)
#define DMA_BUFFER_SIZE(_dma)

/* ------------------------------------------------------------------------- */
/* CI Interface (only CI-Bridge) */

#define CI_BASE
#define CI_CONTROL(i)

#define CI_DO_ATTRIBUTE_RW(i)
#define CI_DO_IO_RW(i)
#define CI_READDATA(i)
#define CI_DO_READ_ATTRIBUTES(i)

#define CI_RESET_CAM
#define CI_POWER_ON
#define CI_ENABLE
#define CI_BYPASS_DISABLE

#define CI_CAM_READY
#define CI_CAM_DETECT
#define CI_READY

#define CI_READ_CMD
#define CI_WRITE_CMD

#define CI_BUFFER_BASE
#define CI_BUFFER_SIZE

#define CI_BUFFER(i)

/* ------------------------------------------------------------------------- */
/* LNB commands (mxl5xx / Max S8) */

#define LNB_BASE
#define LNB_CONTROL(i)

#define LNB_CMD
#define LNB_CMD_NOP
#define LNB_CMD_INIT
#define LNB_CMD_LOW
#define LNB_CMD_HIGH
#define LNB_CMD_OFF
#define LNB_CMD_DISEQC

#define LNB_BUSY
#define LNB_TONE

#define LNB_BUF_LEVEL(i)
#define LNB_BUF_WRITE(i)

#endif /* __DDBRIDGE_REGS_H__ */