Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch move sysctl definitions into ${MACHINE}/include/cpu.h
details: https://anonhg.NetBSD.org/src/rev/1aeeb0e97c8f
branches: trunk
changeset: 479809:1aeeb0e97c8f
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Dec 21 22:19:16 1999 +0000
description:
move sysctl definitions into ${MACHINE}/include/cpu.h
diffstat:
sys/arch/evbsh3/include/cpu.h | 24 +++++++++++++++++++++++-
sys/arch/mmeye/include/cpu.h | 29 ++++++++++++++++++++++++++++-
sys/arch/sh3/include/cpu.h | 24 +-----------------------
3 files changed, 52 insertions(+), 25 deletions(-)
diffs (107 lines):
diff -r 4e9d1fe7399c -r 1aeeb0e97c8f sys/arch/evbsh3/include/cpu.h
--- a/sys/arch/evbsh3/include/cpu.h Tue Dec 21 22:06:04 1999 +0000
+++ b/sys/arch/evbsh3/include/cpu.h Tue Dec 21 22:19:16 1999 +0000
@@ -1,7 +1,29 @@
-/* $NetBSD: cpu.h,v 1.1 1999/09/13 10:30:30 itojun Exp $ */
+/* $NetBSD: cpu.h,v 1.2 1999/12/21 22:19:17 msaitoh Exp $ */
#ifndef _EVBSH3_CPU_H_
#define _EVBSH3_CPU_H_
#include <sh3/cpu.h>
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_CONSDEV 1 /* dev_t: console terminal device */
+#define CPU_NKPDE 2 /* int: number of kernel PDEs */
+#define CPU_BOOTED_KERNEL 3 /* string: booted kernel name */
+#define CPU_SETPRIVPROC 4 /* set current proc to piviledged proc
+ */
+#define CPU_DEBUGMODE 5 /* set debug mode */
+#define CPU_LOADANDRESET 6 /* load kernel image and reset */
+#define CPU_MAXID 7 /* number of valid machdep ids */
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "console_device", CTLTYPE_STRUCT }, \
+ { "nkpde", CTLTYPE_INT }, \
+ { "booted_kernel", CTLTYPE_STRING }, \
+ { "set_priv_proc", CTLTYPE_INT }, \
+ { "debug_mode", CTLTYPE_INT }, \
+ { "load_and_reset", CTLTYPE_INT }, \
+}
+
#endif /* _EVBSH3_CPU_H_ */
diff -r 4e9d1fe7399c -r 1aeeb0e97c8f sys/arch/mmeye/include/cpu.h
--- a/sys/arch/mmeye/include/cpu.h Tue Dec 21 22:06:04 1999 +0000
+++ b/sys/arch/mmeye/include/cpu.h Tue Dec 21 22:19:16 1999 +0000
@@ -1,3 +1,30 @@
-/* $NetBSD: cpu.h,v 1.1 1999/09/13 10:30:54 itojun Exp $ */
+/* $NetBSD: cpu.h,v 1.2 1999/12/21 22:19:18 msaitoh Exp $ */
+
+#ifndef _MMEYE_CPU_H_
+#define _MMEYE_CPU_H_
#include <sh3/cpu.h>
+
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_CONSDEV 1 /* dev_t: console terminal device */
+#define CPU_NKPDE 2 /* int: number of kernel PDEs */
+#define CPU_BOOTED_KERNEL 3 /* string: booted kernel name */
+#define CPU_SETPRIVPROC 4 /* set current proc to piviledged proc
+ */
+#define CPU_DEBUGMODE 5 /* set debug mode */
+#define CPU_LOADANDRESET 6 /* load kernel image and reset */
+#define CPU_MAXID 7 /* number of valid machdep ids */
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "console_device", CTLTYPE_STRUCT }, \
+ { "nkpde", CTLTYPE_INT }, \
+ { "booted_kernel", CTLTYPE_STRING }, \
+ { "set_priv_proc", CTLTYPE_INT }, \
+ { "debug_mode", CTLTYPE_INT }, \
+ { "load_and_reset", CTLTYPE_INT }, \
+}
+
+#endif /* _MMEYE_CPU_H_ */
diff -r 4e9d1fe7399c -r 1aeeb0e97c8f sys/arch/sh3/include/cpu.h
--- a/sys/arch/sh3/include/cpu.h Tue Dec 21 22:06:04 1999 +0000
+++ b/sys/arch/sh3/include/cpu.h Tue Dec 21 22:19:16 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.3 1999/12/21 18:21:53 msaitoh Exp $ */
+/* $NetBSD: cpu.h,v 1.4 1999/12/21 22:19:16 msaitoh Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -183,28 +183,6 @@
#endif /* _KERNEL */
-/*
- * CTL_MACHDEP definitions.
- */
-#define CPU_CONSDEV 1 /* dev_t: console terminal device */
-#define CPU_NKPDE 2 /* int: number of kernel PDEs */
-#define CPU_BOOTED_KERNEL 3 /* string: booted kernel name */
-#define CPU_SETPRIVPROC 4 /* set current proc to piviledged proc
- */
-#define CPU_DEBUGMODE 5 /* set debug mode */
-#define CPU_LOADANDRESET 6 /* load kernel image and reset */
-#define CPU_MAXID 7 /* number of valid machdep ids */
-
-#define CTL_MACHDEP_NAMES { \
- { 0, 0 }, \
- { "console_device", CTLTYPE_STRUCT }, \
- { "nkpde", CTLTYPE_INT }, \
- { "booted_kernel", CTLTYPE_STRING }, \
- { "set_priv_proc", CTLTYPE_INT }, \
- { "debug_mode", CTLTYPE_INT }, \
- { "load_and_reset", CTLTYPE_INT }, \
-}
-
#include <machine/sh3.h>
Home |
Main Index |
Thread Index |
Old Index