Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add PCI_BAR(n) for the nth Base Address Register.



details:   https://anonhg.NetBSD.org/src/rev/3d492f74bd6b
branches:  trunk
changeset: 753194:3d492f74bd6b
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Sat Mar 20 00:23:41 2010 +0000

description:
Add PCI_BAR(n) for the nth Base Address Register.

diffstat:

 sys/dev/pci/pcireg.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r a19655128b0d -r 3d492f74bd6b sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h      Sat Mar 20 00:02:59 2010 +0000
+++ b/sys/dev/pci/pcireg.h      Sat Mar 20 00:23:41 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcireg.h,v 1.66 2010/02/26 00:38:14 dyoung Exp $       */
+/*     $NetBSD: pcireg.h,v 1.67 2010/03/20 00:23:41 dyoung Exp $       */
 
 /*
  * Copyright (c) 1995, 1996, 1999, 2000
@@ -365,6 +365,8 @@
 #define PCI_BAR4               0x20
 #define PCI_BAR5               0x24
 
+#define        PCI_BAR(__n)            (0x10 + 4 * (__n))
+
 #define        PCI_MAPREG_TYPE(mr)                                             \
            ((mr) & PCI_MAPREG_TYPE_MASK)
 #define        PCI_MAPREG_TYPE_MASK                    0x00000001



Home | Main Index | Thread Index | Old Index