Module Name: src Committed By: martin Date: Sun Dec 8 11:32:51 UTC 2013
Modified Files: src/sys/dev/pci: if_athn_pci.c Log Message: Cosmectic: use the same define in all places when referencing the BAR. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/if_athn_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_athn_pci.c diff -u src/sys/dev/pci/if_athn_pci.c:1.8 src/sys/dev/pci/if_athn_pci.c:1.9 --- src/sys/dev/pci/if_athn_pci.c:1.8 Sun Apr 21 19:59:40 2013 +++ src/sys/dev/pci/if_athn_pci.c Sun Dec 8 11:32:51 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: if_athn_pci.c,v 1.8 2013/04/21 19:59:40 msaitoh Exp $ */ +/* $NetBSD: if_athn_pci.c,v 1.9 2013/12/08 11:32:51 martin Exp $ */ /* $OpenBSD: if_athn_pci.c,v 1.11 2011/01/08 10:02:32 damien Exp $ */ /*- @@ -22,7 +22,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.8 2013/04/21 19:59:40 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.9 2013/12/08 11:32:51 martin Exp $"); #include "opt_inet.h" @@ -189,7 +189,7 @@ athn_pci_attach(device_t parent, device_ (int)memtype); goto fail; } - error = pci_mapreg_map(pa, PCI_MAPREG_START, memtype, 0, &psc->psc_iot, + error = pci_mapreg_map(pa, ATHN_PCI_MMBA, memtype, 0, &psc->psc_iot, &psc->psc_ioh, NULL, &psc->psc_mapsz); if (error != 0) { aprint_error_dev(self, "cannot map register space\n");