linux/drivers/media/dvb-frontends/stb6100.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
	STB6100 Silicon Tuner
	Copyright (C) Manu Abraham ([email protected])

	Copyright (C) ST Microelectronics

*/

#ifndef __STB_6100_REG_H
#define __STB_6100_REG_H

#include <linux/dvb/frontend.h>
#include <media/dvb_frontend.h>

#define STB6100_LD
#define STB6100_LD_LOCK

#define STB6100_VCO
#define STB6100_VCO_OSCH
#define STB6100_VCO_OSCH_SHIFT
#define STB6100_VCO_OCK
#define STB6100_VCO_OCK_SHIFT
#define STB6100_VCO_ODIV
#define STB6100_VCO_ODIV_SHIFT
#define STB6100_VCO_OSM

#define STB6100_NI
#define STB6100_NF_LSB

#define STB6100_K
#define STB6100_K_PSD2
#define STB6100_K_PSD2_SHIFT
#define STB6100_K_NF_MSB

#define STB6100_G
#define STB6100_G_G
#define STB6100_G_GCT

#define STB6100_F
#define STB6100_F_F

#define STB6100_DLB

#define STB6100_TEST1

#define STB6100_FCCK
#define STB6100_FCCK_FCCK

#define STB6100_LPEN
#define STB6100_LPEN_LPEN
#define STB6100_LPEN_SYNP
#define STB6100_LPEN_OSCP
#define STB6100_LPEN_BEN

#define STB6100_TEST3

#define STB6100_NUMREGS


#define INRANGE(val, x, y)

#define CHKRANGE(val, x, y)

struct stb6100_config {};

struct stb6100_state {};

#if IS_REACHABLE(CONFIG_DVB_STB6100)

extern struct dvb_frontend *stb6100_attach(struct dvb_frontend *fe,
					   const struct stb6100_config *config,
					   struct i2c_adapter *i2c);

#else

static inline struct dvb_frontend *stb6100_attach(struct dvb_frontend *fe,
						  const struct stb6100_config *config,
						  struct i2c_adapter *i2c)
{
	printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
	return NULL;
}

#endif //CONFIG_DVB_STB6100

#endif