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 from arch/mips to arch/foo.
details: https://anonhg.NetBSD.org/src/rev/f95ca6ecbd67
branches: trunk
changeset: 484070:f95ca6ecbd67
user: soren <soren%NetBSD.org@localhost>
date: Fri Mar 24 21:30:58 2000 +0000
description:
Move sysctl definitions from arch/mips to arch/foo.
diffstat:
sys/arch/arc/include/cpu.h | 13 ++++++++++++-
sys/arch/cobalt/include/cpu.h | 20 ++++++++++++++------
sys/arch/hpcmips/include/cpu.h | 13 ++++++++++++-
sys/arch/mips/include/cpu.h | 17 +----------------
sys/arch/newsmips/include/cpu.h | 11 ++++++++++-
sys/arch/pmax/include/cpu.h | 15 ++++++++++++++-
6 files changed, 63 insertions(+), 26 deletions(-)
diffs (159 lines):
diff -r 4c7a974cf418 -r f95ca6ecbd67 sys/arch/arc/include/cpu.h
--- a/sys/arch/arc/include/cpu.h Fri Mar 24 21:25:32 2000 +0000
+++ b/sys/arch/arc/include/cpu.h Fri Mar 24 21:30:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.8 2000/02/22 11:26:02 soda Exp $ */
+/* $NetBSD: cpu.h,v 1.9 2000/03/24 21:30:58 soren Exp $ */
/* $OpenBSD: cpu.h,v 1.9 1998/01/28 13:46:10 pefo Exp $ */
#ifndef _ARC_CPU_H_
@@ -26,4 +26,15 @@
extern void mips3_TLBWriteIndexedVPS __P((u_int index, struct tlb *tlb));
#endif /* ! _LOCORE */
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_CONSDEV 1 /* dev_t: console terminal device */
+#define CPU_MAXID 2 /* number of valid machdep ids */
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "console_device", CTLTYPE_STRUCT }, \
+}
+
#endif /* _ARC_CPU_H_ */
diff -r 4c7a974cf418 -r f95ca6ecbd67 sys/arch/cobalt/include/cpu.h
--- a/sys/arch/cobalt/include/cpu.h Fri Mar 24 21:25:32 2000 +0000
+++ b/sys/arch/cobalt/include/cpu.h Fri Mar 24 21:30:58 2000 +0000
@@ -1,11 +1,19 @@
-/* $NetBSD: cpu.h,v 1.1 2000/03/19 23:07:46 soren Exp $ */
+/* $NetBSD: cpu.h,v 1.2 2000/03/24 21:30:59 soren Exp $ */
+
+#define MIPS3_INTERNAL_TIMER_INTERRUPT
#include <mips/cpu.h>
#include <mips/cpuregs.h>
-#define MIPS3_INTERNAL_TIMER_INTERRUPT
-#if 0
-#define MIPS_INT_MASK_CLOCK MIPS_INT_MASK_5
-#endif
+#define INT_MASK_REAL_DEV MIPS_HARD_INT_MASK
-#define INT_MASK_REAL_DEV MIPS_HARD_INT_MASK
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_BOOTSTRING 1 /* Command given to the firmware. */
+#define CPU_MAXID 2
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "bootstring", CTLTYPE_STRING }, \
+}
diff -r 4c7a974cf418 -r f95ca6ecbd67 sys/arch/hpcmips/include/cpu.h
--- a/sys/arch/hpcmips/include/cpu.h Fri Mar 24 21:25:32 2000 +0000
+++ b/sys/arch/hpcmips/include/cpu.h Fri Mar 24 21:30:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.2 1999/11/21 07:04:33 uch Exp $ */
+/* $NetBSD: cpu.h,v 1.3 2000/03/24 21:30:59 soren Exp $ */
#ifndef __HPCMIPS_CPU_H
#define __HPCMIPS_CPU_H
@@ -18,4 +18,15 @@
#define INT_MASK_REAL_DEV MIPS3_HARD_INT_MASK /* XXX */
#endif
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_CONSDEV 1 /* dev_t: console terminal device */
+#define CPU_MAXID 2 /* number of valid machdep ids */
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "console_device", CTLTYPE_STRUCT }, \
+}
+
#endif __HPCMIPS_CPU_H
diff -r 4c7a974cf418 -r f95ca6ecbd67 sys/arch/mips/include/cpu.h
--- a/sys/arch/mips/include/cpu.h Fri Mar 24 21:25:32 2000 +0000
+++ b/sys/arch/mips/include/cpu.h Fri Mar 24 21:30:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.34 2000/03/07 01:05:48 soren Exp $ */
+/* $NetBSD: cpu.h,v 1.35 2000/03/24 21:30:59 soren Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -45,21 +45,6 @@
* Exported definitions unique to NetBSD/mips cpu support.
*/
-/*
- * CTL_MACHDEP definitions.
- */
-#define CPU_CONSDEV 1 /* dev_t: console terminal device */
-#define CPU_BOOTED_KERNEL 2 /* string: booted kernel name */
-#define CPU_ROOT_DEVICE 3 /* string: root device name */
-#define CPU_MAXID 4 /* number of valid machdep ids */
-
-#define CTL_MACHDEP_NAMES { \
- { 0, 0 }, \
- { "console_device", CTLTYPE_STRUCT }, \
- { "booted_kernel", CTLTYPE_STRING }, \
- { "root_device", CTLTYPE_STRING }, \
-}
-
#ifdef _KERNEL
#ifndef _LOCORE
diff -r 4c7a974cf418 -r f95ca6ecbd67 sys/arch/newsmips/include/cpu.h
--- a/sys/arch/newsmips/include/cpu.h Fri Mar 24 21:25:32 2000 +0000
+++ b/sys/arch/newsmips/include/cpu.h Fri Mar 24 21:30:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.4 1999/12/22 05:55:26 tsubai Exp $ */
+/* $NetBSD: cpu.h,v 1.5 2000/03/24 21:31:00 soren Exp $ */
#ifndef _MACHINE_CPU_H_
#define _MACHINE_CPU_H_
@@ -19,3 +19,12 @@
#endif /* _LOCORE */
#endif /* _MACHINE_CPU_H_ */
+
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_MAXID 1 /* number of valid machdep ids */
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+}
diff -r 4c7a974cf418 -r f95ca6ecbd67 sys/arch/pmax/include/cpu.h
--- a/sys/arch/pmax/include/cpu.h Fri Mar 24 21:25:32 2000 +0000
+++ b/sys/arch/pmax/include/cpu.h Fri Mar 24 21:30:58 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.20 2000/01/09 15:34:42 ad Exp $ */
+/* $NetBSD: cpu.h,v 1.21 2000/03/24 21:31:00 soren Exp $ */
#ifndef _PMAX_CPU_H_
#define _PMAX_CPU_H_
@@ -14,4 +14,17 @@
#define INT_MASK_REAL_DEV (MIPS_HARD_INT_MASK &~ MIPS_INT_MASK_5)
#define INT_MASK_FPU_DEAL MIPS_INT_MASK_5
+/*
+ * CTL_MACHDEP definitions.
+ */
+#define CPU_CONSDEV 1 /* dev_t: console terminal device */
+#define CPU_BOOTED_KERNEL 2 /* string: booted kernel name */
+#define CPU_MAXID 3 /* number of valid machdep ids */
+
+#define CTL_MACHDEP_NAMES { \
+ { 0, 0 }, \
+ { "console_device", CTLTYPE_STRUCT }, \
+ { "booted_kernel", CTLTYPE_STRING }, \
+}
+
#endif /* !_PMAX_CPU_H_ */
Home |
Main Index |
Thread Index |
Old Index