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)  * Realtek RTL2830 DVB-T demodulator driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
^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) #ifndef RTL2830_PRIV_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define RTL2830_PRIV_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <media/dvb_frontend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <media/dvb_math.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include "rtl2830.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/i2c-mux.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/math64.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/regmap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <linux/bitops.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct rtl2830_dev {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	struct rtl2830_platform_data *pdata;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	struct i2c_client *client;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	struct regmap *regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	struct i2c_mux_core *muxc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	struct dvb_frontend fe;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	bool sleeping;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	unsigned long filters;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	enum fe_status fe_status;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	u64 post_bit_error_prev; /* for old DVBv3 read_ber() calculation */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	u64 post_bit_error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	u64 post_bit_count;
^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) struct rtl2830_reg_val_mask {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	u16 reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	u8  val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	u8  mask;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #endif /* RTL2830_PRIV_H */