Correct pcibus_setup() to return as soon as one test succeeds.
This commit is contained in:
parent
2d333dc2dd
commit
0f29bf015c
@ -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;
|
||||
};
|
||||
|
||||
/*---------------------------------------
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*---------------------------------------
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*---------------------------------------
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*---------------------------------------
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*---------------------------------------
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*---------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user