diff options
author | jhb <jhb@FreeBSD.org> | 2006-12-12 19:23:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-12-12 19:23:52 +0000 |
commit | ea27014d6ff7c20185a07604af06b6aff63592b6 (patch) | |
tree | be309bb08882fa2e73b2b04f367a6f79d063bdd6 /sys/i386/pci | |
parent | 65d8bd30a00681cb5864698d05bd24395da41546 (diff) | |
download | FreeBSD-src-ea27014d6ff7c20185a07604af06b6aff63592b6.zip FreeBSD-src-ea27014d6ff7c20185a07604af06b6aff63592b6.tar.gz |
Replace a few magic numbers.
Diffstat (limited to 'sys/i386/pci')
-rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index 85e9f07..a6c80ae 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -160,8 +160,8 @@ pci_cfgregopen(void) */ /* Check for supported chipsets */ - vid = pci_cfgregread(0, 0, 0, 0x0, 2); - did = pci_cfgregread(0, 0, 0, 0x2, 2); + vid = pci_cfgregread(0, 0, 0, PCIR_VENDOR, 2); + did = pci_cfgregread(0, 0, 0, PCIR_DEVICE, 2); if (vid == 0x8086) { if (did == 0x3590 || did == 0x3592) { /* Intel 7520 or 7320 */ |