2 * c8sectpfe-common.h - C8SECTPFE STi DVB driver
4 * Copyright (c) STMicroelectronics 2015
6 * Author: Peter Griffin <peter.griffin@linaro.org>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 #ifndef _C8SECTPFE_COMMON_H_
14 #define _C8SECTPFE_COMMON_H_
16 #include <linux/dvb/dmx.h>
17 #include <linux/dvb/frontend.h>
18 #include <linux/gpio.h>
19 #include <linux/version.h>
22 #include "dvb_demux.h"
23 #include "dvb_frontend.h"
26 /* Maximum number of channels */
27 #define C8SECTPFE_MAXADAPTER (4)
28 #define C8SECTPFE_MAXCHANNEL 64
29 #define STPTI_MAXCHANNEL 64
31 #define MAX_INPUTBLOCKS 7
37 struct dvb_demux dvb_demux
;
39 struct dmx_frontend hw_frontend
;
40 struct dmx_frontend mem_frontend
;
42 int running_feed_count
;
43 struct c8sectpfei
*c8sectpfei
;
47 struct stdemux demux
[MAX_INPUTBLOCKS
];
49 struct dvb_adapter adapter
;
50 struct device
*device
;
55 /* Channel registration */
56 int c8sectpfe_tuner_register_frontend(struct c8sectpfe
**c8sectpfe
,
57 struct c8sectpfei
*fei
,
61 void c8sectpfe_tuner_unregister_frontend(struct c8sectpfe
*c8sectpfe
,
62 struct c8sectpfei
*fei
);