cx88-cards.c 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. /*
  2. *
  3. * device driver for Conexant 2388x based TV cards
  4. * card-specific stuff.
  5. *
  6. * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. #include <linux/init.h>
  23. #include <linux/module.h>
  24. #include <linux/pci.h>
  25. #include <linux/delay.h>
  26. #include "cx88.h"
  27. /* ------------------------------------------------------------------ */
  28. /* board config info */
  29. struct cx88_board cx88_boards[] = {
  30. [CX88_BOARD_UNKNOWN] = {
  31. .name = "UNKNOWN/GENERIC",
  32. .tuner_type = UNSET,
  33. .radio_type = UNSET,
  34. .tuner_addr = ADDR_UNSET,
  35. .radio_addr = ADDR_UNSET,
  36. .input = {{
  37. .type = CX88_VMUX_COMPOSITE1,
  38. .vmux = 0,
  39. },{
  40. .type = CX88_VMUX_COMPOSITE2,
  41. .vmux = 1,
  42. },{
  43. .type = CX88_VMUX_COMPOSITE3,
  44. .vmux = 2,
  45. },{
  46. .type = CX88_VMUX_COMPOSITE4,
  47. .vmux = 3,
  48. }},
  49. },
  50. [CX88_BOARD_HAUPPAUGE] = {
  51. .name = "Hauppauge WinTV 34xxx models",
  52. .tuner_type = UNSET,
  53. .radio_type = UNSET,
  54. .tuner_addr = ADDR_UNSET,
  55. .radio_addr = ADDR_UNSET,
  56. .tda9887_conf = TDA9887_PRESENT,
  57. .input = {{
  58. .type = CX88_VMUX_TELEVISION,
  59. .vmux = 0,
  60. .gpio0 = 0xff00, // internal decoder
  61. },{
  62. .type = CX88_VMUX_DEBUG,
  63. .vmux = 0,
  64. .gpio0 = 0xff01, // mono from tuner chip
  65. },{
  66. .type = CX88_VMUX_COMPOSITE1,
  67. .vmux = 1,
  68. .gpio0 = 0xff02,
  69. },{
  70. .type = CX88_VMUX_SVIDEO,
  71. .vmux = 2,
  72. .gpio0 = 0xff02,
  73. }},
  74. .radio = {
  75. .type = CX88_RADIO,
  76. .gpio0 = 0xff01,
  77. },
  78. },
  79. [CX88_BOARD_GDI] = {
  80. .name = "GDI Black Gold",
  81. .tuner_type = UNSET,
  82. .radio_type = UNSET,
  83. .tuner_addr = ADDR_UNSET,
  84. .radio_addr = ADDR_UNSET,
  85. .input = {{
  86. .type = CX88_VMUX_TELEVISION,
  87. .vmux = 0,
  88. },{
  89. .type = CX88_VMUX_SVIDEO,
  90. .vmux = 2,
  91. }},
  92. },
  93. [CX88_BOARD_PIXELVIEW] = {
  94. .name = "PixelView",
  95. .tuner_type = TUNER_PHILIPS_PAL,
  96. .radio_type = UNSET,
  97. .tuner_addr = ADDR_UNSET,
  98. .radio_addr = ADDR_UNSET,
  99. .input = {{
  100. .type = CX88_VMUX_TELEVISION,
  101. .vmux = 0,
  102. .gpio0 = 0xff00, // internal decoder
  103. },{
  104. .type = CX88_VMUX_COMPOSITE1,
  105. .vmux = 1,
  106. },{
  107. .type = CX88_VMUX_SVIDEO,
  108. .vmux = 2,
  109. }},
  110. .radio = {
  111. .type = CX88_RADIO,
  112. .gpio0 = 0xff10,
  113. },
  114. },
  115. [CX88_BOARD_ATI_WONDER_PRO] = {
  116. .name = "ATI TV Wonder Pro",
  117. .tuner_type = TUNER_PHILIPS_4IN1,
  118. .radio_type = UNSET,
  119. .tuner_addr = ADDR_UNSET,
  120. .radio_addr = ADDR_UNSET,
  121. .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
  122. .input = {{
  123. .type = CX88_VMUX_TELEVISION,
  124. .vmux = 0,
  125. .gpio0 = 0x03ff,
  126. },{
  127. .type = CX88_VMUX_COMPOSITE1,
  128. .vmux = 1,
  129. .gpio0 = 0x03fe,
  130. },{
  131. .type = CX88_VMUX_SVIDEO,
  132. .vmux = 2,
  133. .gpio0 = 0x03fe,
  134. }},
  135. },
  136. [CX88_BOARD_WINFAST2000XP_EXPERT] = {
  137. .name = "Leadtek Winfast 2000XP Expert",
  138. .tuner_type = TUNER_PHILIPS_4IN1,
  139. .radio_type = UNSET,
  140. .tuner_addr = ADDR_UNSET,
  141. .radio_addr = ADDR_UNSET,
  142. .tda9887_conf = TDA9887_PRESENT,
  143. .input = {{
  144. .type = CX88_VMUX_TELEVISION,
  145. .vmux = 0,
  146. .gpio0 = 0x00F5e700,
  147. .gpio1 = 0x00003004,
  148. .gpio2 = 0x00F5e700,
  149. .gpio3 = 0x02000000,
  150. },{
  151. .type = CX88_VMUX_COMPOSITE1,
  152. .vmux = 1,
  153. .gpio0 = 0x00F5c700,
  154. .gpio1 = 0x00003004,
  155. .gpio2 = 0x00F5c700,
  156. .gpio3 = 0x02000000,
  157. },{
  158. .type = CX88_VMUX_SVIDEO,
  159. .vmux = 2,
  160. .gpio0 = 0x00F5c700,
  161. .gpio1 = 0x00003004,
  162. .gpio2 = 0x00F5c700,
  163. .gpio3 = 0x02000000,
  164. }},
  165. .radio = {
  166. .type = CX88_RADIO,
  167. .gpio0 = 0x00F5d700,
  168. .gpio1 = 0x00003004,
  169. .gpio2 = 0x00F5d700,
  170. .gpio3 = 0x02000000,
  171. },
  172. },
  173. [CX88_BOARD_AVERTV_303] = {
  174. .name = "AverTV Studio 303 (M126)",
  175. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  176. .radio_type = UNSET,
  177. .tuner_addr = ADDR_UNSET,
  178. .radio_addr = ADDR_UNSET,
  179. .tda9887_conf = TDA9887_PRESENT,
  180. .input = {{
  181. .type = CX88_VMUX_TELEVISION,
  182. .vmux = 0,
  183. .gpio1 = 0x309f,
  184. },{
  185. .type = CX88_VMUX_COMPOSITE1,
  186. .vmux = 1,
  187. .gpio1 = 0x305f,
  188. },{
  189. .type = CX88_VMUX_SVIDEO,
  190. .vmux = 2,
  191. .gpio1 = 0x305f,
  192. }},
  193. .radio = {
  194. .type = CX88_RADIO,
  195. },
  196. },
  197. [CX88_BOARD_MSI_TVANYWHERE_MASTER] = {
  198. // added gpio values thanks to Michal
  199. // values for PAL from DScaler
  200. .name = "MSI TV-@nywhere Master",
  201. .tuner_type = TUNER_MT2032,
  202. .radio_type = UNSET,
  203. .tuner_addr = ADDR_UNSET,
  204. .radio_addr = ADDR_UNSET,
  205. .tda9887_conf = TDA9887_PRESENT,
  206. .input = {{
  207. .type = CX88_VMUX_TELEVISION,
  208. .vmux = 0,
  209. .gpio0 = 0x000040bf,
  210. .gpio1 = 0x000080c0,
  211. .gpio2 = 0x0000ff40,
  212. },{
  213. .type = CX88_VMUX_COMPOSITE1,
  214. .vmux = 1,
  215. .gpio0 = 0x000040bf,
  216. .gpio1 = 0x000080c0,
  217. .gpio2 = 0x0000ff40,
  218. },{
  219. .type = CX88_VMUX_SVIDEO,
  220. .vmux = 2,
  221. .gpio0 = 0x000040bf,
  222. .gpio1 = 0x000080c0,
  223. .gpio2 = 0x0000ff40,
  224. }},
  225. .radio = {
  226. .type = CX88_RADIO,
  227. },
  228. },
  229. [CX88_BOARD_WINFAST_DV2000] = {
  230. .name = "Leadtek Winfast DV2000",
  231. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  232. .radio_type = UNSET,
  233. .tuner_addr = ADDR_UNSET,
  234. .radio_addr = ADDR_UNSET,
  235. .tda9887_conf = TDA9887_PRESENT,
  236. .input = {{
  237. .type = CX88_VMUX_TELEVISION,
  238. .vmux = 0,
  239. .gpio0 = 0x0035e700,
  240. .gpio1 = 0x00003004,
  241. .gpio2 = 0x0035e700,
  242. .gpio3 = 0x02000000,
  243. },{
  244. .type = CX88_VMUX_COMPOSITE1,
  245. .vmux = 1,
  246. .gpio0 = 0x0035c700,
  247. .gpio1 = 0x00003004,
  248. .gpio2 = 0x0035c700,
  249. .gpio3 = 0x02000000,
  250. },{
  251. .type = CX88_VMUX_SVIDEO,
  252. .vmux = 2,
  253. .gpio0 = 0x0035c700,
  254. .gpio1 = 0x0035c700,
  255. .gpio2 = 0x02000000,
  256. .gpio3 = 0x02000000,
  257. }},
  258. .radio = {
  259. .type = CX88_RADIO,
  260. .gpio0 = 0x0035d700,
  261. .gpio1 = 0x00007004,
  262. .gpio2 = 0x0035d700,
  263. .gpio3 = 0x02000000,
  264. },
  265. },
  266. [CX88_BOARD_LEADTEK_PVR2000] = {
  267. // gpio values for PAL version from regspy by DScaler
  268. .name = "Leadtek PVR 2000",
  269. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  270. .radio_type = UNSET,
  271. .tuner_addr = ADDR_UNSET,
  272. .radio_addr = ADDR_UNSET,
  273. .tda9887_conf = TDA9887_PRESENT,
  274. .input = {{
  275. .type = CX88_VMUX_TELEVISION,
  276. .vmux = 0,
  277. .gpio0 = 0x0000bde2,
  278. },{
  279. .type = CX88_VMUX_COMPOSITE1,
  280. .vmux = 1,
  281. .gpio0 = 0x0000bde6,
  282. },{
  283. .type = CX88_VMUX_SVIDEO,
  284. .vmux = 2,
  285. .gpio0 = 0x0000bde6,
  286. }},
  287. .radio = {
  288. .type = CX88_RADIO,
  289. .gpio0 = 0x0000bd62,
  290. },
  291. .blackbird = 1,
  292. },
  293. [CX88_BOARD_IODATA_GVVCP3PCI] = {
  294. .name = "IODATA GV-VCP3/PCI",
  295. .tuner_type = TUNER_ABSENT,
  296. .radio_type = UNSET,
  297. .tuner_addr = ADDR_UNSET,
  298. .radio_addr = ADDR_UNSET,
  299. .input = {{
  300. .type = CX88_VMUX_COMPOSITE1,
  301. .vmux = 0,
  302. },{
  303. .type = CX88_VMUX_COMPOSITE2,
  304. .vmux = 1,
  305. },{
  306. .type = CX88_VMUX_SVIDEO,
  307. .vmux = 2,
  308. }},
  309. },
  310. [CX88_BOARD_PROLINK_PLAYTVPVR] = {
  311. .name = "Prolink PlayTV PVR",
  312. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  313. .radio_type = UNSET,
  314. .tuner_addr = ADDR_UNSET,
  315. .radio_addr = ADDR_UNSET,
  316. .tda9887_conf = TDA9887_PRESENT,
  317. .input = {{
  318. .type = CX88_VMUX_TELEVISION,
  319. .vmux = 0,
  320. .gpio0 = 0xff00,
  321. },{
  322. .type = CX88_VMUX_COMPOSITE1,
  323. .vmux = 1,
  324. .gpio0 = 0xff03,
  325. },{
  326. .type = CX88_VMUX_SVIDEO,
  327. .vmux = 2,
  328. .gpio0 = 0xff03,
  329. }},
  330. .radio = {
  331. .type = CX88_RADIO,
  332. .gpio0 = 0xff00,
  333. },
  334. },
  335. [CX88_BOARD_ASUS_PVR_416] = {
  336. .name = "ASUS PVR-416",
  337. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  338. .radio_type = UNSET,
  339. .tuner_addr = ADDR_UNSET,
  340. .radio_addr = ADDR_UNSET,
  341. .tda9887_conf = TDA9887_PRESENT,
  342. .input = {{
  343. .type = CX88_VMUX_TELEVISION,
  344. .vmux = 0,
  345. .gpio0 = 0x0000fde6,
  346. },{
  347. .type = CX88_VMUX_SVIDEO,
  348. .vmux = 2,
  349. .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
  350. }},
  351. .radio = {
  352. .type = CX88_RADIO,
  353. .gpio0 = 0x0000fde2,
  354. },
  355. .blackbird = 1,
  356. },
  357. [CX88_BOARD_MSI_TVANYWHERE] = {
  358. .name = "MSI TV-@nywhere",
  359. .tuner_type = TUNER_MT2032,
  360. .radio_type = UNSET,
  361. .tuner_addr = ADDR_UNSET,
  362. .radio_addr = ADDR_UNSET,
  363. .tda9887_conf = TDA9887_PRESENT,
  364. .input = {{
  365. .type = CX88_VMUX_TELEVISION,
  366. .vmux = 0,
  367. .gpio0 = 0x00000fbf,
  368. .gpio2 = 0x0000fc08,
  369. },{
  370. .type = CX88_VMUX_COMPOSITE1,
  371. .vmux = 1,
  372. .gpio0 = 0x00000fbf,
  373. .gpio2 = 0x0000fc68,
  374. },{
  375. .type = CX88_VMUX_SVIDEO,
  376. .vmux = 2,
  377. .gpio0 = 0x00000fbf,
  378. .gpio2 = 0x0000fc68,
  379. }},
  380. },
  381. [CX88_BOARD_KWORLD_DVB_T] = {
  382. .name = "KWorld/VStream XPert DVB-T",
  383. .tuner_type = TUNER_ABSENT,
  384. .radio_type = UNSET,
  385. .tuner_addr = ADDR_UNSET,
  386. .radio_addr = ADDR_UNSET,
  387. .input = {{
  388. .type = CX88_VMUX_COMPOSITE1,
  389. .vmux = 1,
  390. .gpio0 = 0x0700,
  391. .gpio2 = 0x0101,
  392. },{
  393. .type = CX88_VMUX_SVIDEO,
  394. .vmux = 2,
  395. .gpio0 = 0x0700,
  396. .gpio2 = 0x0101,
  397. }},
  398. .dvb = 1,
  399. },
  400. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
  401. .name = "DViCO FusionHDTV DVB-T1",
  402. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  403. .radio_type = UNSET,
  404. .tuner_addr = ADDR_UNSET,
  405. .radio_addr = ADDR_UNSET,
  406. .input = {{
  407. .type = CX88_VMUX_COMPOSITE1,
  408. .vmux = 1,
  409. .gpio0 = 0x000027df,
  410. },{
  411. .type = CX88_VMUX_SVIDEO,
  412. .vmux = 2,
  413. .gpio0 = 0x000027df,
  414. }},
  415. .dvb = 1,
  416. },
  417. [CX88_BOARD_KWORLD_LTV883] = {
  418. .name = "KWorld LTV883RF",
  419. .tuner_type = TUNER_TNF_8831BGFF,
  420. .radio_type = UNSET,
  421. .tuner_addr = ADDR_UNSET,
  422. .radio_addr = ADDR_UNSET,
  423. .input = {{
  424. .type = CX88_VMUX_TELEVISION,
  425. .vmux = 0,
  426. .gpio0 = 0x07f8,
  427. },{
  428. .type = CX88_VMUX_DEBUG,
  429. .vmux = 0,
  430. .gpio0 = 0x07f9, // mono from tuner chip
  431. },{
  432. .type = CX88_VMUX_COMPOSITE1,
  433. .vmux = 1,
  434. .gpio0 = 0x000007fa,
  435. },{
  436. .type = CX88_VMUX_SVIDEO,
  437. .vmux = 2,
  438. .gpio0 = 0x000007fa,
  439. }},
  440. .radio = {
  441. .type = CX88_RADIO,
  442. .gpio0 = 0x000007f8,
  443. },
  444. },
  445. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
  446. .name = "DViCO FusionHDTV 3 Gold-Q",
  447. .tuner_type = TUNER_MICROTUNE_4042FI5,
  448. .radio_type = UNSET,
  449. .tuner_addr = ADDR_UNSET,
  450. .radio_addr = ADDR_UNSET,
  451. /*
  452. GPIO[0] resets DT3302 DTV receiver
  453. 0 - reset asserted
  454. 1 - normal operation
  455. GPIO[1] mutes analog audio output connector
  456. 0 - enable selected source
  457. 1 - mute
  458. GPIO[2] selects source for analog audio output connector
  459. 0 - analog audio input connector on tab
  460. 1 - analog DAC output from CX23881 chip
  461. GPIO[3] selects RF input connector on tuner module
  462. 0 - RF connector labeled CABLE
  463. 1 - RF connector labeled ANT
  464. GPIO[4] selects high RF for QAM256 mode
  465. 0 - normal RF
  466. 1 - high RF
  467. */
  468. .input = {{
  469. .type = CX88_VMUX_TELEVISION,
  470. .vmux = 0,
  471. .gpio0 = 0x0f0d,
  472. },{
  473. .type = CX88_VMUX_CABLE,
  474. .vmux = 0,
  475. .gpio0 = 0x0f05,
  476. },{
  477. .type = CX88_VMUX_COMPOSITE1,
  478. .vmux = 1,
  479. .gpio0 = 0x0f00,
  480. },{
  481. .type = CX88_VMUX_SVIDEO,
  482. .vmux = 2,
  483. .gpio0 = 0x0f00,
  484. }},
  485. .dvb = 1,
  486. },
  487. [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
  488. .name = "Hauppauge Nova-T DVB-T",
  489. .tuner_type = TUNER_ABSENT,
  490. .radio_type = UNSET,
  491. .tuner_addr = ADDR_UNSET,
  492. .radio_addr = ADDR_UNSET,
  493. .input = {{
  494. .type = CX88_VMUX_DVB,
  495. .vmux = 0,
  496. }},
  497. .dvb = 1,
  498. },
  499. [CX88_BOARD_CONEXANT_DVB_T1] = {
  500. .name = "Conexant DVB-T reference design",
  501. .tuner_type = TUNER_ABSENT,
  502. .radio_type = UNSET,
  503. .tuner_addr = ADDR_UNSET,
  504. .radio_addr = ADDR_UNSET,
  505. .input = {{
  506. .type = CX88_VMUX_DVB,
  507. .vmux = 0,
  508. }},
  509. .dvb = 1,
  510. },
  511. [CX88_BOARD_PROVIDEO_PV259] = {
  512. .name = "Provideo PV259",
  513. .tuner_type = TUNER_PHILIPS_FQ1216ME,
  514. .radio_type = UNSET,
  515. .tuner_addr = ADDR_UNSET,
  516. .radio_addr = ADDR_UNSET,
  517. .input = {{
  518. .type = CX88_VMUX_TELEVISION,
  519. .vmux = 0,
  520. }},
  521. .blackbird = 1,
  522. },
  523. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
  524. .name = "DViCO FusionHDTV DVB-T Plus",
  525. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  526. .radio_type = UNSET,
  527. .tuner_addr = ADDR_UNSET,
  528. .radio_addr = ADDR_UNSET,
  529. .input = {{
  530. .type = CX88_VMUX_COMPOSITE1,
  531. .vmux = 1,
  532. .gpio0 = 0x000027df,
  533. },{
  534. .type = CX88_VMUX_SVIDEO,
  535. .vmux = 2,
  536. .gpio0 = 0x000027df,
  537. }},
  538. .dvb = 1,
  539. },
  540. [CX88_BOARD_DNTV_LIVE_DVB_T] = {
  541. .name = "digitalnow DNTV Live! DVB-T",
  542. .tuner_type = TUNER_ABSENT,
  543. .radio_type = UNSET,
  544. .tuner_addr = ADDR_UNSET,
  545. .radio_addr = ADDR_UNSET,
  546. .input = {{
  547. .type = CX88_VMUX_COMPOSITE1,
  548. .vmux = 1,
  549. .gpio0 = 0x00000700,
  550. .gpio2 = 0x00000101,
  551. },{
  552. .type = CX88_VMUX_SVIDEO,
  553. .vmux = 2,
  554. .gpio0 = 0x00000700,
  555. .gpio2 = 0x00000101,
  556. }},
  557. .dvb = 1,
  558. },
  559. [CX88_BOARD_PCHDTV_HD3000] = {
  560. .name = "pcHDTV HD3000 HDTV",
  561. .tuner_type = TUNER_THOMSON_DTT7610,
  562. .radio_type = UNSET,
  563. .tuner_addr = ADDR_UNSET,
  564. .radio_addr = ADDR_UNSET,
  565. .input = {{
  566. .type = CX88_VMUX_TELEVISION,
  567. .vmux = 0,
  568. .gpio0 = 0x00008484,
  569. .gpio1 = 0x00000000,
  570. .gpio2 = 0x00000000,
  571. .gpio3 = 0x00000000,
  572. },{
  573. .type = CX88_VMUX_COMPOSITE1,
  574. .vmux = 1,
  575. .gpio0 = 0x00008400,
  576. .gpio1 = 0x00000000,
  577. .gpio2 = 0x00000000,
  578. .gpio3 = 0x00000000,
  579. },{
  580. .type = CX88_VMUX_SVIDEO,
  581. .vmux = 2,
  582. .gpio0 = 0x00008400,
  583. .gpio1 = 0x00000000,
  584. .gpio2 = 0x00000000,
  585. .gpio3 = 0x00000000,
  586. }},
  587. .radio = {
  588. .type = CX88_RADIO,
  589. .vmux = 2,
  590. .gpio0 = 0x00008400,
  591. .gpio1 = 0x00000000,
  592. .gpio2 = 0x00000000,
  593. .gpio3 = 0x00000000,
  594. },
  595. .dvb = 1,
  596. },
  597. [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
  598. // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
  599. // GPIO values obtained from regspy, courtesy Sean Covel
  600. .name = "Hauppauge WinTV 28xxx (Roslyn) models",
  601. .tuner_type = UNSET,
  602. .radio_type = UNSET,
  603. .tuner_addr = ADDR_UNSET,
  604. .radio_addr = ADDR_UNSET,
  605. .input = {{
  606. .type = CX88_VMUX_TELEVISION,
  607. .vmux = 0,
  608. .gpio0 = 0xed12, /* internal decoder */
  609. .gpio2 = 0x00ff,
  610. },{
  611. .type = CX88_VMUX_DEBUG,
  612. .vmux = 0,
  613. .gpio0 = 0xff01, /* mono from tuner chip */
  614. },{
  615. .type = CX88_VMUX_COMPOSITE1,
  616. .vmux = 1,
  617. .gpio0 = 0xff02,
  618. },{
  619. .type = CX88_VMUX_SVIDEO,
  620. .vmux = 2,
  621. .gpio0 = 0xed92,
  622. .gpio2 = 0x00ff,
  623. }},
  624. .radio = {
  625. .type = CX88_RADIO,
  626. .gpio0 = 0xed96,
  627. .gpio2 = 0x00ff,
  628. },
  629. .blackbird = 1,
  630. },
  631. [CX88_BOARD_DIGITALLOGIC_MEC] = {
  632. .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
  633. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  634. .radio_type = UNSET,
  635. .tuner_addr = ADDR_UNSET,
  636. .radio_addr = ADDR_UNSET,
  637. .tda9887_conf = TDA9887_PRESENT,
  638. .input = {{
  639. .type = CX88_VMUX_TELEVISION,
  640. .vmux = 0,
  641. .gpio0 = 0x00009d80,
  642. },{
  643. .type = CX88_VMUX_COMPOSITE1,
  644. .vmux = 1,
  645. .gpio0 = 0x00009d76,
  646. },{
  647. .type = CX88_VMUX_SVIDEO,
  648. .vmux = 2,
  649. .gpio0 = 0x00009d76,
  650. }},
  651. .radio = {
  652. .type = CX88_RADIO,
  653. .gpio0 = 0x00009d00,
  654. },
  655. .blackbird = 1,
  656. },
  657. [CX88_BOARD_IODATA_GVBCTV7E] = {
  658. .name = "IODATA GV/BCTV7E",
  659. .tuner_type = TUNER_PHILIPS_FQ1286,
  660. .radio_type = UNSET,
  661. .tuner_addr = ADDR_UNSET,
  662. .radio_addr = ADDR_UNSET,
  663. .tda9887_conf = TDA9887_PRESENT,
  664. .input = {{
  665. .type = CX88_VMUX_TELEVISION,
  666. .vmux = 1,
  667. .gpio1 = 0x0000e03f,
  668. },{
  669. .type = CX88_VMUX_COMPOSITE1,
  670. .vmux = 2,
  671. .gpio1 = 0x0000e07f,
  672. },{
  673. .type = CX88_VMUX_SVIDEO,
  674. .vmux = 3,
  675. .gpio1 = 0x0000e07f,
  676. }}
  677. },
  678. [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
  679. .name = "PixelView PlayTV Ultra Pro (Stereo)",
  680. /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
  681. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  682. .radio_type = UNSET,
  683. .tuner_addr = ADDR_UNSET,
  684. .radio_addr = ADDR_UNSET,
  685. .input = {{
  686. .type = CX88_VMUX_TELEVISION,
  687. .vmux = 0,
  688. .gpio0 = 0xbf61, /* internal decoder */
  689. },{
  690. .type = CX88_VMUX_COMPOSITE1,
  691. .vmux = 1,
  692. .gpio0 = 0xbf63,
  693. },{
  694. .type = CX88_VMUX_SVIDEO,
  695. .vmux = 2,
  696. .gpio0 = 0xbf63,
  697. }},
  698. .radio = {
  699. .type = CX88_RADIO,
  700. .gpio0 = 0xbf60,
  701. },
  702. },
  703. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
  704. .name = "DViCO FusionHDTV 3 Gold-T",
  705. .tuner_type = TUNER_THOMSON_DTT7611,
  706. .radio_type = UNSET,
  707. .tuner_addr = ADDR_UNSET,
  708. .radio_addr = ADDR_UNSET,
  709. .input = {{
  710. .type = CX88_VMUX_TELEVISION,
  711. .vmux = 0,
  712. .gpio0 = 0x97ed,
  713. },{
  714. .type = CX88_VMUX_COMPOSITE1,
  715. .vmux = 1,
  716. .gpio0 = 0x97e9,
  717. },{
  718. .type = CX88_VMUX_SVIDEO,
  719. .vmux = 2,
  720. .gpio0 = 0x97e9,
  721. }},
  722. .dvb = 1,
  723. },
  724. [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
  725. .name = "ADS Tech Instant TV DVB-T PCI",
  726. .tuner_type = TUNER_ABSENT,
  727. .radio_type = UNSET,
  728. .tuner_addr = ADDR_UNSET,
  729. .radio_addr = ADDR_UNSET,
  730. .input = {{
  731. .type = CX88_VMUX_COMPOSITE1,
  732. .vmux = 1,
  733. .gpio0 = 0x0700,
  734. .gpio2 = 0x0101,
  735. },{
  736. .type = CX88_VMUX_SVIDEO,
  737. .vmux = 2,
  738. .gpio0 = 0x0700,
  739. .gpio2 = 0x0101,
  740. }},
  741. .dvb = 1,
  742. },
  743. [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
  744. .name = "TerraTec Cinergy 1400 DVB-T",
  745. .tuner_type = TUNER_ABSENT,
  746. .input = {{
  747. .type = CX88_VMUX_DVB,
  748. .vmux = 0,
  749. }},
  750. .dvb = 1,
  751. },
  752. [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
  753. .name = "DViCO FusionHDTV 5 Gold",
  754. .tuner_type = TUNER_LG_TDVS_H062F,
  755. .radio_type = UNSET,
  756. .tuner_addr = ADDR_UNSET,
  757. .radio_addr = ADDR_UNSET,
  758. .tda9887_conf = TDA9887_PRESENT,
  759. .input = {{
  760. .type = CX88_VMUX_TELEVISION,
  761. .vmux = 0,
  762. .gpio0 = 0x87fd,
  763. },{
  764. .type = CX88_VMUX_COMPOSITE1,
  765. .vmux = 1,
  766. .gpio0 = 0x87f9,
  767. },{
  768. .type = CX88_VMUX_SVIDEO,
  769. .vmux = 2,
  770. .gpio0 = 0x87f9,
  771. }},
  772. .dvb = 1,
  773. },
  774. [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
  775. .name = "AverMedia UltraTV Media Center PCI 550",
  776. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  777. .radio_type = UNSET,
  778. .tuner_addr = ADDR_UNSET,
  779. .radio_addr = ADDR_UNSET,
  780. .tda9887_conf = TDA9887_PRESENT,
  781. .blackbird = 1,
  782. .input = {{
  783. .type = CX88_VMUX_COMPOSITE1,
  784. .vmux = 0,
  785. .gpio0 = 0x0000cd73,
  786. },{
  787. .type = CX88_VMUX_SVIDEO,
  788. .vmux = 1,
  789. .gpio0 = 0x0000cd73,
  790. },{
  791. .type = CX88_VMUX_TELEVISION,
  792. .vmux = 3,
  793. .gpio0 = 0x0000cdb3,
  794. }},
  795. .radio = {
  796. .type = CX88_RADIO,
  797. .vmux = 2,
  798. .gpio0 = 0x0000cdf3,
  799. },
  800. },
  801. };
  802. const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
  803. /* ------------------------------------------------------------------ */
  804. /* PCI subsystem IDs */
  805. struct cx88_subid cx88_subids[] = {
  806. {
  807. .subvendor = 0x0070,
  808. .subdevice = 0x3400,
  809. .card = CX88_BOARD_HAUPPAUGE,
  810. },{
  811. .subvendor = 0x0070,
  812. .subdevice = 0x3401,
  813. .card = CX88_BOARD_HAUPPAUGE,
  814. },{
  815. .subvendor = 0x14c7,
  816. .subdevice = 0x0106,
  817. .card = CX88_BOARD_GDI,
  818. },{
  819. .subvendor = 0x14c7,
  820. .subdevice = 0x0107, /* with mpeg encoder */
  821. .card = CX88_BOARD_GDI,
  822. },{
  823. .subvendor = PCI_VENDOR_ID_ATI,
  824. .subdevice = 0x00f8,
  825. .card = CX88_BOARD_ATI_WONDER_PRO,
  826. },{
  827. .subvendor = 0x107d,
  828. .subdevice = 0x6611,
  829. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  830. },{
  831. .subvendor = 0x107d,
  832. .subdevice = 0x6613, /* NTSC */
  833. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  834. },{
  835. .subvendor = 0x107d,
  836. .subdevice = 0x6620,
  837. .card = CX88_BOARD_WINFAST_DV2000,
  838. },{
  839. .subvendor = 0x107d,
  840. .subdevice = 0x663b,
  841. .card = CX88_BOARD_LEADTEK_PVR2000,
  842. },{
  843. .subvendor = 0x107d,
  844. .subdevice = 0x663C,
  845. .card = CX88_BOARD_LEADTEK_PVR2000,
  846. },{
  847. .subvendor = 0x1461,
  848. .subdevice = 0x000b,
  849. .card = CX88_BOARD_AVERTV_303,
  850. },{
  851. .subvendor = 0x1462,
  852. .subdevice = 0x8606,
  853. .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
  854. },{
  855. .subvendor = 0x10fc,
  856. .subdevice = 0xd003,
  857. .card = CX88_BOARD_IODATA_GVVCP3PCI,
  858. },{
  859. .subvendor = 0x1043,
  860. .subdevice = 0x4823, /* with mpeg encoder */
  861. .card = CX88_BOARD_ASUS_PVR_416,
  862. },{
  863. .subvendor = 0x17de,
  864. .subdevice = 0x08a6,
  865. .card = CX88_BOARD_KWORLD_DVB_T,
  866. },{
  867. .subvendor = 0x18ac,
  868. .subdevice = 0xd810,
  869. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  870. },{
  871. .subvendor = 0x18ac,
  872. .subdevice = 0xd820,
  873. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
  874. },{
  875. .subvendor = 0x18AC,
  876. .subdevice = 0xDB00,
  877. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
  878. },{
  879. .subvendor = 0x0070,
  880. .subdevice = 0x9002,
  881. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  882. },{
  883. .subvendor = 0x14f1,
  884. .subdevice = 0x0187,
  885. .card = CX88_BOARD_CONEXANT_DVB_T1,
  886. },{
  887. .subvendor = 0x1540,
  888. .subdevice = 0x2580,
  889. .card = CX88_BOARD_PROVIDEO_PV259,
  890. },{
  891. .subvendor = 0x18AC,
  892. .subdevice = 0xDB10,
  893. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  894. },{
  895. .subvendor = 0x1554,
  896. .subdevice = 0x4811,
  897. .card = CX88_BOARD_PIXELVIEW,
  898. },{
  899. .subvendor = 0x7063,
  900. .subdevice = 0x3000, /* HD-3000 card */
  901. .card = CX88_BOARD_PCHDTV_HD3000,
  902. },{
  903. .subvendor = 0x17DE,
  904. .subdevice = 0xA8A6,
  905. .card = CX88_BOARD_DNTV_LIVE_DVB_T,
  906. },{
  907. .subvendor = 0x0070,
  908. .subdevice = 0x2801,
  909. .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
  910. },{
  911. .subvendor = 0x14F1,
  912. .subdevice = 0x0342,
  913. .card = CX88_BOARD_DIGITALLOGIC_MEC,
  914. },{
  915. .subvendor = 0x10fc,
  916. .subdevice = 0xd035,
  917. .card = CX88_BOARD_IODATA_GVBCTV7E,
  918. },{
  919. .subvendor = 0x1421,
  920. .subdevice = 0x0334,
  921. .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
  922. },{
  923. .subvendor = 0x153b,
  924. .subdevice = 0x1166,
  925. .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
  926. },{
  927. .subvendor = 0x18ac,
  928. .subdevice = 0xd500,
  929. .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
  930. },{
  931. .subvendor = 0x1461,
  932. .subdevice = 0x8011,
  933. .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
  934. },
  935. };
  936. const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
  937. /* ----------------------------------------------------------------------- */
  938. /* some leadtek specific stuff */
  939. static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
  940. {
  941. /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
  942. * any others.
  943. *
  944. * Byte 0 is 1 on the NTSC board.
  945. */
  946. if (eeprom_data[4] != 0x7d ||
  947. eeprom_data[5] != 0x10 ||
  948. eeprom_data[7] != 0x66) {
  949. printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
  950. core->name);
  951. return;
  952. }
  953. core->has_radio = 1;
  954. core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
  955. printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
  956. "tuner=%d, eeprom[0]=0x%02x\n",
  957. core->name, core->tuner_type, eeprom_data[0]);
  958. }
  959. /* ----------------------------------------------------------------------- */
  960. static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
  961. {
  962. struct tveeprom tv;
  963. tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
  964. core->tuner_type = tv.tuner_type;
  965. core->has_radio = tv.has_radio;
  966. }
  967. static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee)
  968. {
  969. int model;
  970. int tuner;
  971. /* Make sure we support the board model */
  972. model = ee[0x1f] << 24 | ee[0x1e] << 16 | ee[0x1d] << 8 | ee[0x1c];
  973. switch(model) {
  974. case 90002:
  975. case 90500:
  976. case 90501:
  977. /* known */
  978. break;
  979. default:
  980. printk("%s: warning: unknown hauppauge model #%d\n",
  981. core->name, model);
  982. break;
  983. }
  984. /* Make sure we support the tuner */
  985. tuner = ee[0x2d];
  986. switch(tuner) {
  987. case 0x4B: /* dtt 7595 */
  988. case 0x4C: /* dtt 7592 */
  989. break;
  990. default:
  991. printk("%s: error: unknown hauppauge tuner 0x%02x\n",
  992. core->name, tuner);
  993. return -ENODEV;
  994. }
  995. printk(KERN_INFO "%s: hauppauge eeprom: model=%d, tuner=%d\n",
  996. core->name, model, tuner);
  997. return 0;
  998. }
  999. /* ----------------------------------------------------------------------- */
  1000. /* some GDI (was: Modular Technology) specific stuff */
  1001. static struct {
  1002. int id;
  1003. int fm;
  1004. char *name;
  1005. } gdi_tuner[] = {
  1006. [ 0x01 ] = { .id = TUNER_ABSENT,
  1007. .name = "NTSC_M" },
  1008. [ 0x02 ] = { .id = TUNER_ABSENT,
  1009. .name = "PAL_B" },
  1010. [ 0x03 ] = { .id = TUNER_ABSENT,
  1011. .name = "PAL_I" },
  1012. [ 0x04 ] = { .id = TUNER_ABSENT,
  1013. .name = "PAL_D" },
  1014. [ 0x05 ] = { .id = TUNER_ABSENT,
  1015. .name = "SECAM" },
  1016. [ 0x10 ] = { .id = TUNER_ABSENT,
  1017. .fm = 1,
  1018. .name = "TEMIC_4049" },
  1019. [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
  1020. .name = "TEMIC_4136" },
  1021. [ 0x12 ] = { .id = TUNER_ABSENT,
  1022. .name = "TEMIC_4146" },
  1023. [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
  1024. .fm = 1,
  1025. .name = "PHILIPS_FQ1216_MK3" },
  1026. [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
  1027. .name = "PHILIPS_FQ1236_MK3" },
  1028. [ 0x22 ] = { .id = TUNER_ABSENT,
  1029. .name = "PHILIPS_FI1236_MK3" },
  1030. [ 0x23 ] = { .id = TUNER_ABSENT,
  1031. .name = "PHILIPS_FI1216_MK3" },
  1032. };
  1033. static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1034. {
  1035. char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
  1036. ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
  1037. printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
  1038. name ? name : "unknown");
  1039. if (NULL == name)
  1040. return;
  1041. core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
  1042. core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
  1043. }
  1044. /* ----------------------------------------------------------------------- */
  1045. void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
  1046. {
  1047. int i;
  1048. if (0 == pci->subsystem_vendor &&
  1049. 0 == pci->subsystem_device) {
  1050. printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
  1051. "%s: be autodetected. Please pass card=<n> insmod option to\n"
  1052. "%s: workaround that. Redirect complaints to the vendor of\n"
  1053. "%s: the TV card. Best regards,\n"
  1054. "%s: -- tux\n",
  1055. core->name,core->name,core->name,core->name,core->name);
  1056. } else {
  1057. printk("%s: Your board isn't known (yet) to the driver. You can\n"
  1058. "%s: try to pick one of the existing card configs via\n"
  1059. "%s: card=<n> insmod option. Updating to the latest\n"
  1060. "%s: version might help as well.\n",
  1061. core->name,core->name,core->name,core->name);
  1062. }
  1063. printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
  1064. core->name);
  1065. for (i = 0; i < cx88_bcount; i++)
  1066. printk("%s: card=%d -> %s\n",
  1067. core->name, i, cx88_boards[i].name);
  1068. }
  1069. void cx88_card_setup(struct cx88_core *core)
  1070. {
  1071. static u8 eeprom[128];
  1072. if (0 == core->i2c_rc) {
  1073. core->i2c_client.addr = 0xa0 >> 1;
  1074. tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
  1075. }
  1076. switch (core->board) {
  1077. case CX88_BOARD_HAUPPAUGE:
  1078. case CX88_BOARD_HAUPPAUGE_ROSLYN:
  1079. if (0 == core->i2c_rc)
  1080. hauppauge_eeprom(core,eeprom+8);
  1081. break;
  1082. case CX88_BOARD_GDI:
  1083. if (0 == core->i2c_rc)
  1084. gdi_eeprom(core,eeprom);
  1085. break;
  1086. case CX88_BOARD_WINFAST2000XP_EXPERT:
  1087. if (0 == core->i2c_rc)
  1088. leadtek_eeprom(core,eeprom);
  1089. break;
  1090. case CX88_BOARD_HAUPPAUGE_DVB_T1:
  1091. if (0 == core->i2c_rc)
  1092. hauppauge_eeprom_dvb(core,eeprom);
  1093. break;
  1094. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
  1095. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
  1096. /* GPIO0:0 is hooked to mt352 reset pin */
  1097. cx_set(MO_GP0_IO, 0x00000101);
  1098. cx_clear(MO_GP0_IO, 0x00000001);
  1099. msleep(1);
  1100. cx_set(MO_GP0_IO, 0x00000101);
  1101. break;
  1102. case CX88_BOARD_KWORLD_DVB_T:
  1103. case CX88_BOARD_DNTV_LIVE_DVB_T:
  1104. cx_set(MO_GP0_IO, 0x00000707);
  1105. cx_set(MO_GP2_IO, 0x00000101);
  1106. cx_clear(MO_GP2_IO, 0x00000001);
  1107. msleep(1);
  1108. cx_clear(MO_GP0_IO, 0x00000007);
  1109. cx_set(MO_GP2_IO, 0x00000101);
  1110. break;
  1111. }
  1112. if (cx88_boards[core->board].radio.type == CX88_RADIO)
  1113. core->has_radio = 1;
  1114. }
  1115. /* ------------------------------------------------------------------ */
  1116. EXPORT_SYMBOL(cx88_boards);
  1117. EXPORT_SYMBOL(cx88_bcount);
  1118. EXPORT_SYMBOL(cx88_subids);
  1119. EXPORT_SYMBOL(cx88_idcount);
  1120. EXPORT_SYMBOL(cx88_card_list);
  1121. EXPORT_SYMBOL(cx88_card_setup);
  1122. /*
  1123. * Local variables:
  1124. * c-basic-offset: 8
  1125. * End:
  1126. * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off
  1127. */