~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/media/dvb/frontends/stv090x.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        u32 ts1_clk;
79
79
        u32 ts2_clk;
80
80
 
 
81
        u8 ts1_tei : 1;
 
82
        u8 ts2_tei : 1;
 
83
 
81
84
        enum stv090x_i2crpt     repeater_level;
82
85
 
83
86
        u8                      tuner_bbgain; /* default: 10db */
97
100
        int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain);
98
101
        int (*tuner_set_refclk)  (struct dvb_frontend *fe, u32 refclk);
99
102
        int (*tuner_get_status) (struct dvb_frontend *fe, u32 *status);
 
103
        void (*tuner_i2c_lock) (struct dvb_frontend *fe, int lock);
100
104
};
101
105
 
102
106
#if defined(CONFIG_DVB_STV090x) || (defined(CONFIG_DVB_STV090x_MODULE) && defined(MODULE))
104
108
extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
105
109
                                           struct i2c_adapter *i2c,
106
110
                                           enum stv090x_demodulator demod);
 
111
 
 
112
/* dir = 0 -> output, dir = 1 -> input/open-drain */
 
113
extern int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio,
 
114
                u8 dir, u8 value, u8 xor_value);
 
115
 
107
116
#else
108
117
 
109
118
static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
113
122
        printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
114
123
        return NULL;
115
124
}
 
125
 
 
126
static inline int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio,
 
127
                u8 opd, u8 value, u8 xor_value)
 
128
{
 
129
        printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
 
130
        return -ENODEV;
 
131
}
116
132
#endif /* CONFIG_DVB_STV090x */
117
133
 
118
134
#endif /* __STV090x_H */