1 /* SPDX-License-Identifier: GPL-2.0 */
3 * c8sectpfe-common.h - C8SECTPFE STi DVB driver
5 * Copyright (c) STMicroelectronics 2015
7 * Author: Peter Griffin <peter.griffin@linaro.org>
10 #ifndef _C8SECTPFE_COMMON_H_
11 #define _C8SECTPFE_COMMON_H_
13 #include <linux/dvb/dmx.h>
14 #include <linux/dvb/frontend.h>
15 #include <linux/gpio.h>
16 #include <linux/version.h>
18 #include <media/dmxdev.h>
19 #include <media/dvb_demux.h>
20 #include <media/dvb_frontend.h>
21 #include <media/dvb_net.h>
23 /* Maximum number of channels */
24 #define C8SECTPFE_MAXADAPTER (4)
25 #define C8SECTPFE_MAXCHANNEL 64
26 #define STPTI_MAXCHANNEL 64
28 #define MAX_INPUTBLOCKS 7
34 struct dvb_demux dvb_demux
;
36 struct dmx_frontend hw_frontend
;
37 struct dmx_frontend mem_frontend
;
39 int running_feed_count
;
40 struct c8sectpfei
*c8sectpfei
;
44 struct stdemux demux
[MAX_INPUTBLOCKS
];
46 struct dvb_adapter adapter
;
47 struct device
*device
;
52 /* Channel registration */
53 int c8sectpfe_tuner_register_frontend(struct c8sectpfe
**c8sectpfe
,
54 struct c8sectpfei
*fei
,
58 void c8sectpfe_tuner_unregister_frontend(struct c8sectpfe
*c8sectpfe
,
59 struct c8sectpfei
*fei
);