aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-08-04 13:38:24 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-08-04 13:38:24 +0000
commitcac6a04400304bfae6b6286e371db37ed7a9c726 (patch)
tree8a63364cc4664ef44bcab1190ac1968ebde8e441 /sys/i386
parentd836821b6097eb0e57992456a54b4440e1f20316 (diff)
Notes
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/pcibus.c9
-rw-r--r--sys/i386/pci/pci_bus.c9
-rw-r--r--sys/i386/pci/pci_cfgreg.c9
-rw-r--r--sys/i386/pci/pci_pir.c9
4 files changed, 16 insertions, 20 deletions
diff --git a/sys/i386/isa/pcibus.c b/sys/i386/isa/pcibus.c
index b3253ac68276..eb6cc27dcada 100644
--- a/sys/i386/isa/pcibus.c
+++ b/sys/i386/isa/pcibus.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcibus.c,v 1.42 1999/05/18 20:48:43 peter Exp $
+ * $Id: pcibus.c,v 1.43 1999/07/16 01:00:29 msmith Exp $
*
*/
@@ -364,7 +364,7 @@ nexus_pcib_is_host_bridge(pcicfgregs *cfg,
case 0x00011039:
s = "SiS 5591 host to AGP bridge";
break;
-
+
/* VLSI -- vendor 0x1004 */
case 0x00051004:
s = "VLSI 82C592 Host to PCI bridge";
@@ -409,10 +409,10 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
{
pcicfgregs probe;
+ if (pci_cfgopen() == 0)
+ return;
probe.hose = 0;
probe.bus = 0;
-
- pci_cfgopen();
for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) {
int pcifunchigh = 0;
for (probe.func = 0;
@@ -442,7 +442,6 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
}
}
}
-
}
static int
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c
index b3253ac68276..eb6cc27dcada 100644
--- a/sys/i386/pci/pci_bus.c
+++ b/sys/i386/pci/pci_bus.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcibus.c,v 1.42 1999/05/18 20:48:43 peter Exp $
+ * $Id: pcibus.c,v 1.43 1999/07/16 01:00:29 msmith Exp $
*
*/
@@ -364,7 +364,7 @@ nexus_pcib_is_host_bridge(pcicfgregs *cfg,
case 0x00011039:
s = "SiS 5591 host to AGP bridge";
break;
-
+
/* VLSI -- vendor 0x1004 */
case 0x00051004:
s = "VLSI 82C592 Host to PCI bridge";
@@ -409,10 +409,10 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
{
pcicfgregs probe;
+ if (pci_cfgopen() == 0)
+ return;
probe.hose = 0;
probe.bus = 0;
-
- pci_cfgopen();
for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) {
int pcifunchigh = 0;
for (probe.func = 0;
@@ -442,7 +442,6 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
}
}
}
-
}
static int
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
index b3253ac68276..eb6cc27dcada 100644
--- a/sys/i386/pci/pci_cfgreg.c
+++ b/sys/i386/pci/pci_cfgreg.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcibus.c,v 1.42 1999/05/18 20:48:43 peter Exp $
+ * $Id: pcibus.c,v 1.43 1999/07/16 01:00:29 msmith Exp $
*
*/
@@ -364,7 +364,7 @@ nexus_pcib_is_host_bridge(pcicfgregs *cfg,
case 0x00011039:
s = "SiS 5591 host to AGP bridge";
break;
-
+
/* VLSI -- vendor 0x1004 */
case 0x00051004:
s = "VLSI 82C592 Host to PCI bridge";
@@ -409,10 +409,10 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
{
pcicfgregs probe;
+ if (pci_cfgopen() == 0)
+ return;
probe.hose = 0;
probe.bus = 0;
-
- pci_cfgopen();
for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) {
int pcifunchigh = 0;
for (probe.func = 0;
@@ -442,7 +442,6 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
}
}
}
-
}
static int
diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c
index b3253ac68276..eb6cc27dcada 100644
--- a/sys/i386/pci/pci_pir.c
+++ b/sys/i386/pci/pci_pir.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcibus.c,v 1.42 1999/05/18 20:48:43 peter Exp $
+ * $Id: pcibus.c,v 1.43 1999/07/16 01:00:29 msmith Exp $
*
*/
@@ -364,7 +364,7 @@ nexus_pcib_is_host_bridge(pcicfgregs *cfg,
case 0x00011039:
s = "SiS 5591 host to AGP bridge";
break;
-
+
/* VLSI -- vendor 0x1004 */
case 0x00051004:
s = "VLSI 82C592 Host to PCI bridge";
@@ -409,10 +409,10 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
{
pcicfgregs probe;
+ if (pci_cfgopen() == 0)
+ return;
probe.hose = 0;
probe.bus = 0;
-
- pci_cfgopen();
for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) {
int pcifunchigh = 0;
for (probe.func = 0;
@@ -442,7 +442,6 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
}
}
}
-
}
static int