Lines Matching defs:card

44  *               trying to find the card make and model of card.
113 /* EEProm (128 * 8) on an STB card */
118 /* EEProm (256 * 8) on a Hauppauge card */
133 * the data for each type of card
140 { CARD_UNKNOWN, /* the card id */
152 { CARD_MIRO, /* the card id */
164 { CARD_HAUPPAUGE, /* the card id */
176 { CARD_STB, /* the card id */
188 { CARD_INTEL, /* the card id */
200 { CARD_IMS_TURBO, /* the card id */
212 { CARD_AVER_MEDIA, /* the card id */
224 { CARD_OSPREY, /* the card id */
236 { CARD_NEC_PK, /* the card id */
248 { CARD_IO_BCTV2, /* the card id */
260 { CARD_FLYVIDEO, /* the card id */
272 { CARD_ZOLTRIX, /* the card id */
284 { CARD_KISS, /* the card id */
296 { CARD_VIDEO_HIGHWAY_XTREME, /* the card id */
308 { CARD_ASKEY_DYNALINK_MAGIC_TVIEW, /* the card id */
320 { CARD_LEADTEK, /* the card id */
333 { CARD_TERRATVPLUS, /* the card id */
345 { CARD_IO_BCTV3, /* the card id */
358 { CARD_AOPEN_VA1000, /* the card id */
370 { CARD_PINNACLE_PCTV_RAVE, /* the card id */
382 { CARD_PIXELVIEW_PLAYTV_PAK, /* the card id */
394 { CARD_TERRATVALUE, /* the card id */
407 { CARD_PIXELVIEW_PLAYTV_PRO_REV_4C, /* the card id */
421 /* IMS TURBO TV : card 5 */
429 * Write to the configuration EEPROM on the card.
430 * This is dangerous and will mess up your card. Therefore it is not
440 * Read the contents of the configuration EEPROM on the card.
441 * (This is not fitted to all makes of card. All Hauppauge cards have them
453 addr = (int)(bktr->card.eepromAddr & 0xff);
457 max = (int)(bktr->card.eepromSize * EEPROMBLOCKSIZE);
479 * get a signature of the card
507 * a video camera. (eg VideoLogic Captivator PCI, Intel SmartCapture card).
533 * Determine the actual address used on the TV card by probing read addresses.
559 * determine the card brand/model
571 * However some makes of card (eg Hauppauge) come with a configuration eeprom
572 * which tells us the make of the card. Most eeproms also tell us the
576 * A) If the card uses a Bt878/879:
580 * B) If it card uses a Bt848, 848A, 849A or an unknown Bt878/879:
587 * 2b) If there is an EEPROM at I2C address 0xa8 it will be an STB card.
590 * C) If we do not know the card type from (A) or (B), guess at the tuner
632 int card, i,j, card_found;
647 /* Reset the MSP34xx audio chip. This resolves bootup card
650 * at this point the probe function does not know the card type. */
664 /* Check for a user specified override on the card selection */
666 bktr->card = cards[ (card = BKTR_OVERRIDE_CARD) ];
670 bktr->card = cards[ (card = bktr->bt848_card) ];
675 /* No override, so try and determine the make of the card */
678 /* This identifies the manufacturer of the card and the model */
694 bktr->card = cards[ (card = CARD_UNKNOWN) ];
695 bktr->card.eepromAddr = eeprom_i2c_address;
696 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
712 bktr->card = cards[ (card = CARD_AVER_MEDIA) ];
713 bktr->card.eepromAddr = eeprom_i2c_address;
714 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
719 bktr->card = cards[ (card = CARD_HAUPPAUGE) ];
720 bktr->card.eepromAddr = eeprom_i2c_address;
721 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
727 bktr->card = cards[ (card = CARD_FLYVIDEO) ];
728 bktr->card.eepromAddr = eeprom_i2c_address;
729 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
734 bktr->card = cards[ (card = CARD_STB) ];
735 bktr->card.eepromAddr = eeprom_i2c_address;
736 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
741 bktr->card = cards[ (card = CARD_ASKEY_DYNALINK_MAGIC_TVIEW) ];
742 bktr->card.eepromAddr = eeprom_i2c_address;
743 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
750 bktr->card = cards[ (card = CARD_LEADTEK) ];
751 bktr->card.eepromAddr = eeprom_i2c_address;
752 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
758 bktr->card = cards[ (card = CARD_MIRO) ];
759 bktr->card.eepromAddr = eeprom_i2c_address;
760 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
766 bktr->card = cards[ (card = CARD_IO_BCTV3) ];
767 bktr->card.eepromAddr = eeprom_i2c_address;
768 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
779 bktr->card = cards[ (card = CARD_TERRATVALUE) ];
780 bktr->card.eepromAddr = eeprom_i2c_address;
781 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
788 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n",
793 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n",
796 } /* end of bt878/bt879 card detection code */
798 /* If we get to this point, we must have a Bt848/848A/849A card */
800 /* Try and determine the make of card by clever i2c probing */
804 bktr->card = cards[ (card = CARD_INTEL) ];
805 bktr->card.eepromAddr = 0;
806 bktr->card.eepromSize = 0;
822 bktr->card = cards[ (card = CARD_UNKNOWN) ];
823 bktr->card.eepromAddr = PFC8582_WADDR;
824 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
829 bktr->card = cards[ (card = CARD_HAUPPAUGE) ];
830 bktr->card.eepromAddr = PFC8582_WADDR;
831 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
838 bktr->card = cards[ (card = CARD_OSPREY) ];
839 bktr->card.eepromAddr = PFC8582_WADDR;
840 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
843 printf("%s: Warning: Unknown card type. EEPROM data not recognised\n",
849 /* look for an STB card */
851 bktr->card = cards[ (card = CARD_STB) ];
852 bktr->card.eepromAddr = X24C01_WADDR;
853 bktr->card.eepromSize = (u_char)(128 / EEPROMBLOCKSIZE);
862 printf("%s: card signature: ", bktr_name(bktr));
883 bktr->card = cards[ card = bt848_card_signature[i].card];
886 bktr->card.eepromAddr = eeprom_i2c_address;
887 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
889 bktr->card.eepromAddr = 0;
890 bktr->card.eepromSize = 0;
898 /* We do not know the card type. Default to Miro */
899 bktr->card = cards[ (card = CARD_MIRO) ];
906 bktr->card.eepromAddr = eeprom_i2c_address;
907 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
909 bktr->card.eepromAddr = 0;
910 bktr->card.eepromSize = 0;
917 if (card == CARD_MIRO && mt2032_init(bktr) == 0 &&
919 bktr->card = cards[ (card = CARD_PINNACLE_PCTV_RAVE) ];
949 switch (card) {
1022 if (bktr->card.eepromAddr != 0) {
1137 if (bktr->card.eepromAddr != 0) {
1217 } /* end switch(card) */
1245 bktr->card.dbx = BKTR_OVERRIDE_DBX;
1255 bktr->card.dbx = 1;
1258 /* If this is a Hauppauge Bt878 card, we need to enable the
1260 * If this is a Hauppauge Bt848 card, reset the MSP device.
1271 if (card == CARD_HAUPPAUGE) {
1283 bktr->card.msp3400c = BKTR_OVERRIDE_MSP;
1293 bktr->card.msp3400c = 1;
1298 if (bktr->card.msp3400c) {
1309 bktr->card.dpl3518a = 1;
1312 if (bktr->card.dpl3518a) {
1355 if (card == CARD_OSPREY)
1359 if (card == CARD_VIDEO_HIGHWAY_XTREME)
1376 bktr->card.tuner_pllAddr = tuner_i2c_address;
1379 printf( "%s: %s", bktr_name(bktr), bktr->card.name );
1380 if ( bktr->card.tuner )
1381 printf( ", %s tuner", bktr->card.tuner->name );
1382 if ( bktr->card.dbx )
1384 if ( bktr->card.msp3400c )
1386 if ( bktr->card.dpl3518a )