2011-01-10 09:36:15 +00:00
|
|
|
/*
|
|
|
|
* cxd2099.h: Driver for the CXD2099AR Common Interface Controller
|
|
|
|
*
|
2011-07-03 17:00:57 +00:00
|
|
|
* Copyright (C) 2010-2011 Digital Devices GmbH
|
2011-01-10 09:36:15 +00:00
|
|
|
*
|
|
|
|
* 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_
|
|
|
|
|
2017-12-28 18:03:51 +00:00
|
|
|
#include <media/dvb_ca_en50221.h>
|
2011-01-10 09:36:15 +00:00
|
|
|
|
2011-07-03 17:00:57 +00:00
|
|
|
struct cxd2099_cfg {
|
|
|
|
u32 bitrate;
|
|
|
|
u8 adr;
|
2017-06-25 21:37:08 +00:00
|
|
|
u8 polarity;
|
|
|
|
u8 clock_mode;
|
|
|
|
|
|
|
|
u32 max_i2c;
|
2011-07-03 17:00:57 +00:00
|
|
|
|
2018-02-17 15:03:23 +00:00
|
|
|
/* ptr to DVB CA struct */
|
|
|
|
struct dvb_ca_en50221 **en;
|
|
|
|
};
|
2011-07-03 17:00:57 +00:00
|
|
|
|
2018-02-17 15:03:23 +00:00
|
|
|
/* TODO: remove when done */
|
2017-12-12 18:46:55 +00:00
|
|
|
static inline struct
|
|
|
|
dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg, void *priv,
|
|
|
|
struct i2c_adapter *i2c)
|
2011-01-17 16:20:49 +00:00
|
|
|
{
|
2012-11-02 07:48:48 +00:00
|
|
|
dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
|
2011-01-17 16:20:49 +00:00
|
|
|
return NULL;
|
|
|
|
}
|
2011-01-10 09:36:15 +00:00
|
|
|
|
|
|
|
#endif
|