Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcsh setup platid and config_hook.
details: https://anonhg.NetBSD.org/src/rev/e4a5c80f1b1b
branches: trunk
changeset: 502983:e4a5c80f1b1b
user: uch <uch%NetBSD.org@localhost>
date: Sun Jan 28 03:40:25 2001 +0000
description:
setup platid and config_hook.
diffstat:
sys/arch/hpcsh/conf/Makefile.platid | 5 +
sys/arch/hpcsh/conf/platid.def | 78 ++++++++++++++++++++
sys/arch/hpcsh/hpcsh/platid_mask.c | 116 ++++++++++++++++++++++++++++++
sys/arch/hpcsh/hpcsh/platid_name.c | 81 ++++++++++++++++++++
sys/arch/hpcsh/include/config_hook.h | 3 +
sys/arch/hpcsh/include/platid.h | 3 +
sys/arch/hpcsh/include/platid_generated.h | 111 ++++++++++++++++++++++++++++
sys/arch/hpcsh/include/platid_mask.h | 114 +++++++++++++++++++++++++++++
8 files changed, 511 insertions(+), 0 deletions(-)
diffs (truncated from 543 to 300 lines):
diff -r dbc529702639 -r e4a5c80f1b1b sys/arch/hpcsh/conf/Makefile.platid
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/conf/Makefile.platid Sun Jan 28 03:40:25 2001 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile.platid,v 1.1 2001/01/28 03:40:25 uch Exp $
+
+SUBDIR= ../../hpc/hpc/platid_gen
+
+.include <bsd.subdir.mk>
diff -r dbc529702639 -r e4a5c80f1b1b sys/arch/hpcsh/conf/platid.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/conf/platid.def Sun Jan 28 03:40:25 2001 +0000
@@ -0,0 +1,78 @@
+/* $NetBSD: platid.def,v 1.1 2001/01/28 03:40:25 uch Exp $ */
+
+/*-
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * CPU definitions
+ */
+CPU:
+
+SH {
+ 3 {
+ 7709
+ 7709A
+ }
+ 4 {
+ 7750
+ }
+}
+
+/*
+ * MACHINE definitions
+ */
+MACHINE:
+
+HP {
+ LX {
+ CPU=SH_3_7709
+ 620 --" HP620LX"
+ 620JP --" HP620LX (Japanese)"
+ }
+ JORNADA " Jornada" {
+ 6XX {
+ CPU=SH_3_7709A
+ 680
+ 680JP -"680 (Japanese)"
+ 690
+ 690JP -"690 (Japanese)"
+ }
+ }
+}
+
+LGE {
+ Phenom "Phenom" {
+ CPU=SH_3_7709
+ H220C -" H-220C"
+ }
+}
diff -r dbc529702639 -r e4a5c80f1b1b sys/arch/hpcsh/hpcsh/platid_mask.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/hpcsh/platid_mask.c Sun Jan 28 03:40:25 2001 +0000
@@ -0,0 +1,116 @@
+/* $NetBSD: platid_mask.c,v 1.1 2001/01/28 03:40:26 uch Exp $ */
+
+/*-
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/*
+ * Do not edit.
+ * This file is automatically generated by platid.awk.
+ */
+#include <machine/platid.h>
+#include <machine/platid_mask.h>
+platid_t platid_mask_CPU_SH = {{
+ PLATID_CPU_SH,
+ PLATID_WILD
+}};
+platid_t platid_mask_CPU_SH_3 = {{
+ PLATID_CPU_SH_3,
+ PLATID_WILD
+}};
+platid_t platid_mask_CPU_SH_3_7709 = {{
+ PLATID_CPU_SH_3_7709,
+ PLATID_WILD
+}};
+platid_t platid_mask_CPU_SH_3_7709A = {{
+ PLATID_CPU_SH_3_7709A,
+ PLATID_WILD
+}};
+platid_t platid_mask_CPU_SH_4 = {{
+ PLATID_CPU_SH_4,
+ PLATID_WILD
+}};
+platid_t platid_mask_CPU_SH_4_7750 = {{
+ PLATID_CPU_SH_4_7750,
+ PLATID_WILD
+}};
+platid_t platid_mask_MACH_HP = {{
+ PLATID_WILD,
+ PLATID_MACH_HP
+}};
+platid_t platid_mask_MACH_HP_LX = {{
+ PLATID_WILD,
+ PLATID_MACH_HP_LX
+}};
+platid_t platid_mask_MACH_HP_LX_620 = {{
+ PLATID_CPU_SH_3_7709,
+ PLATID_MACH_HP_LX_620
+}};
+platid_t platid_mask_MACH_HP_LX_620JP = {{
+ PLATID_CPU_SH_3_7709,
+ PLATID_MACH_HP_LX_620JP
+}};
+platid_t platid_mask_MACH_HP_JORNADA = {{
+ PLATID_WILD,
+ PLATID_MACH_HP_JORNADA
+}};
+platid_t platid_mask_MACH_HP_JORNADA_6XX = {{
+ PLATID_WILD,
+ PLATID_MACH_HP_JORNADA_6XX
+}};
+platid_t platid_mask_MACH_HP_JORNADA_680 = {{
+ PLATID_CPU_SH_3_7709A,
+ PLATID_MACH_HP_JORNADA_680
+}};
+platid_t platid_mask_MACH_HP_JORNADA_680JP = {{
+ PLATID_CPU_SH_3_7709A,
+ PLATID_MACH_HP_JORNADA_680JP
+}};
+platid_t platid_mask_MACH_HP_JORNADA_690 = {{
+ PLATID_CPU_SH_3_7709A,
+ PLATID_MACH_HP_JORNADA_690
+}};
+platid_t platid_mask_MACH_HP_JORNADA_690JP = {{
+ PLATID_CPU_SH_3_7709A,
+ PLATID_MACH_HP_JORNADA_690JP
+}};
+platid_t platid_mask_MACH_LGE = {{
+ PLATID_WILD,
+ PLATID_MACH_LGE
+}};
+platid_t platid_mask_MACH_LGE_PHENOM = {{
+ PLATID_WILD,
+ PLATID_MACH_LGE_PHENOM
+}};
+platid_t platid_mask_MACH_LGE_PHENOM_H220C = {{
+ PLATID_CPU_SH_3_7709,
+ PLATID_MACH_LGE_PHENOM_H220C
+}};
diff -r dbc529702639 -r e4a5c80f1b1b sys/arch/hpcsh/hpcsh/platid_name.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/hpcsh/platid_name.c Sun Jan 28 03:40:25 2001 +0000
@@ -0,0 +1,81 @@
+/* $NetBSD: platid_name.c,v 1.1 2001/01/28 03:40:26 uch Exp $ */
+
+/*-
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the NetBSD
+ * Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/*
+ * Do not edit.
+ * This file is automatically generated by platid.awk.
+ */
+#include <machine/platid.h>
+#include <machine/platid_mask.h>
+struct platid_name platid_name_table[] = {
+ { &platid_mask_CPU_SH,
+ TEXT("SH") },
+ { &platid_mask_CPU_SH_3,
+ TEXT("SH 3") },
+ { &platid_mask_CPU_SH_3_7709,
+ TEXT("SH 3 7709") },
+ { &platid_mask_CPU_SH_3_7709A,
+ TEXT("SH 3 7709A") },
+ { &platid_mask_CPU_SH_4,
+ TEXT("SH 4") },
+ { &platid_mask_CPU_SH_4_7750,
+ TEXT("SH 4 7750") },
+ { &platid_mask_MACH_HP,
+ TEXT("HP") },
+ { &platid_mask_MACH_HP_LX,
+ TEXT("HP LX") },
+ { &platid_mask_MACH_HP_LX_620,
+ TEXT(" HP620LX") },
+ { &platid_mask_MACH_HP_LX_620JP,
+ TEXT(" HP620LX (Japanese)") },
+ { &platid_mask_MACH_HP_JORNADA,
+ TEXT("HP Jornada") },
+ { &platid_mask_MACH_HP_JORNADA_6XX,
+ TEXT("HP Jornada 6XX") },
+ { &platid_mask_MACH_HP_JORNADA_680,
+ TEXT("HP Jornada 680") },
+ { &platid_mask_MACH_HP_JORNADA_680JP,
+ TEXT("HP Jornada680 (Japanese)") },
+ { &platid_mask_MACH_HP_JORNADA_690,
+ TEXT("HP Jornada 690") },
+ { &platid_mask_MACH_HP_JORNADA_690JP,
+ TEXT("HP Jornada690 (Japanese)") },
+ { &platid_mask_MACH_LGE,
+ TEXT("LGE") },
+ { &platid_mask_MACH_LGE_PHENOM,
+ TEXT("LGEPhenom") },
+ { &platid_mask_MACH_LGE_PHENOM_H220C,
+ TEXT("LGE H-220C") },
+};
+int platid_name_table_size = 19;
diff -r dbc529702639 -r e4a5c80f1b1b sys/arch/hpcsh/include/config_hook.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/include/config_hook.h Sun Jan 28 03:40:25 2001 +0000
@@ -0,0 +1,3 @@
Home |
Main Index |
Thread Index |
Old Index