diff options
author | jhb <jhb@FreeBSD.org> | 2003-09-18 17:00:03 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-09-18 17:00:03 +0000 |
commit | 7951db66e418055d98c82a25c56b6b042f9c8f33 (patch) | |
tree | 683506ed877292011883109046097760bc79ec9e /sys/i386/include/pci_cfgreg.h | |
parent | 656202405bddc8edc1b65dea7c5475215b1ba05d (diff) | |
download | FreeBSD-src-7951db66e418055d98c82a25c56b6b042f9c8f33.zip FreeBSD-src-7951db66e418055d98c82a25c56b6b042f9c8f33.tar.gz |
Fix a busted constant related to PCI configuration acess method #1. The
reserved bits in the port that must be zero are 24:30, not 20:30. Bits
16:23 are used to set the bus number. This meant that when we tested for
config mechanism #1, if the previous PCI configuration transaction sent
used a bus number greater than 15, one of the bits in 20:23 would be
non-zero and we would fail to use config mechanism #1 and thus fail to see
that PCI existed on the machine at all.
Obtained from: Shanley's PCI System Architecture book
Tested by: des
Proxied through: njl
Diffstat (limited to 'sys/i386/include/pci_cfgreg.h')
-rw-r--r-- | sys/i386/include/pci_cfgreg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/include/pci_cfgreg.h b/sys/i386/include/pci_cfgreg.h index b173531..7e45a07 100644 --- a/sys/i386/include/pci_cfgreg.h +++ b/sys/i386/include/pci_cfgreg.h @@ -32,7 +32,7 @@ #define CONF1_ENABLE 0x80000000ul #define CONF1_ENABLE_CHK 0x80000000ul -#define CONF1_ENABLE_MSK 0x7ff00000ul +#define CONF1_ENABLE_MSK 0x7f000000ul #define CONF1_ENABLE_CHK1 0xff000001ul #define CONF1_ENABLE_MSK1 0x80000001ul #define CONF1_ENABLE_RES1 0x80000000ul |