Deleted Added
full compact
bktr_card.c (51694) bktr_card.c (51725)
1/* $FreeBSD: head/sys/dev/bktr/bktr_card.c 51694 1999-09-26 22:06:20Z roger $ */
1/* $FreeBSD: head/sys/dev/bktr/bktr_card.c 51725 1999-09-27 08:04:55Z roger $ */
2
3/*
4 * This is part of the Driver for Video Capture Cards (Frame grabbers)
5 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
6 * chipset.
7 * Copyright Roger Hardiman and Amancio Hasty.
8 *
9 * bktr_card : This deals with identifying TV cards.

--- 237 unchanged lines hidden (view full) ---

247 0, /* EEProm type */
248 0, /* EEProm size */
249 { 0x0c, 0x00, 0x0b, 0x0b, 1 }, /* audio MUX values */
250 0x0f }, /* GPIO mask */
251
252 { CARD_VIDEO_HIGHWAY_XTREME, /* the card id */
253 "Video Highway Xtreme", /* the 'name' */
254 NULL, /* the tuner */
2
3/*
4 * This is part of the Driver for Video Capture Cards (Frame grabbers)
5 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
6 * chipset.
7 * Copyright Roger Hardiman and Amancio Hasty.
8 *
9 * bktr_card : This deals with identifying TV cards.

--- 237 unchanged lines hidden (view full) ---

247 0, /* EEProm type */
248 0, /* EEProm size */
249 { 0x0c, 0x00, 0x0b, 0x0b, 1 }, /* audio MUX values */
250 0x0f }, /* GPIO mask */
251
252 { CARD_VIDEO_HIGHWAY_XTREME, /* the card id */
253 "Video Highway Xtreme", /* the 'name' */
254 NULL, /* the tuner */
255 0, /* the tuner i2c address */
256 0, /* dbx is optional */
257 0, /* msp34xx is optional */
255 0,
256 0,
257 0,
258 0, /* EEProm type */
259 0, /* EEProm size */
260 { 0x00, 0x02, 0x01, 0x04, 1 }, /* audio MUX values */
261 0x0f }, /* GPIO mask */
262
258 0, /* EEProm type */
259 0, /* EEProm size */
260 { 0x00, 0x02, 0x01, 0x04, 1 }, /* audio MUX values */
261 0x0f }, /* GPIO mask */
262
263 { CARD_ASKEY_DYNALINK_MAGIC_TVIEW, /* the card id */
264 "Askey/Dynalink Magic TView", /* the 'name' */
265 NULL, /* the tuner */
266 0,
267 0,
268 0,
269 0, /* EEProm type */
270 0, /* EEProm size */
271 { 0x00, 0x00, 0x00, 0x00, 0 }, /* audio MUX values */
272 0x00 }, /* GPIO mask */
273
274 { CARD_LEADTEK, /* the card id */
275 "Leadtek Winfast TV 2000", /* the 'name' */
276 NULL, /* the tuner */
277 0,
278 0,
279 0,
280 0, /* EEProm type */
281 0, /* EEProm size */
282 { 0x00, 0x00, 0x00, 0x00, 0 }, /* audio MUX values */
283 0x00 }, /* GPIO mask */
284
263};
264
265struct bt848_card_sig bt848_card_signature[1]= {
266 /* IMS TURBO TV : card 5 */
267 { 5,9, {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00}}
268
269
270};

--- 170 unchanged lines hidden (view full) ---

441 */
442
443
444/*
445 * These are the sub-system vendor ID codes stored in the
446 * configuration EEPROM used on Bt878/879 cards. They should match the
447 * number assigned to the company by the PCI Special Interest Group
448 */
285};
286
287struct bt848_card_sig bt848_card_signature[1]= {
288 /* IMS TURBO TV : card 5 */
289 { 5,9, {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00}}
290
291
292};

--- 170 unchanged lines hidden (view full) ---

