Module Name:    src
Committed By:   uwe
Date:           Thu Jul 30 03:19:34 UTC 2020

Modified Files:
        src/sys/arch/sh3/include: pmb.h

Log Message:
Add snprintb formats.  Fix PASCR name.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sh3/include/pmb.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/arch/sh3/include/pmb.h
diff -u src/sys/arch/sh3/include/pmb.h:1.1 src/sys/arch/sh3/include/pmb.h:1.2
--- src/sys/arch/sh3/include/pmb.h:1.1	Sat Jul 25 22:26:59 2020
+++ src/sys/arch/sh3/include/pmb.h	Thu Jul 30 03:19:33 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: pmb.h,v 1.1 2020/07/25 22:26:59 uwe Exp $ */
+/* $NetBSD: pmb.h,v 1.2 2020/07/30 03:19:33 uwe Exp $ */
 /*
  * Copyright (c) 2020 Valery Ushakov
  * All rights reserved.
@@ -44,10 +44,15 @@
 
 
 /* Physical address space control register (ST4-300) */
-#define ST40_PMB_PASCR			0xff000070
+#define ST40_PASCR			0xff000070
 #define   ST40_PASCR_UB_MASK		  0x0000000f
 #define   ST40_PASCR_SE			  0x80000000
 
+#define   ST40_PASCR_BITS			\
+		"\177\020"			\
+		"b\037"  "SE\0"			\
+		"f\0\04" "UB\0"
+
 
 /* Memory-mapped PMB */
 #define ST40_PMB_ENTRY			16
@@ -62,6 +67,11 @@
 #define   ST40_PMB_AA_VPN_MASK		  0xff000000
 #define   ST40_PMB_AA_VPN_SHIFT		  24
 
+#define   ST40_PMB_AA_BITS			\
+	  "\177\020"				\
+	  "f\030\010" "VPN\0"			\
+	  "b\010"     "V\0"
+
 
 /* PMB Data Array */
 #define   ST40_PMB_DA			0xf7100000
@@ -77,4 +87,19 @@
 #define   ST40_PMB_DA_PPN_MASK		0xff000000
 #define   ST40_PMB_DA_PPN_SHIFT		24
 
+#define   ST40_PMB_DA_BITS			\
+	  "\177\020"				\
+	  "f\030\010" "PPN\0"			\
+	  "b\010"     "V\0"			\
+	  "F\04\04"   "\0"			\
+	    ":\011"   "512M\0"			\
+	    ":\010"   "128M\0"			\
+	    ":\01"    "64M\0"			\
+	    ":\0"     "16M\0"			\
+	  "b\011"     "UB\0"			\
+	  "b\03"      "C\0"			\
+	  "F\0\01"    "\0"			\
+	    ":\01"    "WT\0"			\
+	    ":\0"     "CB\0"
+
 #endif	/* !_SH3_PMB_H_ */

Reply via email to