diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-10-30 22:41:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-10-30 22:41:57 +0000 |
commit | 072b56c97e17e8e69ddab5a735b5297387a88a70 (patch) | |
tree | 22eaee09956502609c240ddff8a108d8733521f9 /sys/arch/alpha/tc/tc_3000_300.c | |
parent | b85b15782739220b5bf2563ccdc7ac9e256a31d2 (diff) |
Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed.
-Wall -Wstrict-prototypes -Wmissing-prototypes too.
Diffstat (limited to 'sys/arch/alpha/tc/tc_3000_300.c')
-rw-r--r-- | sys/arch/alpha/tc/tc_3000_300.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/arch/alpha/tc/tc_3000_300.c b/sys/arch/alpha/tc/tc_3000_300.c index dc7c0b41fb9..890bfa6fc7f 100644 --- a/sys/arch/alpha/tc/tc_3000_300.c +++ b/sys/arch/alpha/tc/tc_3000_300.c @@ -1,5 +1,5 @@ -/* $OpenBSD: tc_3000_300.c,v 1.4 1996/07/29 23:02:19 niklas Exp $ */ -/* $NetBSD: tc_3000_300.c,v 1.7.4.1 1996/06/05 00:39:06 cgd Exp $ */ +/* $OpenBSD: tc_3000_300.c,v 1.5 1996/10/30 22:41:16 niklas Exp $ */ +/* $NetBSD: tc_3000_300.c,v 1.12 1996/10/13 03:00:37 christos Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -29,6 +29,7 @@ */ #include <sys/param.h> +#include <sys/systm.h> #include <sys/device.h> #include <machine/autoconf.h> @@ -46,12 +47,12 @@ void tc_3000_300_intr_setup __P((void)); void tc_3000_300_intr_establish __P((struct device *, void *, tc_intrlevel_t, int (*)(void *), void *)); void tc_3000_300_intr_disestablish __P((struct device *, void *)); -void tc_3000_300_iointr __P((void *, int)); +void tc_3000_300_iointr __P((void *, unsigned long)); int tc_3000_300_intrnull __P((void *)); #define C(x) ((void *)(u_long)x) -#define KV(x) (phystok0seg(x)) +#define KV(x) (ALPHA_PHYS_TO_K0SEG(x)) /* * We have to read and modify the IOASIC registers directly, because @@ -184,18 +185,19 @@ tc_3000_300_intrnull(val) void tc_3000_300_iointr(framep, vec) void *framep; - int vec; + unsigned long vec; { u_int32_t tcir, ioasicir, ioasicimr; - int opt0intr, opt1intr, ifound; + int ifound; #ifdef DIAGNOSTIC int s; if (vec != 0x800) - panic("INVALID ASSUMPTION: vec %x, not 0x800", vec); + panic("INVALID ASSUMPTION: vec 0x%lx, not 0x800", vec); s = splhigh(); - if (s != PSL_IPL_IO) - panic("INVALID ASSUMPTION: IPL %d, not %d", s, PSL_IPL_IO); + if (s != ALPHA_PSL_IPL_IO) + panic("INVALID ASSUMPTION: IPL %d, not %d", s, + ALPHA_PSL_IPL_IO); splx(s); #endif |