Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/include add SH4 Processor Version Register



details:   https://anonhg.NetBSD.org/src/rev/f0fe132db120
branches:  trunk
changeset: 526151:f0fe132db120
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Apr 26 11:56:02 2002 +0000

description:
add SH4 Processor Version Register

diffstat:

 sys/arch/sh3/include/cpu.h |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r caf8f1f1480b -r f0fe132db120 sys/arch/sh3/include/cpu.h
--- a/sys/arch/sh3/include/cpu.h        Fri Apr 26 10:22:53 2002 +0000
+++ b/sys/arch/sh3/include/cpu.h        Fri Apr 26 11:56:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.26 2002/03/24 18:04:40 uch Exp $     */
+/*     $NetBSD: cpu.h,v 1.27 2002/04/26 11:56:02 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -182,6 +182,17 @@
  P1:   (void)0;                                                        \
 } while (/*CONSTCOND*/0)
 
+#if defined(SH4)
+/* SH4 Processor Version Register */
+#define        SH4_PVR_ADDR    0xff000030      /* P4  address */
+#define        SH4_PVR         (*(volatile unsigned int *) SH4_PVR_ADDR)
+
+#define        SH4_PVR_MASK    0xffffff00
+#define        SH4_PVR_SH7750  0x04020500      /* SH7750  */
+#define        SH4_PVR_SH7750S 0x04020600      /* SH7750S */
+#define        SH4_PVR_SH7751  0x04110000      /* SH7751  */
+#endif
+
 /*
  * pull in #defines for kinds of processors
  */



Home | Main Index | Thread Index | Old Index