Deleted Added
full compact
bktr_card.c (139919) bktr_card.c (140655)
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 139919 2005-01-08 22:52:00Z imp $");
35__FBSDID("$FreeBSD: head/sys/dev/bktr/bktr_card.c 140655 2005-01-23 07:13:09Z 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.

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

734 if (subsystem_vendor_id == 0x10fc &&
735 subsystem_id == 0x4020) {
736 bktr->card = cards[ (card = CARD_IO_BCTV3) ];
737 bktr->card.eepromAddr = eeprom_i2c_address;
738 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
739 goto checkTuner;
740 }
741
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.

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

734 if (subsystem_vendor_id == 0x10fc &&
735 subsystem_id == 0x4020) {
736 bktr->card = cards[ (card = CARD_IO_BCTV3) ];
737 bktr->card.eepromAddr = eeprom_i2c_address;
738 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
739 goto checkTuner;
740 }
741
742 if (subsystem_vendor_id == PCI_VENDOR_PINNACLE_NEW) {
743 bktr->card = cards[ (card = CARD_PINNACLE_PCTV_RAVE) ];
744 bktr->card.eepromAddr = eeprom_i2c_address;
745 bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
746
747 TDA9887_init(bktr, 0);
748
749 /* look for a tuner */
750 tuner_i2c_address = locate_tuner_address( bktr );
751 printf( "%s: tuner @ %#x\n", bktr_name(bktr), tuner_i2c_address );
752 select_tuner( bktr, TUNER_MT2032 );
753
754 goto checkDBX;
755 }
756
757 /* Vendor is unknown. We will use the standard probe code */
758 /* which may not give best results */
759 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n",
760 bktr_name(bktr), subsystem_vendor_id, subsystem_id);
761 }
762 else
763 {
764 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n",

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

879 } else {
880 bktr->card.eepromAddr = 0;
881 bktr->card.eepromSize = 0;
882 }
883
884
885checkTuner:
886
742 /* Vendor is unknown. We will use the standard probe code */
743 /* which may not give best results */
744 printf("%s: Warning - card vendor 0x%04x (model 0x%04x) unknown.\n",
745 bktr_name(bktr), subsystem_vendor_id, subsystem_id);
746 }
747 else
748 {
749 printf("%s: Card has no configuration EEPROM. Cannot determine card make.\n",

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

864 } else {
865 bktr->card.eepromAddr = 0;
866 bktr->card.eepromSize = 0;
867 }
868
869
870checkTuner:
871
872 if (card == CARD_MIRO && mt2032_init(bktr) == 0) {
873 bktr->card = cards[ (card = CARD_PINNACLE_PCTV_RAVE) ];
874 select_tuner( bktr, TUNER_MT2032 );
875 goto checkDBX;
876 }
877
887 /* look for a tuner */
888 tuner_i2c_address = locate_tuner_address( bktr );
889 if ( tuner_i2c_address == -1 ) {
890 select_tuner( bktr, NO_TUNER );
891 goto checkDBX;
892 }
893
894#if defined( BKTR_OVERRIDE_TUNER )

--- 457 unchanged lines hidden ---
878 /* look for a tuner */
879 tuner_i2c_address = locate_tuner_address( bktr );
880 if ( tuner_i2c_address == -1 ) {
881 select_tuner( bktr, NO_TUNER );
882 goto checkDBX;
883 }
884
885#if defined( BKTR_OVERRIDE_TUNER )

--- 457 unchanged lines hidden ---