summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amiga/include')
-rw-r--r--sys/arch/amiga/include/cpu.h24
-rw-r--r--sys/arch/amiga/include/fbio.h42
-rw-r--r--sys/arch/amiga/include/kcore.h8
-rw-r--r--sys/arch/amiga/include/mtpr.h13
4 files changed, 83 insertions, 4 deletions
diff --git a/sys/arch/amiga/include/cpu.h b/sys/arch/amiga/include/cpu.h
index bdf3bc6c976..8ddb9c5b888 100644
--- a/sys/arch/amiga/include/cpu.h
+++ b/sys/arch/amiga/include/cpu.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: cpu.h,v 1.7 1996/05/02 07:57:23 niklas Exp $ */
-/* $NetBSD: cpu.h,v 1.31 1996/04/27 20:55:08 veego Exp $ */
+/* $OpenBSD: cpu.h,v 1.8 1996/05/29 10:15:50 niklas Exp $ */
+/* $NetBSD: cpu.h,v 1.35 1996/05/19 15:35:43 is Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -228,12 +228,27 @@ void configure __P((void));
int is_a1200 __P((void));
int is_a3000 __P((void));
int is_a4000 __P((void));
+#ifdef DRACO
+int is_draco __P((void));
+#endif
/*
* Prototypes from clock.c
*/
u_long clkread __P((void));
+#ifdef DRACO
+/*
+ * Prototypes from kbd.c
+ */
+void drkbdintr __P((void));
+
+/*
+ * Prototypes from drsc.c
+ */
+void drsc_handler __P((void));
+#endif
+
/*
* Prototypes from locore.s
*/
@@ -256,6 +271,7 @@ void proc_trampoline __P((void));
void savectx __P((struct pcb *));
void switch_exit __P((struct proc *));
void DCIAS __P((vm_offset_t));
+void DCIA __P((void));
void DCIS __P((void));
void DCIU __P((void));
void ICIA __P((void));
@@ -265,7 +281,7 @@ void TBIA __P((void));
void TBIS __P((vm_offset_t));
void TBIAS __P((void));
void TBIAU __P((void));
-#ifdef M68040
+#if defined(M68040) || defined(M68060)
void DCFA __P((void));
void DCFP __P((vm_offset_t));
void DCFL __P((vm_offset_t));
@@ -299,10 +315,12 @@ void physaccess __P((caddr_t, caddr_t, int, int));
void physunaccess __P((caddr_t, int));
void setredzone __P((u_int *, caddr_t));
+#ifdef GENERIC
/*
* Prototypes from swapgeneric.c:
*/
void setconf __P((void));
+#endif
/*
* Prototypes from pmap.c:
diff --git a/sys/arch/amiga/include/fbio.h b/sys/arch/amiga/include/fbio.h
new file mode 100644
index 00000000000..2f6dd29abbb
--- /dev/null
+++ b/sys/arch/amiga/include/fbio.h
@@ -0,0 +1,42 @@
+/* $NetBSD: fbio.h,v 1.1 1996/05/19 20:06:12 is Exp $ */
+
+/*
+ * Copyright (c) 1996 Ignatios Souvatzis
+ * 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 Ignatios Souvatzis
+ * for the NetBSD project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+ */
+
+/*
+ * FBIO compatible video control.
+ */
+#define FBVIDEO_OFF 0
+#define FBVIDEO_ON 1
+
+#define FBIOSVIDEO _IOW('F', 7, int)
+#define FBIOGVIDEO _IOR('F', 8, int)
diff --git a/sys/arch/amiga/include/kcore.h b/sys/arch/amiga/include/kcore.h
new file mode 100644
index 00000000000..e303289aaef
--- /dev/null
+++ b/sys/arch/amiga/include/kcore.h
@@ -0,0 +1,8 @@
+/* $NetBSD: kcore.h,v 1.1 1996/05/12 02:47:46 mhitch Exp $ */
+
+#ifndef _MACHINE_KCORE_H_
+#define _MACHINE_KCORE_H_
+
+#include <m68k/kcore.h>
+
+#endif
diff --git a/sys/arch/amiga/include/mtpr.h b/sys/arch/amiga/include/mtpr.h
index 914a48df312..5d85d6e656b 100644
--- a/sys/arch/amiga/include/mtpr.h
+++ b/sys/arch/amiga/include/mtpr.h
@@ -1,4 +1,4 @@
-/* $NetBSD: mtpr.h,v 1.9 1995/03/28 18:15:09 jtc Exp $ */
+/* $NetBSD: mtpr.h,v 1.10 1996/05/09 20:31:53 is Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -55,6 +55,9 @@
* <amiga/amiga/mtpr.h> ?
*/
#include <amiga/amiga/custom.h>
+#ifdef DRACO
+#include <amiga/amiga/drcustom.h>
+#endif
extern unsigned char ssir;
@@ -63,8 +66,16 @@ extern unsigned char ssir;
#define SIR_CBACK 0x4 /* walk the sicallback-chain */
#define siroff(x) ssir &= ~(x)
+#ifdef DRACO
+#define setsoftint() (is_draco()? (*draco_intfrc |= DRIRQ_SOFT) :\
+ (custom.intreq = INTF_SETCLR|INTF_SOFTINT))
+#define clrsoftint() (is_draco()? (*draco_intfrc &= ~DRIRQ_SOFT) :\
+ (custom.intreq = INTF_SOFTINT))
+#else
#define setsoftint() (custom.intreq = INTF_SETCLR|INTF_SOFTINT)
#define clrsoftint() (custom.intreq = INTF_SOFTINT)
+#endif
+
#define setsoftnet() (ssir |= SIR_NET, setsoftint())
#define setsoftclock() (ssir |= SIR_CLOCK, setsoftint())
#define setsoftcback() (ssir |= SIR_CBACK, setsoftint())