forked from Minki/linux
b5e208a684
These functions are used by the core code for creating the LDVB devices and adapter. Addtionally some older SoC's (and potentially newer ones) have different frontend HW which would allow those devices to be easily supported in the future by keeping the code specific to the IP separate from the more generic code. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
65 lines
1.5 KiB
C
65 lines
1.5 KiB
C
/*
|
|
* c8sectpfe-common.h - C8SECTPFE STi DVB driver
|
|
*
|
|
* Copyright (c) STMicroelectronics 2015
|
|
*
|
|
* Author: Peter Griffin <peter.griffin@linaro.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of
|
|
* the License, or (at your option) any later version.
|
|
*/
|
|
#ifndef _C8SECTPFE_COMMON_H_
|
|
#define _C8SECTPFE_COMMON_H_
|
|
|
|
#include <linux/dvb/dmx.h>
|
|
#include <linux/dvb/frontend.h>
|
|
#include <linux/gpio.h>
|
|
#include <linux/version.h>
|
|
|
|
#include "dmxdev.h"
|
|
#include "dvb_demux.h"
|
|
#include "dvb_frontend.h"
|
|
#include "dvb_net.h"
|
|
|
|
/* Maximum number of channels */
|
|
#define C8SECTPFE_MAXADAPTER (4)
|
|
#define C8SECTPFE_MAXCHANNEL 64
|
|
#define STPTI_MAXCHANNEL 64
|
|
|
|
#define MAX_INPUTBLOCKS 7
|
|
|
|
struct c8sectpfe;
|
|
struct stdemux;
|
|
|
|
struct stdemux {
|
|
struct dvb_demux dvb_demux;
|
|
struct dmxdev dmxdev;
|
|
struct dmx_frontend hw_frontend;
|
|
struct dmx_frontend mem_frontend;
|
|
int tsin_index;
|
|
int running_feed_count;
|
|
struct c8sectpfei *c8sectpfei;
|
|
};
|
|
|
|
struct c8sectpfe {
|
|
struct stdemux demux[MAX_INPUTBLOCKS];
|
|
struct mutex lock;
|
|
struct dvb_adapter adapter;
|
|
struct device *device;
|
|
int mapping;
|
|
int num_feeds;
|
|
};
|
|
|
|
/* Channel registration */
|
|
int c8sectpfe_tuner_register_frontend(struct c8sectpfe **c8sectpfe,
|
|
struct c8sectpfei *fei,
|
|
void *start_feed,
|
|
void *stop_feed);
|
|
|
|
void c8sectpfe_tuner_unregister_frontend(struct c8sectpfe *c8sectpfe,
|
|
struct c8sectpfei *fei);
|
|
|
|
#endif
|