Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] dvb: flexcop: readme update

readme update

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Johannes Stezenbach and committed by
Linus Torvalds
c6ee197c 59a7ad6c

+21 -100
+21 -100
Documentation/dvb/README.flexcop
··· 2 2 state of the new flexcop-driver set and some internals are written down here 3 3 too. 4 4 5 - How to do something in here? 6 - ============================ 7 - 8 - make -f Makefile.t 9 - make -C ../build-2.6 10 - ./in.sh # load the drivers 11 - ./rm.sh # unload the drivers 12 - 13 - Please read this file, if you want to contribute. 14 - 15 5 This document hopefully describes things about the flexcop and its 16 - device-offsprings. Goal is to write a easy-to-write and easy-to-read set of 6 + device-offsprings. Goal was to write an easy-to-write and easy-to-read set of 17 7 drivers based on the skystar2.c and other information. 18 - 19 - This directory is temporary. It is used for rewriting the skystar2.c and to 20 - create shared code, which then can be used by the usb box as well. 21 8 22 9 Remark: flexcop-pci.c was a copy of skystar2.c, but every line has been 23 10 touched and rewritten. 11 + 12 + History & News 13 + ============== 14 + 2005-04-01 - correct USB ISOC transfers (thanks to Vadim Catana) 15 + 16 + 17 + 24 18 25 19 General coding processing 26 20 ========================= ··· 75 81 76 82 2) Search for errors in the leftover of flexcop-pci.c (partially done) 77 83 5a) add MAC address reading 84 + 5c) feeding of ISOC data to the software demux (format of the isochronous data 85 + and speed optimization, no real error) (thanks to Vadim Catana) 78 86 79 87 What to do in the near future? 80 88 -------------------------------------- 81 89 (no special order here) 82 90 83 - 84 91 5) USB driver 85 92 5b) optimize isoc-transfer (submitting/killing isoc URBs when transfer is starting) 86 - 5c) feeding of ISOC data to the software demux (format of the isochronous data 87 - and speed optimization, no real error) 88 93 89 94 Testing changes 90 95 --------------- ··· 111 118 2) | O | N 112 119 5a) | N | O 113 120 5b)* | N | 114 - 5c)* | N | 121 + 5c) | N | O 115 122 116 123 * - not done yet 117 124 ··· 148 155 SOLUTION: also index 0 was affected, because net_translation is done for 149 156 these indexes by default 150 157 151 - 5b) isochronous transfer does only work in the first attempt (for the Sky2PC USB, 152 - Air2PC is working) 153 - SOLUTION: the flexcop was going asleep and never really woke up again (don't 154 - know if this need fixes, see flexcop-fe-tuner.c:flexcop_sleep) 158 + 5b) isochronous transfer does only work in the first attempt (for the Sky2PC 159 + USB, Air2PC is working) SOLUTION: the flexcop was going asleep and never really 160 + woke up again (don't know if this need fixes, see 161 + flexcop-fe-tuner.c:flexcop_sleep) 162 + 163 + NEWS: when the driver is loaded and unloaded and loaded again (w/o doing 164 + anything in the while the driver is loaded the first time), no transfers take 165 + place anymore. 155 166 156 167 Improvements when rewriting (refactoring) is done 157 168 ================================================= 158 169 159 170 - split sleeping of the flexcop (misc_204.ACPI3_sig = 1;) from lnb_control 160 171 (enable sleeping for other demods than dvb-s) 161 - - add support for CableStar (stv0297 Microtune 203x/ALPS) 172 + - add support for CableStar (stv0297 Microtune 203x/ALPS) (almost done, incompatibilities with the Nexus-CA) 162 173 163 174 Debugging 164 175 --------- ··· 189 192 Tuner/Demod: I2C bus 190 193 DVB-stuff: can be written for common use 191 194 192 - Restrictions: 193 - ============ 194 - 195 - We need to create a bus-specific-struct and a flexcop-struct. 196 - 197 - bus-specific-struct: 198 - 199 - struct flexcop_pci 200 - ... 201 - 202 - struct flexcop_usb 203 - ... 204 - 205 - 206 - struct flexcop_device { 207 - void *bus_specific; /* container for bus-specific struct */ 208 - ... 209 - } 210 - 211 - PCI i2c can read/write max 4 bytes at a time, USB can more 212 - 213 - Functions 214 - ========= 215 - 216 - Syntax 217 - ------ 218 - 219 - - Flexcop functions will be called "flexcop(_[a-z0-9]+)+" and exported as such 220 - if needed. 221 - - Flexcop-device functions will be called "flexcop_device(_[a-z0-9]+)+" and 222 - exported as such if needed. 223 - - Both will be compiled to b2c2-flexcop.ko and their source can be found in the 224 - flexcop*.[hc] 225 - 226 - Callbacks and exports 227 - --------------------- 228 - 229 - Bus-specific functions will be given as callbacks (function pointers) to the 230 - flexcop-module. (within the flexcop_device-struct) 231 - 232 - Initialization process 233 - ====================== 234 - 235 - b2c2-flexcop.ko is loaded 236 - b2c2-flexcop-<bus>.ko is loaded 237 - 238 - suppose a device is found: 239 - malloc flexcop and the bus-specific variables (via flexcop_device_malloc) 240 - fill the bus-specific variable 241 - fill the flexcop variable (especially the bus-specific callbacks) 242 - bus-specific initialization 243 - - ... 244 - do the common initialization (via flexcop_device_initialize) 245 - - reset the card 246 - - determine flexcop type (II, IIB, III) 247 - - hw_filters (bus dependent) 248 - - 0x204 249 - - set sram size 250 - - create the dvb-stuff 251 - - create i2c stuff 252 - - frontend-initialization 253 - done 254 - bus specific: 255 - - media_destination (this and the following 3 are bus specific) 256 - - cai_dest 257 - - cao_dest 258 - - net_destination 259 - 260 - Bugs fixed while rewriting the driver 261 - ===================================== 262 - 263 - - EEPROM access (to read the MAC address) was fixed to death some time last 264 - year. (fixed here and in skystar2.c) (Bjarne, this was the piece of code 265 - (fix-chipaddr) we were wondering about) 266 - 267 - 268 195 Acknowledgements (just for the rewriting part) 269 196 ================ 270 197 ··· 202 281 203 282 Vadim Catana for correcting the USB transfer. 204 283 205 - comments, critics and ideas to linux-dvb@linuxtv.org or patrick.boettcher@desy.de 284 + comments, critics and ideas to linux-dvb@linuxtv.org.