ANSI'ify function declarations.
This commit is contained in:
parent
70dc4d8718
commit
e8d65fec30
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: shared_intr.c,v 1.13 2000/03/19 01:46:18 thorpej Exp $ */
|
||||
/* $NetBSD: shared_intr.c,v 1.14 2000/06/04 05:27:45 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: shared_intr.c,v 1.13 2000/03/19 01:46:18 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: shared_intr.c,v 1.14 2000/06/04 05:27:45 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -47,8 +47,7 @@ __KERNEL_RCSID(0, "$NetBSD: shared_intr.c,v 1.13 2000/03/19 01:46:18 thorpej Exp
|
||||
static const char *intr_typename __P((int));
|
||||
|
||||
static const char *
|
||||
intr_typename(type)
|
||||
int type;
|
||||
intr_typename(int type)
|
||||
{
|
||||
|
||||
switch (type) {
|
||||
@ -67,8 +66,7 @@ intr_typename(type)
|
||||
}
|
||||
|
||||
struct alpha_shared_intr *
|
||||
alpha_shared_intr_alloc(n)
|
||||
unsigned int n;
|
||||
alpha_shared_intr_alloc(unsigned int n)
|
||||
{
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int i;
|
||||
@ -91,9 +89,7 @@ alpha_shared_intr_alloc(n)
|
||||
}
|
||||
|
||||
int
|
||||
alpha_shared_intr_dispatch(intr, num)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
alpha_shared_intr_dispatch(struct alpha_shared_intr *intr, unsigned int num)
|
||||
{
|
||||
struct alpha_shared_intrhand *ih;
|
||||
int rv, handled;
|
||||
@ -119,13 +115,8 @@ alpha_shared_intr_dispatch(intr, num)
|
||||
}
|
||||
|
||||
void *
|
||||
alpha_shared_intr_establish(intr, num, type, level, fn, arg, basename)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
int type, level;
|
||||
int (*fn) __P((void *));
|
||||
void *arg;
|
||||
const char *basename;
|
||||
alpha_shared_intr_establish(struct alpha_shared_intr *intr, unsigned int num,
|
||||
int type, int level, int (*fn)(void *), void *arg, const char *basename)
|
||||
{
|
||||
struct alpha_shared_intrhand *ih;
|
||||
|
||||
@ -183,10 +174,8 @@ alpha_shared_intr_establish(intr, num, type, level, fn, arg, basename)
|
||||
}
|
||||
|
||||
void
|
||||
alpha_shared_intr_disestablish(intr, cookie, basename)
|
||||
struct alpha_shared_intr *intr;
|
||||
void *cookie;
|
||||
const char *basename;
|
||||
alpha_shared_intr_disestablish(struct alpha_shared_intr *intr, void *cookie,
|
||||
const char *basename)
|
||||
{
|
||||
struct alpha_shared_intrhand *ih = cookie;
|
||||
unsigned int num = ih->ih_num;
|
||||
@ -199,28 +188,23 @@ alpha_shared_intr_disestablish(intr, cookie, basename)
|
||||
}
|
||||
|
||||
int
|
||||
alpha_shared_intr_get_sharetype(intr, num)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
alpha_shared_intr_get_sharetype(struct alpha_shared_intr *intr,
|
||||
unsigned int num)
|
||||
{
|
||||
|
||||
return (intr[num].intr_sharetype);
|
||||
}
|
||||
|
||||
int
|
||||
alpha_shared_intr_isactive(intr, num)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
alpha_shared_intr_isactive(struct alpha_shared_intr *intr, unsigned int num)
|
||||
{
|
||||
|
||||
return (intr[num].intr_q.tqh_first != NULL);
|
||||
}
|
||||
|
||||
void
|
||||
alpha_shared_intr_set_dfltsharetype(intr, num, newdfltsharetype)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
int newdfltsharetype;
|
||||
alpha_shared_intr_set_dfltsharetype(struct alpha_shared_intr *intr,
|
||||
unsigned int num, int newdfltsharetype)
|
||||
{
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
@ -233,10 +217,8 @@ alpha_shared_intr_set_dfltsharetype(intr, num, newdfltsharetype)
|
||||
}
|
||||
|
||||
void
|
||||
alpha_shared_intr_set_maxstrays(intr, num, newmaxstrays)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
int newmaxstrays;
|
||||
alpha_shared_intr_set_maxstrays(struct alpha_shared_intr *intr,
|
||||
unsigned int num, int newmaxstrays)
|
||||
{
|
||||
int s = splhigh();
|
||||
intr[num].intr_maxstrays = newmaxstrays;
|
||||
@ -245,10 +227,8 @@ alpha_shared_intr_set_maxstrays(intr, num, newmaxstrays)
|
||||
}
|
||||
|
||||
void
|
||||
alpha_shared_intr_stray(intr, num, basename)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
const char *basename;
|
||||
alpha_shared_intr_stray(struct alpha_shared_intr *intr, unsigned int num,
|
||||
const char *basename)
|
||||
{
|
||||
|
||||
intr[num].intr_nstrays++;
|
||||
@ -263,19 +243,16 @@ alpha_shared_intr_stray(intr, num, basename)
|
||||
}
|
||||
|
||||
void
|
||||
alpha_shared_intr_set_private(intr, num, v)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
void *v;
|
||||
alpha_shared_intr_set_private(struct alpha_shared_intr *intr,
|
||||
unsigned int num, void *v)
|
||||
{
|
||||
|
||||
intr[num].intr_private = v;
|
||||
}
|
||||
|
||||
void *
|
||||
alpha_shared_intr_get_private(intr, num)
|
||||
struct alpha_shared_intr *intr;
|
||||
unsigned int num;
|
||||
alpha_shared_intr_get_private(struct alpha_shared_intr *intr,
|
||||
unsigned int num)
|
||||
{
|
||||
|
||||
return (intr[num].intr_private);
|
||||
|
Loading…
x
Reference in New Issue
Block a user