Lines Matching +full:0 +full:xc5000

28 #include "xc5000.h"
76 } while (0)
97 sizes[0] = port->ts_packet_size * port->ts_packet_count; in queue_setup()
99 return 0; in queue_setup()
158 return 0; in cx23885_start_streaming()
180 .demod_address = 0x32 >> 1,
190 .demod_address = 0x10 >> 1,
201 .demod_address = 0x10 >> 1,
212 .demod_address = 0x32 >> 1,
222 .demod_address = 0x32 >> 1,
232 .demod_address = 0x32 >> 1,
241 0x61
246 .serial_mpeg = 0x40,
250 .demod_address = 0x32 >> 1,
260 .demod_address = 0x32 >> 1,
290 .i2c_address = 0x61,
295 .i2c_address = 0x64,
305 .if_lvl = 6, .rfagc_top = 0x37 },
306 .qam_6 = { .if_freq = 4000, .agc_mode = 3, .std = 0,
307 .if_lvl = 6, .rfagc_top = 0x37 },
312 .if_lvl = 1, .rfagc_top = 0x37, },
314 .if_lvl = 1, .rfagc_top = 0x37, },
316 .if_lvl = 1, .rfagc_top = 0x37, },
343 .if_lvl = 1, .rfagc_top = 0x58 },
345 .if_lvl = 1, .rfagc_top = 0x58 },
354 .i2c_addr = 0x0e,
367 /* P_agc_use_sd_mod1=0, P_agc_use_sd_mod2=0, P_agc_freq_pwm_div=0,
368 * P_agc_inv_pwm1=0, P_agc_inv_pwm2=0,
369 * P_agc_inh_dc_rv_est=0, P_agc_time_est=3, P_agc_freeze=0,
370 * P_agc_nb_est=2, P_agc_write=0
372 (0 << 15) | (0 << 14) | (0 << 11) | (0 << 10) | (0 << 9) | (0 << 8) |
373 (3 << 5) | (0 << 4) | (2 << 1) | (0 << 0), /* setup */
378 0, /* alpha_level */
381 0, /* wbd_inv */
383 0, /* wbd_sel */
386 0, /* agc1_max */
387 0, /* agc1_min */
390 0, /* agc1_pt1 */
391 0, /* agc1_pt2 */
392 0, /* agc1_pt3 */
393 0, /* agc1_slope1 */
394 0, /* agc1_slope2 */
395 0, /* agc2_pt1 */
417 0, /* pll_cfg: bypass */
418 0, /* misc: refdiv */
419 0, /* misc: bypclk_div */
422 0, /* misc: modulo */
423 (3 << 14) | (1 << 12) | (524 << 0), /* sad_cfg: refsel, sel, freq_15k */
432 .tuner_is_baseband = 0,
443 .pwm_freq_div = 0,
445 .spur_protect = 0,
451 .demod_address = 0x0f,
458 { R0900_TSGENERAL, 0x00 },
459 { R0900_P1_TSSPEED, 0x40 },
460 { R0900_P2_TSSPEED, 0x40 },
461 { R0900_P1_TSCFGM, 0xc0 },
462 { R0900_P2_TSCFGM, 0xc0 },
463 { R0900_P1_TSCFGH, 0xe0 },
464 { R0900_P2_TSCFGH, 0xe0 },
465 { R0900_P1_TSCFGL, 0x20 },
466 { R0900_P2_TSCFGL, 0x20 },
467 { 0xffff, 0xff }, /* terminate */
471 .demod_address = 0x68,
474 .clkmode = 3,/* 0-CLKI, 2-XTALI, else AUTO */
477 .tun1_maddress = 0,/* 0x60 */
478 .tun2_maddress = 3,/* 0x63 */
484 .i2c_address = 0x60,
491 .i2c_address = 0x63,
498 .demod_address = 0x55,
502 .demod_address = 0x55,
506 .demod_address = 0x68,
510 .tuner_address = 0x60,
516 .demod_address = 0x05,
521 .demod_address = 0x19,
522 .serial_ts = 0,
528 .ext_adc = 0,
529 .adc_signed = 0,
530 .if_neg_edge = 0,
534 .i2c_address = 0x61,
539 .demod_address = 0x10,
543 .i2c_address = 0x61,
552 .address = 0x6A,
565 .tuner_address = 0x60,
570 .i2c_addr = 0x59,
574 .spectral_inversion = 0, /* Disabled */
582 .i2c_addr = 0x0e,
586 .spectral_inversion = 0, /* Disabled */
600 cx_write(MC417_RWD, 0x00001e00); in p8000_set_voltage()
602 cx_write(MC417_RWD, 0x00001a00); in p8000_set_voltage()
604 cx_write(MC417_RWD, 0x00001800); in p8000_set_voltage()
605 return 0; in p8000_set_voltage()
634 return 0; in dvbsky_t9580_set_voltage()
667 #define SP2_DATA 0x000000ff in cx23885_sp2_ci_ctrl()
668 #define SP2_WR 0x00008000 in cx23885_sp2_ci_ctrl()
669 #define SP2_RD 0x00004000 in cx23885_sp2_ci_ctrl()
670 #define SP2_ACK 0x00001000 in cx23885_sp2_ci_ctrl()
671 #define SP2_ADHI 0x00000800 in cx23885_sp2_ci_ctrl()
672 #define SP2_ADLO 0x00000400 in cx23885_sp2_ci_ctrl()
673 #define SP2_CS1 0x00000200 in cx23885_sp2_ci_ctrl()
674 #define SP2_CS0 0x00000100 in cx23885_sp2_ci_ctrl()
675 #define SP2_EN_ALL 0x00001000 in cx23885_sp2_ci_ctrl()
681 int tmp = 0; in cx23885_sp2_ci_ctrl()
689 SP2_ADLO | (0xff & addr)); in cx23885_sp2_ci_ctrl()
692 SP2_ADHI | (0xff & (addr >> 8))); in cx23885_sp2_ci_ctrl()
702 /* chip select 0 */ in cx23885_sp2_ci_ctrl()
712 if ((tmp & SP2_ACK) == 0) in cx23885_sp2_ci_ctrl()
718 *mem = tmp & 0xff; in cx23885_sp2_ci_ctrl()
723 if (*mem < 0) { in cx23885_sp2_ci_ctrl()
729 return 0; in cx23885_sp2_ci_ctrl()
765 return 0; in cx23885_dvb_set_frontend()
777 .demod_address = 0x19,
778 .serial_ts = 0,
784 .ext_adc = 0,
791 .i2c_address = 0x61,
797 .demod_address = 0x44,
798 .serial_ts = 0,
800 .ts_clk_gated = 0,
802 .if_freq = 0, /* zero IF */
804 .agc_min = 0x2E,
805 .agc_max = 0xFF,
806 .agc_hold_loop = 0,
810 .i2c_address = 0x60,
816 .demod_address = 0x44,
819 .ts_clk_gated = 0,
821 .if_freq = 0, /* zero IF */
823 .agc_min = 0x2E,
824 .agc_max = 0xFF,
825 .agc_hold_loop = 0,
829 .i2c_address = 0x60,
834 .demod_address = 0x1c,
837 .if_iq_mode = 0,
839 .clk_pol = 0,
841 .demod_address = 0x1d,
844 .if_iq_mode = 0,
846 .clk_pol = 0,
852 .i2c_address = 0x61,
855 .i2c_address = 0x64,
862 .adr = 0x29,
865 .adr = 0x2a,
872 .tuner_address = 0x60,
874 .tuner_address = 0x67,
883 .tuner_i2c_addr = 0x54,
887 .i2c_addr = 0x68,
890 .clock_out = 0,
895 .lnb_hv_pol = 0,
896 .agc = 0x99,
900 .i2c_addr = 0x68,
903 .clock_out = 0,
908 .lnb_hv_pol = 0,
909 .agc = 0x99,
913 .i2c_addr = 0x69,
919 .agc = 0x99,
923 .i2c_addr = 0x59,
927 .spectral_inversion = 0, /* Disabled */
938 uint32_t mem = 0; in netup_altera_fpga_rw()
964 if ((mem & ALT_RDY) == 0) in netup_altera_fpga_rw()
975 return 0; in netup_altera_fpga_rw()
982 return dib7000p_ops->set_gpio(fe, 8, 0, !onoff); in dib7070_tuner_reset()
987 return 0; in dib7070_tuner_sleep()
1004 * P_agc_use_sd_mod1=0, P_agc_use_sd_mod2=0, P_agc_freq_pwm_div=5,
1005 * P_agc_inv_pwm1=0, P_agc_inv_pwm2=0, P_agc_inh_dc_rv_est=0,
1006 * P_agc_time_est=3, P_agc_freeze=0, P_agc_nb_est=5, P_agc_write=0
1008 .setup = (0 << 15) | (0 << 14) | (5 << 11) | (0 << 10) | (0 << 9) |
1009 (0 << 8) | (3 << 5) | (0 << 4) | (5 << 1) | (0 << 0),
1012 .alpha_level = 0,
1014 .wbd_inv = 0,
1019 .agc1_min = 0,
1021 .agc2_min = 0,
1022 .agc1_pt1 = 0,
1035 .perform_agc_softsplit = 0,
1045 .pll_bypass = 0,
1046 .enable_refdiv = 0,
1047 .bypclk_div = 0,
1052 .sad_cfg = (3 << 14) | (1 << 12) | (524 << 0),
1053 .ifreq = (0 << 25) | 0,
1070 .gpio_dir = 0xfcef, /* DIB7000P_GPIO_DEFAULT_DIRECTIONS, */
1071 .gpio_val = 0x0110, /* DIB7000P_GPIO_DEFAULT_VALUES, */
1091 netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo); in dvb_register_ci_mac()
1098 return 0; in dvb_register_ci_mac()
1109 return 0; in dvb_register_ci_mac()
1115 return 0; in dvb_register_ci_mac()
1118 dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; in dvb_register_ci_mac()
1119 tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom)); in dvb_register_ci_mac()
1120 pr_info("TeVii S470 MAC= %pM\n", eeprom + 0xa0); in dvb_register_ci_mac()
1121 memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6); in dvb_register_ci_mac()
1122 return 0; in dvb_register_ci_mac()
1131 return 0; in dvb_register_ci_mac()
1134 dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; in dvb_register_ci_mac()
1135 tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, in dvb_register_ci_mac()
1139 eeprom + 0xc0 + (port->nr-1) * 8); in dvb_register_ci_mac()
1140 memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xc0 + in dvb_register_ci_mac()
1142 return 0; in dvb_register_ci_mac()
1150 struct cx23885_i2c *i2c_bus = &dev->i2c_bus[0]; in dvb_register_ci_mac()
1153 memset(&sp2_config, 0, sizeof(sp2_config)); in dvb_register_ci_mac()
1157 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register_ci_mac()
1159 info.addr = 0x40; in dvb_register_ci_mac()
1172 return 0; in dvb_register_ci_mac()
1175 dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; in dvb_register_ci_mac()
1176 tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, in dvb_register_ci_mac()
1179 cx23885_boards[dev->board].name, eeprom + 0xc0); in dvb_register_ci_mac()
1180 memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xc0, 6); in dvb_register_ci_mac()
1181 return 0; in dvb_register_ci_mac()
1184 return 0; in dvb_register_ci_mac()
1206 int mfe_shared = 0; /* bus not shared by default */ in dvb_register()
1218 port->frontends.gate = 0; in dvb_register()
1226 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1234 &hauppauge_generic_tunerconfig, 0); in dvb_register()
1238 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1245 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1252 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1260 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1264 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1269 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1280 &dev->i2c_bus[1].i2c_adap, 0x42, in dvb_register()
1283 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1286 case 0: in dvb_register()
1296 &hauppauge_generic_tunerconfig, 0); in dvb_register()
1300 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1308 &hauppauge_generic_tunerconfig, 0); in dvb_register()
1311 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1314 0x0e, in dvb_register()
1319 &i2c_bus->i2c_adap, 0x61, in dvb_register()
1326 &dev->i2c_bus[0].i2c_adap); in dvb_register()
1337 &dev->i2c_bus[0].i2c_adap); in dvb_register()
1342 .i2c_addr = 0x61, in dvb_register()
1358 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1365 &dev->i2c_bus[1].i2c_adap, 0x42, in dvb_register()
1368 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1372 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1378 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1383 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1389 0x12, &hauppauge_hvr1400_dib7000_config); in dvb_register()
1394 .i2c_addr = 0x64, in dvb_register()
1436 .i2c_addr = 0x61, in dvb_register()
1453 /* cxusb_ctrl_msg(adap->dev, CMD_DIGITAL, NULL, 0, NULL, 0); */ in dvb_register()
1454 /* cxusb_bluebird_gpio_pulse(adap->dev, 0x02, 1); */ in dvb_register()
1459 if (dib7000p_ops.i2c_enumeration(&i2c_bus->i2c_adap, 1, 0x12, &dib7070p_dib7000p_config) < 0) { in dvb_register()
1463 fe0->dvb.frontend = dib7000p_ops.init(&i2c_bus->i2c_adap, 0x80, &dib7070p_dib7000p_config); in dvb_register()
1479 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1488 .i2c_addr = 0x61, in dvb_register()
1503 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1511 .i2c_address = 0x61, in dvb_register()
1512 .default_pm = 0, in dvb_register()
1577 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1583 &i2c_bus->i2c_adap, 0); in dvb_register()
1593 LNBH24_TEN, 0x09)) in dvb_register()
1613 LNBH24_TEN, 0x0a)) in dvb_register()
1622 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1634 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1648 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1661 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1668 0x60, &dev->i2c_bus[0].i2c_adap, in dvb_register()
1672 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register()
1677 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1684 0x60, &dev->i2c_bus[0].i2c_adap, in dvb_register()
1691 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1716 return 0; in dvb_register()
1718 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1720 port->frontends.gate = 0;/* not clear for me yet */ in dvb_register()
1732 /* load xc5000 firmware */ in dvb_register()
1754 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1761 &terratec_drxk_config[0], in dvb_register()
1767 &terratec_mt2063_config[0], in dvb_register()
1798 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1818 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1824 memset(&info, 0, sizeof(info)); in dvb_register()
1826 info.addr = 0x05; in dvb_register()
1841 memset(&info, 0, sizeof(info)); in dvb_register()
1843 info.addr = 0x0b; in dvb_register()
1858 memset(&si2165_pdata, 0, sizeof(si2165_pdata)); in dvb_register()
1862 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
1864 info.addr = 0x64; in dvb_register()
1881 0x60, &i2c_bus2->i2c_adap, in dvb_register()
1892 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1895 memset(&info, 0, sizeof(info)); in dvb_register()
1897 info.addr = 0x05; in dvb_register()
1912 memset(&info, 0, sizeof(info)); in dvb_register()
1914 info.addr = 0x0b; in dvb_register()
1929 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
1942 memset(&ts2020_config, 0, sizeof(ts2020_config)); in dvb_register()
1945 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
1947 info.addr = 0x60; in dvb_register()
1977 memset(&si2168_config, 0, sizeof(si2168_config)); in dvb_register()
1981 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
1983 info.addr = 0x64; in dvb_register()
1996 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
1999 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2001 info.addr = 0x60; in dvb_register()
2018 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2022 memset(&si2168_config, 0, sizeof(si2168_config)); in dvb_register()
2026 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2028 info.addr = 0x64; in dvb_register()
2041 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2044 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2046 info.addr = 0x60; in dvb_register()
2059 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2070 memset(&ts2020_config, 0, sizeof(ts2020_config)); in dvb_register()
2073 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2075 info.addr = 0x60; in dvb_register()
2094 memset(&m88ds3103_pdata, 0, sizeof(m88ds3103_pdata)); in dvb_register()
2097 m88ds3103_pdata.agc = 0x99; in dvb_register()
2112 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2115 m88ds3103_pdata.ts_clk_pol = 0; in dvb_register()
2119 return 0; in dvb_register()
2122 memset(&info, 0, sizeof(info)); in dvb_register()
2124 info.addr = 0x68; in dvb_register()
2139 memset(&ts2020_config, 0, sizeof(ts2020_config)); in dvb_register()
2142 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2144 info.addr = 0x60; in dvb_register()
2170 memset(&si2168_config, 0, sizeof(si2168_config)); in dvb_register()
2179 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2187 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2189 info.addr = 0x64; in dvb_register()
2202 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2205 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2207 info.addr = 0x60; in dvb_register()
2221 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2237 memset(&info, 0, sizeof(info)); in dvb_register()
2239 info.addr = 0x0b; in dvb_register()
2252 memset(&m88rs6000t_config, 0, sizeof(m88rs6000t_config)); in dvb_register()
2254 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2256 info.addr = 0x21; in dvb_register()
2275 memset(&si2168_config, 0, sizeof(si2168_config)); in dvb_register()
2279 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2281 info.addr = 0x64; in dvb_register()
2294 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2297 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2299 info.addr = 0x60; in dvb_register()
2334 memset(&si2168_config, 0, sizeof(si2168_config)); in dvb_register()
2338 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2340 info.addr = 0x64; in dvb_register()
2343 client_demod = i2c_new_client_device(&dev->i2c_bus[0].i2c_adap, &info); in dvb_register()
2353 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2356 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2358 info.addr = 0x60; in dvb_register()
2391 memset(&si2168_config, 0, sizeof(si2168_config)); in dvb_register()
2395 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2397 info.addr = 0x66; in dvb_register()
2400 client_demod = i2c_new_client_device(&dev->i2c_bus[0].i2c_adap, &info); in dvb_register()
2410 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2413 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2415 info.addr = 0x62; in dvb_register()
2444 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2451 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2455 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2457 info.addr = 0x60; in dvb_register()
2484 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2491 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2495 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2497 info.addr = 0x62; in dvb_register()
2517 i2c_bus = &dev->i2c_bus[0]; in dvb_register()
2525 memset(&si2157_config, 0, sizeof(si2157_config)); in dvb_register()
2529 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2531 info.addr = 0x60; in dvb_register()
2568 #if 0 in dvb_register()
2592 return 0; in dvb_register()
2680 if (err < 0) in cx23885_dvb_register()
2684 if (err != 0) in cx23885_dvb_register()
2740 return 0; in cx23885_dvb_unregister()