bktr_card.c (133300) | bktr_card.c (138936) |
---|---|
1/*- 2 * 1. Redistributions of source code must retain the 3 * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * 1. Redistributions of source code must retain the 3 * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/bktr/bktr_card.c 133300 2004-08-08 01:23:39Z sanpei $"); | 35__FBSDID("$FreeBSD: head/sys/dev/bktr/bktr_card.c 138936 2004-12-16 23:37:41Z julian $"); |
36 37/* 38 * This is part of the Driver for Video Capture Cards (Frame grabbers) 39 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879 40 * chipset. 41 * Copyright Roger Hardiman and Amancio Hasty. 42 * 43 * bktr_card : This deals with identifying TV cards. --- 319 unchanged lines hidden (view full) --- 363 0, /* dbx is optional */ 364 0, 365 0, 366 0, /* EEProm unknown */ 367 0, /* size unknown */ 368 { 0x02, 0x00, 0x00, 0x00, 1 }, /* audio MUX values */ 369 0x18e0 }, /* GPIO mask */ 370 | 36 37/* 38 * This is part of the Driver for Video Capture Cards (Frame grabbers) 39 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879 40 * chipset. 41 * Copyright Roger Hardiman and Amancio Hasty. 42 * 43 * bktr_card : This deals with identifying TV cards. --- 319 unchanged lines hidden (view full) --- 363 0, /* dbx is optional */ 364 0, 365 0, 366 0, /* EEProm unknown */ 367 0, /* size unknown */ 368 { 0x02, 0x00, 0x00, 0x00, 1 }, /* audio MUX values */ 369 0x18e0 }, /* GPIO mask */ 370 |
371 { CARD_PINNACLE_PCTV_RAVE, /* the card id */ 372 "Pinnacle PCTV Rave", /* the 'name' */ 373 NULL, /* the tuner */ 374 0, /* the tuner i2c address */ 375 0, /* dbx unknown */ 376 0, 377 0, 378 0, /* EEProm unknown */ 379 0, /* size unknown */ 380 { 0x02, 0x01, 0x00, 0x0a, 1 }, /* audio MUX values */ 381 0x03000F }, /* GPIO mask */ 382 |
|
371}; 372 373struct bt848_card_sig bt848_card_signature[1]= { 374 /* IMS TURBO TV : card 5 */ 375 { 5,9, {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00}} 376 377 378}; --- 185 unchanged lines hidden (view full) --- 564 so not added to NetBSD's pcidevs */ 565#define PCI_VENDOR_LEADTEK_ALT 0x6606 566#define PCI_VENDOR_LEADTEK_ALT_2 0x6607 567#define PCI_VENDOR_LEADTEK_ALT_3 0x107d 568#define PCI_VENDOR_FLYVIDEO 0x1851 569#define PCI_VENDOR_FLYVIDEO_2 0x1852 570#define PCI_VENDOR_PINNACLE_ALT 0xBD11 571#define PCI_VENDOR_IODATA 0x10fc | 383}; 384 385struct bt848_card_sig bt848_card_signature[1]= { 386 /* IMS TURBO TV : card 5 */ 387 { 5,9, {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00}} 388 389 390}; --- 185 unchanged lines hidden (view full) --- 576 so not added to NetBSD's pcidevs */ 577#define PCI_VENDOR_LEADTEK_ALT 0x6606 578#define PCI_VENDOR_LEADTEK_ALT_2 0x6607 579#define PCI_VENDOR_LEADTEK_ALT_3 0x107d 580#define PCI_VENDOR_FLYVIDEO 0x1851 581#define PCI_VENDOR_FLYVIDEO_2 0x1852 582#define PCI_VENDOR_PINNACLE_ALT 0xBD11 583#define PCI_VENDOR_IODATA 0x10fc |
584#define PCI_VENDOR_PINNACLE_NEW 0x11BD |
|
572 573#define MODEL_IODATA_GV_BCTV3_PCI 0x4020 574 575void 576probeCard( bktr_ptr_t bktr, int verbose, int unit ) 577{ 578 int card, i,j, card_found; 579 int status; --- 129 unchanged lines hidden (view full) --- 709 if (subsystem_vendor_id == 0x10fc && 710 subsystem_id == 0x4020) { 711 bktr->card = cards[ (card = CARD_IO_BCTV3) ]; 712 bktr->card.eepromAddr = eeprom_i2c_address; 713 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); 714 goto checkTuner; 715 } 716 | 585 586#define MODEL_IODATA_GV_BCTV3_PCI 0x4020 587 588void 589probeCard( bktr_ptr_t bktr, int verbose, int unit ) 590{ 591 int card, i,j, card_found; 592 int status; --- 129 unchanged lines hidden (view full) --- 722 if (subsystem_vendor_id == 0x10fc && 723 subsystem_id == 0x4020) { 724 bktr->card = cards[ (card = CARD_IO_BCTV3) ]; 725 bktr->card.eepromAddr = eeprom_i2c_address; 726 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); 727 goto checkTuner; 728 } 729 |
730 if (subsystem_vendor_id == PCI_VENDOR_PINNACLE_NEW) { 731 bktr->card = cards[ (card = CARD_PINNACLE_PCTV_RAVE) ]; 732 bktr->card.eepromAddr = eeprom_i2c_address; 733 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); 734 735 TDA9887_init(bktr, 0); 736 737 /* look for a tuner */ 738 tuner_i2c_address = locate_tuner_address( bktr ); 739 printf( "%s: tuner @ %#x\n", bktr_name(bktr), tuner_i2c_address ); 740 select_tuner( bktr, TUNER_MT2032 ); 741 742 goto checkDBX; 743 } 744 |
|
717 /* Vendor is unknown. We will use the standard probe code */ 718 /* which may not give best results */ 719 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n", 720 bktr_name(bktr), subsystem_vendor_id, subsystem_id); 721 } 722 else 723 { 724 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n", --- 587 unchanged lines hidden --- | 745 /* Vendor is unknown. We will use the standard probe code */ 746 /* which may not give best results */ 747 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n", 748 bktr_name(bktr), subsystem_vendor_id, subsystem_id); 749 } 750 else 751 { 752 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n", --- 587 unchanged lines hidden --- |