summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/pci/pci_cfgreg.c4
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 */
OpenPOWER on IntegriCloud