diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2003-10-07 14:11:05 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2003-10-07 14:11:05 +0000 |
commit | ae23f0860f8e53d0855b2698fa3feca9f5fc0df5 (patch) | |
tree | 49ad2efc21a3d6e1f7953566583eb78ec566b503 /sys/dev/pci/cs4281.c | |
parent | 63a9d6600019c8ef6d91e2b15b5490523892da3f (diff) |
use PCI_PMCSR instead of some magic value.
ok krw@ henning@
Diffstat (limited to 'sys/dev/pci/cs4281.c')
-rw-r--r-- | sys/dev/pci/cs4281.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c index 0df68cb0037..88adfc9c176 100644 --- a/sys/dev/pci/cs4281.c +++ b/sys/dev/pci/cs4281.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4281.c,v 1.15 2003/08/21 04:57:40 mickey Exp $ */ +/* $OpenBSD: cs4281.c,v 1.16 2003/10/07 14:11:04 fgsch Exp $ */ /* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */ /* @@ -324,7 +324,7 @@ cs4281_attach(parent, self, aux) &pci_pwrmgmt_cap_reg, 0)) { pcireg_t reg; - pci_pwrmgmt_csr_reg = pci_pwrmgmt_cap_reg + 4; + pci_pwrmgmt_csr_reg = pci_pwrmgmt_cap_reg + PCI_PMCSR; reg = pci_conf_read(pa->pa_pc, pa->pa_tag, pci_pwrmgmt_csr_reg); if ((reg & PCI_PMCSR_STATE_MASK) != PCI_PMCSR_STATE_D0) { pci_conf_write(pc, pa->pa_tag, pci_pwrmgmt_csr_reg, |