summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-03-14 07:24:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-03-14 07:24:55 +0000
commit885add9c03f571b2b4d63341b487c6004c790716 (patch)
tree49c8503d9b997b857f853547740c9eac31a6c2be /sys
parent6c6b91a6eeb043063d31d1d7d006d0155ff98ac7 (diff)
support for two more leadtek cards; from robert nagy
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/bktr/bktr_card.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/bktr/bktr_card.c b/sys/dev/pci/bktr/bktr_card.c
index 4e35607a339..2ea07fbee0b 100644
--- a/sys/dev/pci/bktr/bktr_card.c
+++ b/sys/dev/pci/bktr/bktr_card.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_card.c,v 1.6 2003/01/16 22:57:33 mickey Exp $ */
+/* $OpenBSD: bktr_card.c,v 1.7 2004/03/14 07:24:54 mickey Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_card.c,v 1.16 2000/10/31 13:09:56 roger Exp $ */
/*
@@ -532,6 +532,8 @@ static int locate_eeprom_address( bktr_ptr_t bktr) {
/* Following not confirmed with http://members.hyperlink.net.au/~chart,
so not added to NetBSD's pcidevs */
#define PCI_VENDOR_LEADTEK_ALT 0x6606 /* this is swapped w/ prod id */
+#define PCI_VENDOR_LEADTEK_ALT_2 0x6607
+#define PCI_VENDOR_LEADTEK_ALT_3 0x107d
#define PCI_VENDOR_FLYVIDEO 0x1851
#define PCI_VENDOR_FLYVIDEO_2 0x1852
#define PCI_VENDOR_PINNACLE_ALT 0xBD11 /* this is swapped w/ prod id */
@@ -655,7 +657,9 @@ probeCard( bktr_ptr_t bktr, int verbose, int unit )
goto checkTuner;
}
- if (subsystem_vendor_id == PCI_VENDOR_LEADTEK) {
+ if ((subsystem_vendor_id == PCI_VENDOR_LEADTEK_ALT)
+ || (subsystem_vendor_id == PCI_VENDOR_LEADTEK_ALT_2)
+ || (subsystem_vendor_id == PCI_VENDOR_LEADTEK_ALT_3)) {
bktr->card = cards[ (card = CARD_LEADTEK) ];
bktr->card.eepromAddr = eeprom_i2c_address;
bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);