cxd2099.h 1.0 KB
Newer Older
1 2 3
/*
 * cxd2099.h: Driver for the CXD2099AR Common Interface Controller
 *
4
 * Copyright (C) 2010-2011 Digital Devices GmbH
5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 only, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _CXD2099_H_
#define _CXD2099_H_

19
#include <media/dvb_ca_en50221.h>
20

21 22 23
struct cxd2099_cfg {
	u32 bitrate;
	u8  adr;
24 25 26 27
	u8  polarity;
	u8  clock_mode;

	u32 max_i2c;
28

29 30 31
	/* ptr to DVB CA struct */
	struct dvb_ca_en50221 **en;
};
32

33
/* TODO: remove when done */
34 35 36
static inline struct
dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg, void *priv,
			       struct i2c_adapter *i2c)
37
{
38
	dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
39 40
	return NULL;
}
41 42

#endif