463 */
464
465
466/*
467 * These are the sub-system vendor ID codes stored in the
468 * configuration EEPROM used on Bt878/879 cards. They should match the
469 * number assigned to the company by the PCI Special Interest Group
470 */
449#define VENDOR_AVER_MEDIA 0x1461
450#define VENDOR_HAUPPAUGE 0x0070
451#define VENDOR_FLYVIDEO 0x1851
452#define VENDOR_STB 0x10B4
471#define VENDOR_AVER_MEDIA 0x1461
472#define VENDOR_HAUPPAUGE 0x0070
473#define VENDOR_FLYVIDEO 0x1851
474#define VENDOR_STB 0x10B4
475#define VENDOR_ASKEY_COMP 0x144F
476#define VENDOR_LEADTEK 0x6606
453
454
455void
456probeCard( bktr_ptr_t bktr, int verbose, int unit )
457{
458 int card, i,j, card_found;
459 int status;
460 bt848_ptr_t bt848;

--- 99 unchanged lines hidden (view full) ---

560
561 if (subsystem_vendor_id == VENDOR_STB) {
562 bktr->card = cards[ (card = CARD_STB) ];
563 bktr->card.eepromAddr = eeprom_i2c_address;
564 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
565 goto checkTuner;
566 }
567
477
478
479void
480probeCard( bktr_ptr_t bktr, int verbose, int unit )
481{
482 int card, i,j, card_found;
483 int status;
484 bt848_ptr_t bt848;

--- 99 unchanged lines hidden (view full) ---

584
585 if (subsystem_vendor_id == VENDOR_STB) {
586 bktr->card = cards[ (card = CARD_STB) ];
587 bktr->card.eepromAddr = eeprom_i2c_address;
588 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
589 goto checkTuner;
590 }
591
592 if (subsystem_vendor_id == VENDOR_ASKEY_COMP) {
593 bktr->card = cards[ (card = CARD_ASKEY_DYNALINK_MAGIC_TVIEW) ];
594 bktr->card.eepromAddr = eeprom_i2c_address;
595 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
596 goto checkTuner;
597 }
598
599 if (subsystem_vendor_id == VENDOR_LEADTEK) {
600 bktr->card = cards[ (card = CARD_LEADTEK) ];
601 bktr->card.eepromAddr = eeprom_i2c_address;
602 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
603 goto checkTuner;
604 }
605
568 /* Vendor is unknown. We will use the standard probe code */
569 /* which may not give best results */
570 printf("Warning - card vendor 0x%04x (model 0x%04x) unknown.\n",subsystem_vendor_id,subsystem_id);
571 }
572 else
573 {
574 printf("Card has no configuration EEPROM. Cannot determine card make.\n");
575 }

--- 447 unchanged lines hidden (view full) ---

1023
1024#if defined( BKTR_USE_PLL )
1025 bktr->xtal_pll_mode = BT848_USE_PLL;
1026 goto checkPLLEnd;
1027#endif
1028 /* Default is to use XTALS and not PLL mode */
1029 bktr->xtal_pll_mode = BT848_USE_XTALS;
1030
606 /* Vendor is unknown. We will use the standard probe code */
607 /* which may not give best results */
608 printf("Warning - card vendor 0x%04x (model 0x%04x) unknown.\n",subsystem_vendor_id,subsystem_id);
609 }
610 else
611 {
612 printf("Card has no configuration EEPROM. Cannot determine card make.\n");
613 }

--- 447 unchanged lines hidden (view full) ---

1061
1062#if defined( BKTR_USE_PLL )
1063 bktr->xtal_pll_mode = BT848_USE_PLL;
1064 goto checkPLLEnd;
1065#endif
1066 /* Default is to use XTALS and not PLL mode */
1067 bktr->xtal_pll_mode = BT848_USE_XTALS;
1068
1069 /* Enable PLL mode for OSPREY users */
1070 if (card == CARD_OSPREY)
1071 bktr->xtal_pll_mode = BT848_USE_PLL;
1072
1073 /* Enable PLL mode for Video Highway Xtreme users */
1074 if (card == CARD_VIDEO_HIGHWAY_XTREME)
1075 bktr->xtal_pll_mode = BT848_USE_PLL;
1076
1077
1078 /* Most (perhaps all) Bt878 cards need to be switched to PLL mode */
1079 /* as they only fit the NTSC crystal to their cards */
1080
1031 /* Enable PLL mode for PAL/SECAM users on Hauppauge 878 cards */
1032 if ((card == CARD_HAUPPAUGE) &&
1033 (bktr->id==BROOKTREE_878 || bktr->id==BROOKTREE_879) )
1034 bktr->xtal_pll_mode = BT848_USE_PLL;
1035
1081 /* Enable PLL mode for PAL/SECAM users on Hauppauge 878 cards */
1082 if ((card == CARD_HAUPPAUGE) &&
1083 (bktr->id==BROOKTREE_878 || bktr->id==BROOKTREE_879) )
1084 bktr->xtal_pll_mode = BT848_USE_PLL;
1085
1086 /* Enable PLL mode for PAL/SECAM users on FlyVideo 878 cards */
1087 if ((card == CARD_FLYVIDEO) &&
1088 (bktr->id==BROOKTREE_878 || bktr->id==BROOKTREE_879) )
1089 bktr->xtal_pll_mode = BT848_USE_PLL;
1036
1090
1037 /* Enable PLL mode for OSPREY users */
1038 if (card == CARD_OSPREY)
1091 /* Enable PLL mode for Askey Dynalink users */
1092 if ((card == CARD_ASKEY_DYNALINK_MAGIC_TVIEW) &&
1093 (bktr->id==BROOKTREE_878 || bktr->id==BROOKTREE_879) )
1039 bktr->xtal_pll_mode = BT848_USE_PLL;
1040
1094 bktr->xtal_pll_mode = BT848_USE_PLL;
1095
1041
1042 /* Enable PLL mode for PAL/SECAM users on FlyVideo 878 cards */
1043 if ((card == CARD_FLYVIDEO) &&
1096 /* Enable PLL mode for Leadtek users */
1097 if ((card == CARD_LEADTEK) &&
1044 (bktr->id==BROOKTREE_878 || bktr->id==BROOKTREE_879) )
1045 bktr->xtal_pll_mode = BT848_USE_PLL;
1046
1047
1048#if defined( BKTR_USE_PLL )
1049checkPLLEnd:
1050#endif
1051

--- 18 unchanged lines hidden ---
1098 (bktr->id==BROOKTREE_878 || bktr->id==BROOKTREE_879) )
1099 bktr->xtal_pll_mode = BT848_USE_PLL;
1100
1101
1102#if defined( BKTR_USE_PLL )
1103checkPLLEnd:
1104#endif
1105

--- 18 unchanged lines hidden ---