svn commit: r281872 - head/sys/dev/pci

John Baldwin jhb at FreeBSD.org
Wed Apr 22 21:47:52 UTC 2015


Author: jhb
Date: Wed Apr 22 21:47:51 2015
New Revision: 281872
URL: https://svnweb.freebsd.org/changeset/base/281872

Log:
  Fix some incorrect #if conditions around older workarounds for bus
  numbering goofs.
  
  MFC after:	1 week

Modified:
  head/sys/dev/pci/pci_pci.c

Modified: head/sys/dev/pci/pci_pci.c
==============================================================================
--- head/sys/dev/pci/pci_pci.c	Wed Apr 22 21:41:59 2015	(r281871)
+++ head/sys/dev/pci/pci_pci.c	Wed Apr 22 21:47:51 2015	(r281872)
@@ -950,7 +950,7 @@ pcib_attach_common(device_t dev)
      * Quirk handling.
      */
     switch (pci_get_devid(dev)) {
-#if !defined(NEW_PCIB) && !defined(PCI_RES_BUS)
+#if !(defined(NEW_PCIB) && defined(PCI_RES_BUS))
     case 0x12258086:		/* Intel 82454KX/GX (Orion) */
 	{
 	    uint8_t	supbus;
@@ -976,7 +976,7 @@ pcib_attach_common(device_t dev)
 	sc->flags |= PCIB_SUBTRACTIVE;
 	break;
 
-#if !defined(NEW_PCIB) && !defined(PCI_RES_BUS)
+#if !(defined(NEW_PCIB) && defined(PCI_RES_BUS))
     /* Compaq R3000 BIOS sets wrong subordinate bus number. */
     case 0x00dd10de:
 	{


More information about the svn-src-all mailing list