Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)     Driver for STV0297 demodulator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)     Copyright (C) 2003-2004 Dennis Noermann <dennis.noermann@noernet.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #ifndef STV0297_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define STV0297_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/dvb/frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <media/dvb_frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct stv0297_config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	/* the demodulator's i2c address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	u8 demod_address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	/* inittab - array of pairs of values.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	* First of each pair is the register, second is the value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	* List should be terminated with an 0xff, 0xff pair.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	u8* inittab;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	/* does the "inversion" need inverted? */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	u8 invert:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	/* set to 1 if the device requires an i2c STOP during reading */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	u8 stop_during_read:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #if IS_REACHABLE(CONFIG_DVB_STV0297)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern struct dvb_frontend* stv0297_attach(const struct stv0297_config* config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 					   struct i2c_adapter* i2c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) static inline struct dvb_frontend* stv0297_attach(const struct stv0297_config* config,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 					   struct i2c_adapter* i2c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #endif // CONFIG_DVB_STV0297
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #endif // STV0297_H