Module Name: src
Committed By: dyoung
Date: Tue Apr 5 23:37:46 UTC 2011
Modified Files:
src/sys/dev/pci: pcireg.h
Log Message:
Use PCI_MAPREG_START instead of the anonymous constant 0x10.
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/dev/pci/pcireg.h
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/pcireg.h
diff -u src/sys/dev/pci/pcireg.h:1.70 src/sys/dev/pci/pcireg.h:1.71
--- src/sys/dev/pci/pcireg.h:1.70 Wed Jan 26 00:49:56 2011
+++ src/sys/dev/pci/pcireg.h Tue Apr 5 23:37:46 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pcireg.h,v 1.70 2011/01/26 00:49:56 dyoung Exp $ */
+/* $NetBSD: pcireg.h,v 1.71 2011/04/05 23:37:46 dyoung Exp $ */
/*
* Copyright (c) 1995, 1996, 1999, 2000
@@ -369,7 +369,7 @@
#define PCI_BAR4 0x20
#define PCI_BAR5 0x24
-#define PCI_BAR(__n) (0x10 + 4 * (__n))
+#define PCI_BAR(__n) (PCI_MAPREG_START + 4 * (__n))
#define PCI_MAPREG_TYPE(mr) \
((mr) & PCI_MAPREG_TYPE_MASK)