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-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /* Common header file of Linux driver for the WideView/ Yakumo/ Hama/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Typhoon/ Yuan DVB-T USB2.0 receiver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@posteo.de)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #ifndef _DVB_USB_DTT200U_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _DVB_USB_DTT200U_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define DVB_USB_LOG_PREFIX "dtt200u"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include "dvb-usb.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern int dvb_usb_dtt200u_debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define deb_info(args...) dprintk(dvb_usb_dtt200u_debug,0x01,args)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define deb_xfer(args...) dprintk(dvb_usb_dtt200u_debug,0x02,args)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /* guessed protocol description (reverse engineered):
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * read
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  *  00 - USB type 0x02 for usb2.0, 0x01 for usb1.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  *  88 - locking 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define GET_SPEED		0x00
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define GET_TUNE_STATUS		0x81
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define GET_RC_CODE		0x84
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define GET_CONFIGURATION	0x88
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define GET_AGC			0x89
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define GET_SNR			0x8a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define GET_VIT_ERR_CNT		0x8c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define GET_RS_ERR_CNT		0x8d
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define GET_RS_UNCOR_BLK_CNT	0x8e
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) /* write
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)  *  01 - init
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)  *  02 - frequency (divided by 250000)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)  *  03 - bandwidth
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)  *  04 - pid table (index pid(7:0) pid(12:8))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)  *  05 - reset the pid table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)  *  08 - transfer switch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define SET_INIT		0x01
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define SET_RF_FREQ		0x02
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define SET_BANDWIDTH		0x03
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define SET_PID_FILTER		0x04
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define RESET_PID_FILTER	0x05
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define SET_STREAMING		0x08
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) extern struct dvb_frontend * dtt200u_fe_attach(struct dvb_usb_device *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #endif