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 a few revision definitions.



details:   https://anonhg.NetBSD.org/src/rev/c8b579f1d255
branches:  trunk
changeset: 533186:c8b579f1d255
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Jun 24 01:21:39 2002 +0000

description:
Add a few revision definitions.

diffstat:

 sys/dev/pci/if_bgereg.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r ab5b897ae233 -r c8b579f1d255 sys/dev/pci/if_bgereg.h
--- a/sys/dev/pci/if_bgereg.h   Mon Jun 24 01:13:34 2002 +0000
+++ b/sys/dev/pci/if_bgereg.h   Mon Jun 24 01:21:39 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bgereg.h,v 1.1 2002/06/22 14:42:07 fvdl Exp $       */
+/*     $NetBSD: if_bgereg.h,v 1.2 2002/06/24 01:21:39 fvdl Exp $       */
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -219,6 +219,8 @@
 
 #define BGE_ASICREV_TIGON_I            0x40000000
 #define BGE_ASICREV_TIGON_II           0x60000000
+#define BGE_ASICREV_BCM5700_A0         0x70000000
+#define BGE_ASICREV_BCM5700_A1         0x70010000
 #define BGE_ASICREV_BCM5700_B0         0x71000000
 #define BGE_ASICREV_BCM5700_B1         0x71020000
 #define BGE_ASICREV_BCM5700_B2         0x71030000
@@ -230,7 +232,10 @@
 #define BGE_ASICREV_BCM5701_B5         0x01050000
 
 /* shorthand one */
-#define BGE_ASICREV_BCM5700            0x71000000
+#define BGE_ASICREV_BCM5700_MASK       0x71000000
+#define BGE_IS_5700_Ax_Bx(rev) \
+       (((rev) & BGE_ASICREV_BCM5700_MASK) == BGE_ASICREV_BCM5700_A0 || \
+        ((rev) & BGE_ASICREV_BCM5700_MASK) == BGE_ASICREV_BCM5700_B0)
 
 /* PCI DMA Read/Write Control register */
 #define BGE_PCIDMARWCTL_MINDMA         0x000000FF



Home | Main Index | Thread Index | Old Index