diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 20:37:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:59:21 -0400 |
commit | f6adb91c9e9b12b727cf6afb95282d759d103743 (patch) | |
tree | 151f1c81b936c09eb4de6bbfd75b43747cbcd37b /drivers/media/dvb | |
parent | f54376e275415588d5cb1c54b9edf895391efd71 (diff) |
V4L/DVB (3892): Trim documentation
Trim excess documentation down to the essentials.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.h | 85 |
1 files changed, 7 insertions, 78 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h index e0148a9e6633..05ec9954b158 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb/dvb-core/dvb_frontend.h | |||
@@ -62,99 +62,28 @@ struct dvb_tuner_info { | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | struct dvb_tuner_ops { | 64 | struct dvb_tuner_ops { |
65 | /** | 65 | |
66 | * Description of the tuner. | ||
67 | */ | ||
68 | struct dvb_tuner_info info; | 66 | struct dvb_tuner_info info; |
69 | 67 | ||
70 | /** | ||
71 | * Cleanup an attached tuner. | ||
72 | * | ||
73 | * @param fe dvb_frontend structure to clean it up from. | ||
74 | * @return 0 on success, <0 on failure. | ||
75 | */ | ||
76 | int (*release)(struct dvb_frontend *fe); | 68 | int (*release)(struct dvb_frontend *fe); |
77 | |||
78 | /** | ||
79 | * Initialise a tuner. | ||
80 | * | ||
81 | * @param fe dvb_frontend structure. | ||
82 | * @return 0 on success, <0 on failure. | ||
83 | */ | ||
84 | int (*init)(struct dvb_frontend *fe); | 69 | int (*init)(struct dvb_frontend *fe); |
85 | |||
86 | /** | ||
87 | * Set a tuner into low power mode. | ||
88 | * | ||
89 | * @param fe dvb_frontend structure. | ||
90 | * @return 0 on success, <0 on failure. | ||
91 | */ | ||
92 | int (*sleep)(struct dvb_frontend *fe); | 70 | int (*sleep)(struct dvb_frontend *fe); |
93 | 71 | ||
94 | /** | 72 | /** This is for simple PLLs - set all parameters in one go. */ |
95 | * This is for simple PLLs - set all parameters in one go. | ||
96 | * | ||
97 | * @param fe The dvb_frontend structure. | ||
98 | * @param p The parameters to set. | ||
99 | * @return 0 on success, <0 on failure. | ||
100 | */ | ||
101 | int (*set_params)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p); | 73 | int (*set_params)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p); |
102 | 74 | ||
103 | /** | 75 | /** This is support for demods like the mt352 - fills out the supplied buffer with what to write. */ |
104 | * This is support for demods like the mt352 - fills out the supplied buffer with what to write. | 76 | int (*calc_regs)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p, u8 *buf, int buf_len); |
105 | * | ||
106 | * @param fe The dvb_frontend structure. | ||
107 | * @param p The parameters to set. | ||
108 | * @param buf The buffer to fill with data. For an i2c tuner, the first byte should be the tuner i2c address in linux format. | ||
109 | * @param buf_len Size of buffer in bytes. | ||
110 | * @return Number of bytes used, or <0 on failure. | ||
111 | */ | ||
112 | int (*pllbuf)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p, u8 *buf, int buf_len); | ||
113 | |||
114 | /** | ||
115 | * Get the frequency the tuner was actually set to. | ||
116 | * | ||
117 | * @param fe The dvb_frontend structure. | ||
118 | * @param frequency Where to put it. | ||
119 | * @return 0 on success, or <0 on failure. | ||
120 | */ | ||
121 | int (*get_frequency)(struct dvb_frontend *fe, u32 *frequency); | ||
122 | 77 | ||
123 | /** | 78 | int (*get_frequency)(struct dvb_frontend *fe, u32 *frequency); |
124 | * Get the bandwidth the tuner was actually set to. | ||
125 | * | ||
126 | * @param fe The dvb_frontend structure. | ||
127 | * @param bandwidth Where to put it. | ||
128 | * @return 0 on success, or <0 on failure. | ||
129 | */ | ||
130 | int (*get_bandwidth)(struct dvb_frontend *fe, u32 *bandwidth); | 79 | int (*get_bandwidth)(struct dvb_frontend *fe, u32 *bandwidth); |
131 | 80 | ||
132 | /** | ||
133 | * Get the tuner's status. | ||
134 | * | ||
135 | * @param fe The dvb_frontend structure. | ||
136 | * @param status Where to put it. | ||
137 | * @return 0 on success, or <0 on failure. | ||
138 | */ | ||
139 | #define TUNER_STATUS_LOCKED 1 | 81 | #define TUNER_STATUS_LOCKED 1 |
140 | int (*get_status)(struct dvb_frontend *fe, u32 *status); | 82 | int (*get_status)(struct dvb_frontend *fe, u32 *status); |
141 | 83 | ||
142 | /** | 84 | /** These are provided seperately from set_params in order to facilitate silicon |
143 | * Set the frequency of the tuner - for complex tuners. | 85 | * tuners which require sophisticated tuning loops, controlling each parameter seperately. */ |
144 | * | ||
145 | * @param fe The dvb_frontend structure. | ||
146 | * @param frequency What to set. | ||
147 | * @return 0 on success, or <0 on failure. | ||
148 | */ | ||
149 | int (*set_frequency)(struct dvb_frontend *fe, u32 frequency); | 86 | int (*set_frequency)(struct dvb_frontend *fe, u32 frequency); |
150 | |||
151 | /** | ||
152 | * Set the bandwidth of the tuner - for complex tuners. | ||
153 | * | ||
154 | * @param fe The dvb_frontend structure. | ||
155 | * @param bandwidth What to set. | ||
156 | * @return 0 on success, or <0 on failure. | ||
157 | */ | ||
158 | int (*set_bandwidth)(struct dvb_frontend *fe, u32 bandwidth); | 87 | int (*set_bandwidth)(struct dvb_frontend *fe, u32 bandwidth); |
159 | }; | 88 | }; |
160 | 89 | ||