diff options
author | jhb <jhb@FreeBSD.org> | 2007-11-28 22:20:08 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-11-28 22:20:08 +0000 |
commit | 2a71fa9467ab04c43782066c416b3a78c5f04d18 (patch) | |
tree | f932011f2008f64cae5aa90e55c93d4f06e0b570 /sys/amd64/include/pci_cfgreg.h | |
parent | 22ebcc078a4fb976178e2d0eea4c0d1387d8ccf6 (diff) | |
download | FreeBSD-src-2a71fa9467ab04c43782066c416b3a78c5f04d18.zip FreeBSD-src-2a71fa9467ab04c43782066c416b3a78c5f04d18.tar.gz |
Adjust the code to probe for the PCI config mechanism to use.
- On amd64, just assume type #1 is always used. PCI 2.0 mandated
deprecated type #2 and required type #1 for all future bridges which
was well before amd64 existed.
- For i386, ignore whatever value was in 0xcf8 before testing for type #1
and instead rely on the other tests to determine if type #1 works. Some
newer machines leave garbage in 0xcf8 during boot and as a result the
kernel doesn't find PCI at all (which greatly confuses ACPI which expects
PCI to exist when PCI busses are in the namespace).
MFC after: 3 days
Discussed with: scottl
Diffstat (limited to 'sys/amd64/include/pci_cfgreg.h')
-rw-r--r-- | sys/amd64/include/pci_cfgreg.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/amd64/include/pci_cfgreg.h b/sys/amd64/include/pci_cfgreg.h index 1df8972..e97b367 100644 --- a/sys/amd64/include/pci_cfgreg.h +++ b/sys/amd64/include/pci_cfgreg.h @@ -37,11 +37,6 @@ #define CONF1_ENABLE_MSK1 0x80000001ul #define CONF1_ENABLE_RES1 0x80000000ul -#define CONF2_ENABLE_PORT 0x0cf8 -#define CONF2_FORWARD_PORT 0x0cfa -#define CONF2_ENABLE_CHK 0x0e -#define CONF2_ENABLE_RES 0x0e - int pci_cfgregopen(void); u_int32_t pci_cfgregread(int bus, int slot, int func, int reg, int bytes); void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes); |