diff options
Diffstat (limited to 'sys/arch/mvmeppc/dev/openpic.c')
-rw-r--r-- | sys/arch/mvmeppc/dev/openpic.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/sys/arch/mvmeppc/dev/openpic.c b/sys/arch/mvmeppc/dev/openpic.c index d987ba026a2..d2fc263db0c 100644 --- a/sys/arch/mvmeppc/dev/openpic.c +++ b/sys/arch/mvmeppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.8 2002/03/14 03:15:58 millert Exp $ */ +/* $OpenBSD: openpic.c,v 1.9 2002/06/08 15:49:52 miod Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -87,7 +87,7 @@ struct evcnt evirq[ICU_LEN]; static int fakeintr(void *); static char *intr_typename(int type); -static void intr_calculatemasks(); +static void intr_calculatemasks(void); static __inline int cntlzw(int x); static int mapirq(int irq); void openpic_enable_irq_mask(int irq_mask); @@ -101,18 +101,20 @@ static __inline u_int openpic_read(int); static __inline void openpic_write(int, u_int); void openpic_enable_irq(int, int); void openpic_disable_irq(int); -void openpic_init(); +void openpic_init(void); void openpic_set_priority(int, int); void openpic_set_vec_pri(int, int); static __inline int openpic_read_irq(int); static __inline void openpic_eoi(int); +void openpic_initirq(int, int, int, int, int); void i8259_init(void); int i8259_intr(void); void i8259_enable_irq(int, int); void i8259_disable_irq(int); -void *i8259_intr_establish( void * lcv, int irq, int type, int level, - int (*ih_fun)(void *), void *ih_arg, char *name); +void *i8259_intr_establish(void *, int, int, int, int (*)(void *), void *, + char *); +void i8259_set_irq_mask(void); struct openpic_softc { struct device sc_dev; @@ -120,8 +122,8 @@ struct openpic_softc { int openpic_match(struct device *parent, void *cf, void *aux); void openpic_attach(struct device *, struct device *, void *); -void openpic_do_pending_int(); -void ext_intr_openpic(); +void openpic_do_pending_int(void); +void ext_intr_openpic(void); struct cfattach openpic_ca = { sizeof(struct openpic_softc), @@ -174,15 +176,15 @@ static int i8259_dummy (void *arg); typedef int mac_intr_handle_t; -typedef void *(intr_establish_t)(void *, mac_intr_handle_t, - int, int, int (*func)(void *), void *, char *); -typedef void (intr_disestablish_t)(void *, void *); +typedef void *(intr_establish_t)(void *, mac_intr_handle_t, + int, int, int (*)(void *), void *, char *); +typedef void (intr_disestablish_t)(void *, void *); static vaddr_t openpic_base; -void * openpic_intr_establish( void * lcv, int irq, int type, int level, - int (*ih_fun)(void *), void *ih_arg, char *name); -void openpic_intr_disestablish( void *lcp, void *arg); -void openpic_collect_preconf_intr(); +void * openpic_intr_establish(void *, int, int, int, int (*)(void *), void *, + char *); +void openpic_intr_disestablish(void *, void *); +void openpic_collect_preconf_intr(void); void openpic_attach(parent, self, aux) |