From 7fc3331d10fcad3b05310dfb59418709effa0e29 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 24 Feb 1999 00:20:10 +0000 Subject: why do new manufacturers make identical products, but change the vendor field? --- sys/dev/pci/if_rl.c | 10 +++++++++- sys/dev/pci/if_vr.c | 11 ++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_rl.c b/sys/dev/pci/if_rl.c index 9d73e342759..c777bc5a235 100644 --- a/sys/dev/pci/if_rl.c +++ b/sys/dev/pci/if_rl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rl.c,v 1.10 1998/12/31 02:35:14 jason Exp $ */ +/* $OpenBSD: if_rl.c,v 1.11 1999/02/24 00:20:08 deraadt Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1293,6 +1293,14 @@ rl_probe(parent, match, aux) } } + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_DELTA && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_DELTA_8139) + return (1); + + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ADDTRON && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ADDTRON_8139) + return (1); + return 0; } diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 20aec9951b8..63818e68cb7 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.2 1999/01/30 23:15:37 niklas Exp $ */ +/* $OpenBSD: if_vr.c,v 1.3 1999/02/24 00:20:09 deraadt Exp $ */ /* * Copyright (c) 1997, 1998 @@ -873,6 +873,15 @@ vr_probe(parent, match, aux) return (1); } } + + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_DELTA && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_DELTA_RHINEII) + return (1); + + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ADDTRON && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ADDTRON_RHINEII) + return (1); + return (0); } -- cgit v1.2.3