Source-Changes-HG archive

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

[src/nathanw_sa]: src/sys/arch/sun2/include Added.



details:   https://anonhg.NetBSD.org/src/rev/6f23fd505bef
branches:  nathanw_sa
changeset: 504603:6f23fd505bef
user:      fredette <fredette%NetBSD.org@localhost>
date:      Fri Apr 06 13:13:02 2001 +0000

description:
Added.

diffstat:

 sys/arch/sun2/include/ansi.h           |   3 +
 sys/arch/sun2/include/asm.h            |   3 +
 sys/arch/sun2/include/bswap.h          |   8 ++++
 sys/arch/sun2/include/cdefs.h          |   3 +
 sys/arch/sun2/include/eeprom.h         |  62 ++++++++++++++++++++++++++++++++++
 sys/arch/sun2/include/endian.h         |   3 +
 sys/arch/sun2/include/endian_machdep.h |   3 +
 sys/arch/sun2/include/frame.h          |   3 +
 sys/arch/sun2/include/int_types.h      |   3 +
 sys/arch/sun2/include/kcore.h          |   3 +
 sys/arch/sun2/include/leds.h           |  51 +++++++++++++++++++++++++++
 sys/arch/sun2/include/limits.h         |   3 +
 sys/arch/sun2/include/lock.h           |   4 ++
 sys/arch/sun2/include/pcb.h            |   3 +
 sys/arch/sun2/include/ptrace.h         |   3 +
 sys/arch/sun2/include/reg.h            |   3 +
 sys/arch/sun2/include/signal.h         |   3 +
 sys/arch/sun2/include/stdarg.h         |   3 +
 sys/arch/sun2/include/trap.h           |   3 +
 19 files changed, 170 insertions(+), 0 deletions(-)

diffs (246 lines):

diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/ansi.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/ansi.h      Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: ansi.h,v 1.1.10.2 2001/04/06 13:13:02 fredette Exp $   */
+
+#include <m68k/ansi.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/asm.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/asm.h       Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: asm.h,v 1.1.10.2 2001/04/06 13:13:03 fredette Exp $    */
+
+#include <m68k/asm.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/bswap.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/bswap.h     Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,8 @@
+/*     $NetBSD: bswap.h,v 1.1.10.2 2001/04/06 13:13:03 fredette Exp $   */
+
+#ifndef _MACHINE_BSWAP_H_
+#define        _MACHINE_BSWAP_H_
+
+#include <sys/bswap.h>
+
+#endif /* !_MACHINE_BSWAP_H_ */
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/cdefs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/cdefs.h     Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: cdefs.h,v 1.1.10.2 2001/04/06 13:13:03 fredette Exp $  */
+
+#include <m68k/cdefs.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/eeprom.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/eeprom.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,62 @@
+/*     $NetBSD: eeprom.h,v 1.1.10.2 2001/04/06 13:13:04 fredette Exp $ */
+
+/*-
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Matthew Fredette.
+ *
+ * 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.
+ */
+
+#ifndef        _MACHINE_EEPROM_H
+#define        _MACHINE_EEPROM_H
+
+/*
+ * The Sun2 doesn't have an EEPROM, but some common Sun code still
+ * wants to use this header file.  To keep that code clean, we fake as
+ * much as we need to, but always say that we couldn't map the EEPROM.  
+ */
+struct eeprom {
+       u_char  eeScreenSize;
+#define        EE_SCR_1152X900         0x00
+#define        EE_SCR_1024X1024        0x12
+#define EE_SCR_1600X1280       0x13
+#define EE_SCR_1440X1440       0x14
+       u_char  eeTtyCols;
+       u_char  eeTtyRows;
+};
+
+#ifdef _KERNEL
+#define eeprom_va NULL
+#endif
+
+#endif /* _MACHINE_EEPROM_H */
+
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/endian.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/endian.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: endian.h,v 1.1.10.2 2001/04/06 13:13:04 fredette Exp $ */
+
+#include <sys/endian.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/endian_machdep.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/endian_machdep.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: endian_machdep.h,v 1.1.10.2 2001/04/06 13:13:04 fredette Exp $ */
+
+#include <m68k/endian_machdep.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/frame.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/frame.h     Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: frame.h,v 1.1.10.2 2001/04/06 13:13:04 fredette Exp $  */
+
+#include <m68k/frame.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/int_types.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/int_types.h Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: int_types.h,v 1.1.10.2 2001/04/06 13:13:04 fredette Exp $      */
+
+#include <m68k/int_types.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/kcore.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/kcore.h     Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: kcore.h,v 1.1.10.2 2001/04/06 13:13:05 fredette Exp $  */
+
+#include <m68k/kcore.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/leds.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/leds.h      Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,51 @@
+/*     $NetBSD: leds.h,v 1.1.10.2 2001/04/06 13:13:05 fredette Exp $   */
+
+/*-
+ * Copyright (c) 1997 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Gordon W. Ross and der Mouse.
+ *
+ * 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.
+ */
+
+/* Data structure supported by /dev/leds */
+
+struct led_patterns {
+       u_char divisor;         /* divides 100 Hz clock (0 means 256). */
+       u_char patlen;          /* patterns to use (0 means 256). */
+       u_char pat[256];        /* the patters... */
+};
+
+#ifdef _KERNEL
+void   leds_init __P((void));
+void   leds_intr __P((void));
+int    leds_uio __P((struct uio *uio));
+#endif /* _KERNEL */
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/limits.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/limits.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: limits.h,v 1.1.10.2 2001/04/06 13:13:05 fredette Exp $ */
+
+#include <m68k/limits.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/lock.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/lock.h      Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,4 @@
+/*     $NetBSD: lock.h,v 1.1.10.2 2001/04/06 13:13:05 fredette Exp $   */
+
+/* Just use the common m68k definition */
+#include <m68k/lock.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/pcb.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/pcb.h       Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: pcb.h,v 1.1.10.2 2001/04/06 13:13:05 fredette Exp $    */
+
+#include <m68k/pcb.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/ptrace.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/ptrace.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: ptrace.h,v 1.1.10.2 2001/04/06 13:13:06 fredette Exp $ */
+
+#include <m68k/ptrace.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/reg.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/reg.h       Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: reg.h,v 1.1.10.2 2001/04/06 13:13:06 fredette Exp $    */
+
+#include <m68k/reg.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/signal.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/signal.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: signal.h,v 1.1.10.2 2001/04/06 13:13:06 fredette Exp $ */
+
+#include <m68k/signal.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/stdarg.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/stdarg.h    Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: stdarg.h,v 1.1.10.2 2001/04/06 13:13:06 fredette Exp $ */
+
+#include <m68k/stdarg.h>
diff -r df160a6af943 -r 6f23fd505bef sys/arch/sun2/include/trap.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sun2/include/trap.h      Fri Apr 06 13:13:02 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: trap.h,v 1.1.10.2 2001/04/06 13:13:06 fredette Exp $   */
+
+#include <m68k/trap.h>



Home | Main Index | Thread Index | Old Index