diff options
author | 2009-12-03 11:07:46 +0000 | |
---|---|---|
committer | 2009-12-03 11:07:46 +0000 | |
commit | 1caedb58874ef3735f6917aa1f1d35199f99a2bc (patch) | |
tree | 779443481485d9a7f129445557d16adfc06a3a6a /sys/dev/pci/gcu.c | |
parent | set the length of the cdb when synchronising cache. (diff) | |
download | wireguard-openbsd-1caedb58874ef3735f6917aa1f1d35199f99a2bc.tar.xz wireguard-openbsd-1caedb58874ef3735f6917aa1f1d35199f99a2bc.zip |
use a define rather than magic number, spotted by Brad
ok by claudio@
Diffstat (limited to 'sys/dev/pci/gcu.c')
-rw-r--r-- | sys/dev/pci/gcu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/gcu.c b/sys/dev/pci/gcu.c index a0df00effa2..92e1f86b15d 100644 --- a/sys/dev/pci/gcu.c +++ b/sys/dev/pci/gcu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gcu.c,v 1.1 2009/11/25 13:28:13 dms Exp $ */ +/* $OpenBSD: gcu.c,v 1.2 2009/12/03 11:07:46 dms Exp $ */ /* * Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net> @@ -60,7 +60,7 @@ gcu_attach(struct device *parent, struct device *self, void *aux) struct pci_attach_args *pa = aux; int val; - val = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x10); + val = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_MAPREG_START); if (PCI_MAPREG_TYPE(val) != PCI_MAPREG_TYPE_MEM) { printf(": mmba is not mem space\n"); return; |