diff options
author | briggs <briggs@cvs.openbsd.org> | 1997-03-30 21:53:28 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1997-03-30 21:53:28 +0000 |
commit | 1bd818735c926f6277d449f522f5477f2d2dcf02 (patch) | |
tree | a4578e14bd65fab4abfee4542e003834bf1dc5ad /sys/arch/mac68k/include/cpu.h | |
parent | e8cd4231cc31c280f819511e944c170c8d056181 (diff) |
An implementation of pieces of the Deferred Task Manager--required by
some video cards. Provided by Paul Goyette <paul@pgoyette.bdt.com>.
This introduces another simulated software interrupt.
Diffstat (limited to 'sys/arch/mac68k/include/cpu.h')
-rw-r--r-- | sys/arch/mac68k/include/cpu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/mac68k/include/cpu.h b/sys/arch/mac68k/include/cpu.h index e90f92203d9..43546893109 100644 --- a/sys/arch/mac68k/include/cpu.h +++ b/sys/arch/mac68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.15 1997/03/12 13:29:39 briggs Exp $ */ +/* $OpenBSD: cpu.h,v 1.16 1997/03/30 21:53:23 briggs Exp $ */ /* $NetBSD: cpu.h,v 1.45 1997/02/10 22:13:40 scottr Exp $ */ /* @@ -141,14 +141,19 @@ extern volatile u_int8_t ssir; #define SIR_CLOCK 0x02 #define SIR_SERIAL 0x04 +/* Mac-specific SSIR(s) */ +#define SIR_DTMGR 0x80 + #define siroff(mask) \ - __asm __volatile ( "andb %0,_ssir" : : "ir" (~(mask))); + __asm __volatile ( "andb %0,_ssir" : : "ir" (~(mask) & 0xff)); #define setsoftnet() \ __asm __volatile ( "orb %0,_ssir" : : "i" (SIR_NET)) #define setsoftclock() \ __asm __volatile ( "orb %0,_ssir" : : "i" (SIR_CLOCK)) #define setsoftserial() \ __asm __volatile ( "orb %0,_ssir" : : "i" (SIR_SERIAL)) +#define setsoftdtmgr() \ + __asm __volatile ( "orb %0,_ssir" : : "i" (SIR_DTMGR)) #define CPU_CONSDEV 1 #define CPU_MAXID 2 |