bktr_card.c (110149) | bktr_card.c (110237) |
---|---|
1/* $FreeBSD: head/sys/dev/bktr/bktr_card.c 110149 2003-01-31 15:23:40Z orion $ */ | 1/* $FreeBSD: head/sys/dev/bktr/bktr_card.c 110237 2003-02-02 17:46:00Z orion $ */ |
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. --- 230 unchanged lines hidden (view full) --- 240 0, /* dbx is optional */ 241 0, 242 0, 243 0, /* EEProm type */ 244 0, /* EEProm size */ 245 { 0x01, 0x02, 0x01, 0x00, 1 }, /* audio MUX values */ 246 0x0f }, /* GPIO mask */ 247 | 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. --- 230 unchanged lines hidden (view full) --- 240 0, /* dbx is optional */ 241 0, 242 0, 243 0, /* EEProm type */ 244 0, /* EEProm size */ 245 { 0x01, 0x02, 0x01, 0x00, 1 }, /* audio MUX values */ 246 0x0f }, /* GPIO mask */ 247 |
248 { CARD_IO_GV, /* the card id */ | 248 { CARD_IO_BCTV2, /* the card id */ |
249 "I/O DATA GV-BCTV2/PCI", /* the 'name' */ 250 NULL, /* the tuner */ 251 0, /* the tuner i2c address */ 252 0, /* dbx is optional */ 253 0, 254 0, 255 0, /* EEProm type */ 256 0, /* EEProm size */ --- 80 unchanged lines hidden (view full) --- 337 0, 338 0, 339 0, 340 0, /* EEProm type */ 341 0, /* EEProm size */ 342 { 0x20000, 0x00000, 0x30000, 0x40000, 1 }, /* audio MUX values*/ 343 0x70000 }, /* GPIO mask */ 344 | 249 "I/O DATA GV-BCTV2/PCI", /* the 'name' */ 250 NULL, /* the tuner */ 251 0, /* the tuner i2c address */ 252 0, /* dbx is optional */ 253 0, 254 0, 255 0, /* EEProm type */ 256 0, /* EEProm size */ --- 80 unchanged lines hidden (view full) --- 337 0, 338 0, 339 0, 340 0, /* EEProm type */ 341 0, /* EEProm size */ 342 { 0x20000, 0x00000, 0x30000, 0x40000, 1 }, /* audio MUX values*/ 343 0x70000 }, /* GPIO mask */ 344 |
345 { CARD_IO_BCTV3, /* the card id */ 346 "I/O DATA GV-BCTV3/PCI", /* the 'name' */ 347 NULL, /* the tuner */ 348 0, /* the tuner i2c address */ 349 0, /* dbx is optional */ 350 0, 351 0, 352 0, /* EEProm type */ 353 0, /* EEProm size */ 354 /* Tuner, Extern, Intern, Mute, Enabled */ 355 { 0x10000, 0, 0x10000, 0, 1 }, /* audio MUX values */ 356 0x10f00 }, /* GPIO mask */ 357 |
|
345}; 346 347struct bt848_card_sig bt848_card_signature[1]= { 348 /* IMS TURBO TV : card 5 */ | 358}; 359 360struct bt848_card_sig bt848_card_signature[1]= { 361 /* IMS TURBO TV : card 5 */ |
349 { 5,9, {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00}} | 362 { 5,9, {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00, 00}} |
350 351 352}; 353 354 355/* 356 * Write to the configuration EEPROM on the card. 357 * This is dangerous and will mess up your card. Therefore it is not --- 177 unchanged lines hidden (view full) --- 535#define PCI_VENDOR_ASKEY 0x144F 536#endif 537/* Following not confirmed with http://members.hyperlink.net.au/~chart, 538 so not added to NetBSD's pcidevs */ 539#define PCI_VENDOR_LEADTEK_ALT 0x6606 540#define PCI_VENDOR_FLYVIDEO 0x1851 541#define PCI_VENDOR_FLYVIDEO_2 0x1852 542#define PCI_VENDOR_PINNACLE_ALT 0xBD11 | 363 364 365}; 366 367 368/* 369 * Write to the configuration EEPROM on the card. 370 * This is dangerous and will mess up your card. Therefore it is not --- 177 unchanged lines hidden (view full) --- 548#define PCI_VENDOR_ASKEY 0x144F 549#endif 550/* Following not confirmed with http://members.hyperlink.net.au/~chart, 551 so not added to NetBSD's pcidevs */ 552#define PCI_VENDOR_LEADTEK_ALT 0x6606 553#define PCI_VENDOR_FLYVIDEO 0x1851 554#define PCI_VENDOR_FLYVIDEO_2 0x1852 555#define PCI_VENDOR_PINNACLE_ALT 0xBD11 |
556#define PCI_VENDOR_IODATA 0x10fc |
|
543 | 557 |
558#define MODEL_IODATA_GV_BCTV3_PCI 0x4020 |
|
544 545void 546probeCard( bktr_ptr_t bktr, int verbose, int unit ) 547{ 548 int card, i,j, card_found; 549 int status; 550 u_char probe_signature[128], *probe_temp; 551 int any_i2c_devices; --- 117 unchanged lines hidden (view full) --- 669 670 if (subsystem_vendor_id == PCI_VENDOR_PINNACLE_ALT) { 671 bktr->card = cards[ (card = CARD_MIRO) ]; 672 bktr->card.eepromAddr = eeprom_i2c_address; 673 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); 674 goto checkTuner; 675 } 676 | 559 560void 561probeCard( bktr_ptr_t bktr, int verbose, int unit ) 562{ 563 int card, i,j, card_found; 564 int status; 565 u_char probe_signature[128], *probe_temp; 566 int any_i2c_devices; --- 117 unchanged lines hidden (view full) --- 684 685 if (subsystem_vendor_id == PCI_VENDOR_PINNACLE_ALT) { 686 bktr->card = cards[ (card = CARD_MIRO) ]; 687 bktr->card.eepromAddr = eeprom_i2c_address; 688 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); 689 goto checkTuner; 690 } 691 |
692 if (subsystem_vendor_id == 0x10fc && 693 subsystem_id == 0x4020) { 694 bktr->card = cards[ (card = CARD_IO_BCTV3) ]; 695 bktr->card.eepromAddr = eeprom_i2c_address; 696 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); 697 goto checkTuner; 698 } 699 |
|
677 /* Vendor is unknown. We will use the standard probe code */ 678 /* which may not give best results */ 679 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n", 680 bktr_name(bktr), subsystem_vendor_id, subsystem_id); 681 } 682 else 683 { 684 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n", --- 396 unchanged lines hidden (view full) --- 1081#if BKTR_SYSTEM_DEFAULT == BROOKTREE_PAL 1082 select_tuner( bktr, PHILIPS_FR1216_PAL ); 1083#else 1084 select_tuner( bktr, PHILIPS_FR1236_NTSC ); 1085#endif 1086 goto checkDBX; 1087 break; 1088 | 700 /* Vendor is unknown. We will use the standard probe code */ 701 /* which may not give best results */ 702 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n", 703 bktr_name(bktr), subsystem_vendor_id, subsystem_id); 704 } 705 else 706 { 707 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n", --- 396 unchanged lines hidden (view full) --- 1104#if BKTR_SYSTEM_DEFAULT == BROOKTREE_PAL 1105 select_tuner( bktr, PHILIPS_FR1216_PAL ); 1106#else 1107 select_tuner( bktr, PHILIPS_FR1236_NTSC ); 1108#endif 1109 goto checkDBX; 1110 break; 1111 |
1112 case CARD_IO_BCTV3: 1113 select_tuner( bktr, ALPS_TSCH5 ); /* ALPS_TSCH6, in fact. */ 1114 goto checkDBX; 1115 break; 1116 |
|
1089 } /* end switch(card) */ 1090 1091 1092 /* At this point, a goto checkDBX has not occured */ 1093 /* We have not been able to select a Tuner */ 1094 /* Some cards make use of the tuner address to */ 1095 /* identify the make/model of tuner */ 1096 --- 170 unchanged lines hidden --- | 1117 } /* end switch(card) */ 1118 1119 1120 /* At this point, a goto checkDBX has not occured */ 1121 /* We have not been able to select a Tuner */ 1122 /* Some cards make use of the tuner address to */ 1123 /* identify the make/model of tuner */ 1124 --- 170 unchanged lines hidden --- |