From 4e3f07ad324f86676c2701793828dfe8ae87f0ae Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 13 Dec 2001 17:43:04 +0000 Subject: Fix old alpha bug recently triggered by conversion to busdma. --- sys/dev/pci/if_dc_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c index c2c66b026f9..6e8a07d8151 100644 --- a/sys/dev/pci/if_dc_pci.c +++ b/sys/dev/pci/if_dc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dc_pci.c,v 1.21 2001/12/06 20:12:00 jason Exp $ */ +/* $OpenBSD: if_dc_pci.c,v 1.22 2001/12/13 17:43:03 nate Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -457,7 +457,7 @@ void dc_pci_attach(parent, self, aux) /* Remember the SRM console media setting */ if (DC_IS_INTEL(sc)) { - command = pci_read_config(dev, DC_PCI_CFDD, 4); + command = pci_conf_read(pc, pa->pa_tag, DC_PCI_CFDD); command &= ~(DC_CFDD_SNOOZE_MODE|DC_CFDD_SLEEP_MODE); switch ((command >> 8) & 0xff) { case 3: -- cgit v1.2.3