Thu Mar 8 18:48:25 2018 UTC ()
The PCI_PRODUCT_VIATECH_VT82C686A_SMB has been renamed, adjust.


(martin)
diff -r1.1 -r1.2 src/sys/arch/evbmips/loongson/dev/pcib.c

cvs diff -r1.1 -r1.2 src/sys/arch/evbmips/loongson/dev/pcib.c (expand / switch to unified diff)

--- src/sys/arch/evbmips/loongson/dev/pcib.c 2011/08/27 13:42:46 1.1
+++ src/sys/arch/evbmips/loongson/dev/pcib.c 2018/03/08 18:48:25 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: pcib.c,v 1.1 2011/08/27 13:42:46 bouyer Exp $ */ 1/* $NetBSD: pcib.c,v 1.2 2018/03/08 18:48:25 martin Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc. 4 * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Jason R. Thorpe. 8 * by Jason R. Thorpe.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -20,27 +20,27 @@ @@ -20,27 +20,27 @@
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.1 2011/08/27 13:42:46 bouyer Exp $"); 33__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.2 2018/03/08 18:48:25 martin Exp $");
34 34
35#include <sys/param.h> 35#include <sys/param.h>
36#include <sys/systm.h> 36#include <sys/systm.h>
37#include <sys/device.h> 37#include <sys/device.h>
38 38
39 39
40#include <evbmips/loongson/autoconf.h> 40#include <evbmips/loongson/autoconf.h>
41 41
42#include <dev/pci/pcireg.h> 42#include <dev/pci/pcireg.h>
43#include <dev/pci/pcivar.h> 43#include <dev/pci/pcivar.h>
44#include <dev/pci/pcidevs.h> 44#include <dev/pci/pcidevs.h>
45 45
46#include <dev/isa/isavar.h> 46#include <dev/isa/isavar.h>
@@ -73,27 +73,27 @@ pcibmatch(device_t parent, cfdata_t matc @@ -73,27 +73,27 @@ pcibmatch(device_t parent, cfdata_t matc
73 /* The above bridges mis-identify themselves */ 73 /* The above bridges mis-identify themselves */
74 return (1); 74 return (1);
75 } 75 }
76 break; 76 break;
77 case PCI_VENDOR_SIS: 77 case PCI_VENDOR_SIS:
78 switch (PCI_PRODUCT(pa->pa_id)) { 78 switch (PCI_PRODUCT(pa->pa_id)) {
79 case PCI_PRODUCT_SIS_85C503: 79 case PCI_PRODUCT_SIS_85C503:
80 /* mis-identifies itself as a miscellaneous prehistoric */ 80 /* mis-identifies itself as a miscellaneous prehistoric */
81 return (1); 81 return (1);
82 } 82 }
83 break; 83 break;
84 case PCI_VENDOR_VIATECH: 84 case PCI_VENDOR_VIATECH:
85 switch (PCI_PRODUCT(pa->pa_id)) { 85 switch (PCI_PRODUCT(pa->pa_id)) {
86 case PCI_PRODUCT_VIATECH_VT82C686A_SMB: 86 case PCI_PRODUCT_VIATECH_VT82C686A_PWR:
87 /* mis-identifies itself as a ISA bridge */ 87 /* mis-identifies itself as a ISA bridge */
88 return (0); 88 return (0);
89 } 89 }
90 break; 90 break;
91 } 91 }
92 92
93 if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE && 93 if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE &&
94 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA) 94 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA)
95 return (1); 95 return (1);
96 96
97 return (0); 97 return (0);
98} 98}
99 99