linux/drivers/media/pci/bt8xx/bt878.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
    bt878.h - Bt878 audio module (register offsets)

    Copyright (C) 2002 Peter Hettkamp <[email protected]>

*/

#ifndef _BT878_H_
#define _BT878_H_

#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>

#include "bt848.h"
#include "bttv.h"

#define BT878_VERSION_CODE

#define BT878_AINT_STAT
#define BT878_ARISCS
#define BT878_ARISC_EN
#define BT878_ASCERR
#define BT878_AOCERR
#define BT878_APABORT
#define BT878_ARIPERR
#define BT878_APPERR
#define BT878_AFDSR
#define BT878_AFTRGT
#define BT878_AFBUS
#define BT878_ARISCI
#define BT878_AOFLOW

#define BT878_AINT_MASK

#define BT878_AGPIO_DMA_CTL
#define BT878_A_GAIN
#define BT878_A_G2X
#define BT878_A_PWRDN
#define BT878_A_SEL
#define BT878_DA_SCE
#define BT878_DA_LRI
#define BT878_DA_MLB
#define BT878_DA_LRD
#define BT878_DA_DPM
#define BT878_DA_SBR
#define BT878_DA_ES2
#define BT878_DA_LMT
#define BT878_DA_SDR
#define BT878_DA_IOM
#define BT878_DA_APP
#define BT878_ACAP_EN
#define BT878_PKTP
#define BT878_RISC_EN
#define BT878_FIFO_EN

#define BT878_APACK_LEN
#define BT878_AFP_LEN
#define BT878_ALP_LEN

#define BT878_ARISC_START

#define BT878_ARISC_PC

/* BT878 FUNCTION 0 REGISTERS */
#define BT878_GPIO_DMA_CTL

/* Interrupt register */
#define BT878_INT_STAT
#define BT878_INT_MASK
#define BT878_I2CRACK
#define BT878_I2CDONE

#define BT878_MAX

#define BT878_RISC_SYNC_MASK


#define BTTV_BOARD_UNKNOWN
#define BTTV_BOARD_PINNACLESAT
#define BTTV_BOARD_NEBULA_DIGITV
#define BTTV_BOARD_PC_HDTV
#define BTTV_BOARD_TWINHAN_DST
#define BTTV_BOARD_AVDVBT_771
#define BTTV_BOARD_AVDVBT_761
#define BTTV_BOARD_DVICO_DVBT_LITE
#define BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE

extern int bt878_num;

struct bt878 {};

extern struct bt878 bt878[BT878_MAX];

void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin,
		u32 irq_err_ignore);
void bt878_stop(struct bt878 *bt);

#define bmtwrite(dat,adr)
#define bmtread(adr)

#endif