Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/bonito Add some macros to decode the BONITO re...
details: https://anonhg.NetBSD.org/src/rev/bb5d231281b1
branches: trunk
changeset: 511735:bb5d231281b1
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jun 25 20:15:03 2001 +0000
description:
Add some macros to decode the BONITO revision register.
diffstat:
sys/arch/mips/bonito/bonitoreg.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 2aa545e31a0f -r bb5d231281b1 sys/arch/mips/bonito/bonitoreg.h
--- a/sys/arch/mips/bonito/bonitoreg.h Mon Jun 25 20:09:58 2001 +0000
+++ b/sys/arch/mips/bonito/bonitoreg.h Mon Jun 25 20:15:03 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bonitoreg.h,v 1.2 2001/06/22 03:58:03 thorpej Exp $ */
+/* $NetBSD: bonitoreg.h,v 1.3 2001/06/25 20:15:03 thorpej Exp $ */
/*
* Bonito Register Map
@@ -84,6 +84,9 @@
#define BONITO_PCILTIMER_BUSLATENCY_SHIFT 8
+#define BONITO_REV_FPGA(x) ((x) & 0x80)
+#define BONITO_REV_MAJOR(x) (((x) >> 4) & 0x7)
+#define BONITO_REV_MINOR(x) ((x) & 0xf)
/* 1. Bonito h/w Configuration */
Home |
Main Index |
Thread Index |
Old Index