/*
 * 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.
 *
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Copyright (C) 2002,2003 Florian Schirmer <jolt@tuxbox.org>
 *
 * Copyright (C) 2007 NXP B.V.
 * All Rights Reserved.
 *
 * NXP based DVB adapter driver.
 * Based on the bt8xx driver by Florian Schirmer <jolt@tuxbox.org>
 *
*//*

Rev Date        Author         Comments
--------------------------------------------------------------------------------
001 20071221    Mike Whittaker  Port from Caen code
--------------------------------------------------------------------------------
    For consistency and standardisation retain the Section Separators.
*/

#ifndef TDA18211_H
#define TDA18211_H

#include <linux/i2c.h>
#include "dvb_frontend.h"

#ifndef NXPFE_TEST
 #if defined(CONFIG_DVB_TDA18211) || defined(CONFIG_DVB_TDA18211_MODULE) && defined(MODULE)
  extern struct dvb_frontend * tda18211_attach(struct dvb_frontend * fe, u8 i2c_addr, struct i2c_adapter * i2c_adap, int is_master);
 #else
  static inline struct dvb_frontend * tda18211_attach(struct dvb_frontend * fe, u8 i2c_addr, struct i2c_adapter * i2c_adap, int is_master)
  {
    printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
    return NULL;
  }
 #endif
#else
 extern struct dvb_frontend * tda18211_attach(struct dvb_frontend * fe, u8 i2c_addr, struct i2c_adapter * i2c_adap, int is_master);
#endif

#endif /* TDA18211_H */
