mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Correct pcibus_setup() to return as soon as one test succeeds.
This commit is contained in:
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
|
@ -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 a new issue