summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/include/mtpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amiga/include/mtpr.h')
-rw-r--r--sys/arch/amiga/include/mtpr.h13
1 files changed, 12 insertions, 1 deletions
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())