Correct pcibus_setup() to return as soon as one test succeeds.

This commit is contained in:
Stefan Eßer 1995-03-22 21:35:39 +00:00
parent 2d333dc2dd
commit 0f29bf015c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7254
6 changed files with 18 additions and 6 deletions

View file

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pcibus.c,v 1.6 1995/03/22 10:52:05 se Exp $
** $Id: pcibus.c,v 1.7 1995/03/22 19:51:59 se Exp $
**
** pci bus subroutines for i386 architecture.
**
@ -162,6 +162,7 @@ pcibus_setup (void)
if (!inb (CONF2_ENABLE_PORT) && !inb (CONF2_FORWARD_PORT)) {
pci_mechanism = 2;
pci_maxdevice = 16;
return;
};
/*---------------------------------------
@ -177,6 +178,7 @@ pcibus_setup (void)
if (result == CONF1_ENABLE) {
pci_mechanism = 1;
pci_maxdevice = 32;
return;
};
/*---------------------------------------

View file

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pcibus.c,v 1.6 1995/03/22 10:52:05 se Exp $
** $Id: pcibus.c,v 1.7 1995/03/22 19:51:59 se Exp $
**
** pci bus subroutines for i386 architecture.
**
@ -162,6 +162,7 @@ pcibus_setup (void)
if (!inb (CONF2_ENABLE_PORT) && !inb (CONF2_FORWARD_PORT)) {
pci_mechanism = 2;
pci_maxdevice = 16;
return;
};
/*---------------------------------------
@ -177,6 +178,7 @@ pcibus_setup (void)
if (result == CONF1_ENABLE) {
pci_mechanism = 1;
pci_maxdevice = 32;
return;
};
/*---------------------------------------

View file

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pcibus.c,v 1.6 1995/03/22 10:52:05 se Exp $
** $Id: pcibus.c,v 1.7 1995/03/22 19:51:59 se Exp $
**
** pci bus subroutines for i386 architecture.
**
@ -162,6 +162,7 @@ pcibus_setup (void)
if (!inb (CONF2_ENABLE_PORT) && !inb (CONF2_FORWARD_PORT)) {
pci_mechanism = 2;
pci_maxdevice = 16;
return;
};
/*---------------------------------------
@ -177,6 +178,7 @@ pcibus_setup (void)
if (result == CONF1_ENABLE) {
pci_mechanism = 1;
pci_maxdevice = 32;
return;
};
/*---------------------------------------

View file

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pcibus.c,v 1.6 1995/03/22 10:52:05 se Exp $
** $Id: pcibus.c,v 1.7 1995/03/22 19:51:59 se Exp $
**
** pci bus subroutines for i386 architecture.
**
@ -162,6 +162,7 @@ pcibus_setup (void)
if (!inb (CONF2_ENABLE_PORT) && !inb (CONF2_FORWARD_PORT)) {
pci_mechanism = 2;
pci_maxdevice = 16;
return;
};
/*---------------------------------------
@ -177,6 +178,7 @@ pcibus_setup (void)
if (result == CONF1_ENABLE) {
pci_mechanism = 1;
pci_maxdevice = 32;
return;
};
/*---------------------------------------

View file

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pcibus.c,v 1.6 1995/03/22 10:52:05 se Exp $
** $Id: pcibus.c,v 1.7 1995/03/22 19:51:59 se Exp $
**
** pci bus subroutines for i386 architecture.
**
@ -162,6 +162,7 @@ pcibus_setup (void)
if (!inb (CONF2_ENABLE_PORT) && !inb (CONF2_FORWARD_PORT)) {
pci_mechanism = 2;
pci_maxdevice = 16;
return;
};
/*---------------------------------------
@ -177,6 +178,7 @@ pcibus_setup (void)
if (result == CONF1_ENABLE) {
pci_mechanism = 1;
pci_maxdevice = 32;
return;
};
/*---------------------------------------

View file

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pcibus.c,v 1.6 1995/03/22 10:52:05 se Exp $
** $Id: pcibus.c,v 1.7 1995/03/22 19:51:59 se Exp $
**
** pci bus subroutines for i386 architecture.
**
@ -162,6 +162,7 @@ pcibus_setup (void)
if (!inb (CONF2_ENABLE_PORT) && !inb (CONF2_FORWARD_PORT)) {
pci_mechanism = 2;
pci_maxdevice = 16;
return;
};
/*---------------------------------------
@ -177,6 +178,7 @@ pcibus_setup (void)
if (result == CONF1_ENABLE) {
pci_mechanism = 1;
pci_maxdevice = 32;
return;
};
/*---------------------------------------