Module Name:    src
Committed By:   dyoung
Date:           Sat Mar 20 00:23:42 UTC 2010

Modified Files:
        src/sys/dev/pci: pcireg.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 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.66 src/sys/dev/pci/pcireg.h:1.67
--- src/sys/dev/pci/pcireg.h:1.66	Fri Feb 26 00:38:14 2010
+++ src/sys/dev/pci/pcireg.h	Sat Mar 20 00:23:41 2010
@@ -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

Reply via email to