This source file includes following definitions.
- tda10021_attach
- tda10023_attach
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 #ifndef TDA1002x_H
  13 #define TDA1002x_H
  14 
  15 #include <linux/dvb/frontend.h>
  16 
  17 struct tda1002x_config {
  18         
  19         u8 demod_address;
  20         u8 invert;
  21 };
  22 
  23 enum tda10023_output_mode {
  24         TDA10023_OUTPUT_MODE_PARALLEL_A = 0xe0,
  25         TDA10023_OUTPUT_MODE_PARALLEL_B = 0xa1,
  26         TDA10023_OUTPUT_MODE_PARALLEL_C = 0xa0,
  27         TDA10023_OUTPUT_MODE_SERIAL, 
  28 };
  29 
  30 struct tda10023_config {
  31         
  32         u8 demod_address;
  33         u8 invert;
  34 
  35         
  36         u32 xtal; 
  37         u8 pll_m; 
  38         u8 pll_p; 
  39         u8 pll_n; 
  40 
  41         
  42         u8 output_mode;
  43 
  44         
  45         u16 deltaf;
  46 };
  47 
  48 #if IS_REACHABLE(CONFIG_DVB_TDA10021)
  49 extern struct dvb_frontend* tda10021_attach(const struct tda1002x_config* config,
  50                                             struct i2c_adapter* i2c, u8 pwm);
  51 #else
  52 static inline struct dvb_frontend* tda10021_attach(const struct tda1002x_config* config,
  53                                             struct i2c_adapter* i2c, u8 pwm)
  54 {
  55         printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  56         return NULL;
  57 }
  58 #endif 
  59 
  60 #if IS_REACHABLE(CONFIG_DVB_TDA10023)
  61 extern struct dvb_frontend *tda10023_attach(
  62         const struct tda10023_config *config,
  63         struct i2c_adapter *i2c, u8 pwm);
  64 #else
  65 static inline struct dvb_frontend *tda10023_attach(
  66         const struct tda10023_config *config,
  67         struct i2c_adapter *i2c, u8 pwm)
  68 {
  69         printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
  70         return NULL;
  71 }
  72 #endif 
  73 
  74 #endif