Make the class code checks in function pci_cfgcheck less strict.
It failed to recognize the PCI bus in a system that had only an old chip-set (class code 000000) and a Cyclom multiport serial card on PCI bus 0, but no VGA card or disk or network controller. PR: i386/5300 Submitted by: Nickolay N. Dudorov <nnd@itfs.nsk.su>
This commit is contained in:
parent
d9ede58894
commit
e21d98ece6
@ -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.39 1997/05/26 21:52:41 se Exp $
|
||||
* $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev)
|
||||
class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8;
|
||||
if (bootverbose)
|
||||
printf("[class=%06x] ", class);
|
||||
if (class == 0 || (class & 0xf8f0ff) != 0)
|
||||
if (class == 0 || (class & 0xf870ff) != 0)
|
||||
continue;
|
||||
|
||||
header = inb(pci_cfgenable(0, device, 0, 14, 1));
|
||||
|
@ -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.39 1997/05/26 21:52:41 se Exp $
|
||||
* $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev)
|
||||
class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8;
|
||||
if (bootverbose)
|
||||
printf("[class=%06x] ", class);
|
||||
if (class == 0 || (class & 0xf8f0ff) != 0)
|
||||
if (class == 0 || (class & 0xf870ff) != 0)
|
||||
continue;
|
||||
|
||||
header = inb(pci_cfgenable(0, device, 0, 14, 1));
|
||||
|
@ -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.39 1997/05/26 21:52:41 se Exp $
|
||||
* $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev)
|
||||
class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8;
|
||||
if (bootverbose)
|
||||
printf("[class=%06x] ", class);
|
||||
if (class == 0 || (class & 0xf8f0ff) != 0)
|
||||
if (class == 0 || (class & 0xf870ff) != 0)
|
||||
continue;
|
||||
|
||||
header = inb(pci_cfgenable(0, device, 0, 14, 1));
|
||||
|
@ -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.39 1997/05/26 21:52:41 se Exp $
|
||||
* $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev)
|
||||
class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8;
|
||||
if (bootverbose)
|
||||
printf("[class=%06x] ", class);
|
||||
if (class == 0 || (class & 0xf8f0ff) != 0)
|
||||
if (class == 0 || (class & 0xf870ff) != 0)
|
||||
continue;
|
||||
|
||||
header = inb(pci_cfgenable(0, device, 0, 14, 1));
|
||||
|
@ -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.39 1997/05/26 21:52:41 se Exp $
|
||||
* $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev)
|
||||
class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8;
|
||||
if (bootverbose)
|
||||
printf("[class=%06x] ", class);
|
||||
if (class == 0 || (class & 0xf8f0ff) != 0)
|
||||
if (class == 0 || (class & 0xf870ff) != 0)
|
||||
continue;
|
||||
|
||||
header = inb(pci_cfgenable(0, device, 0, 14, 1));
|
||||
|
@ -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.39 1997/05/26 21:52:41 se Exp $
|
||||
* $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev)
|
||||
class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8;
|
||||
if (bootverbose)
|
||||
printf("[class=%06x] ", class);
|
||||
if (class == 0 || (class & 0xf8f0ff) != 0)
|
||||
if (class == 0 || (class & 0xf870ff) != 0)
|
||||
continue;
|
||||
|
||||
header = inb(pci_cfgenable(0, device, 0, 14, 1));
|
||||
|
Loading…
Reference in New Issue
Block a user