diff options
author | Dariusz Swiderski <dms@cvs.openbsd.org> | 2009-12-03 11:07:47 +0000 |
---|---|---|
committer | Dariusz Swiderski <dms@cvs.openbsd.org> | 2009-12-03 11:07:47 +0000 |
commit | efd4731f6657927d448f99fbc05c3c2ab8f058d5 (patch) | |
tree | c8d1871a97d9b9e1026e45b9d94f218f983f8da2 | |
parent | 87daf3f58d90c81782326b86413d4c495f87d8e0 (diff) |
use a define rather than magic number, spotted by Brad
ok by claudio@
-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; |