diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 01:27:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 01:27:20 +0000 |
commit | 8327d0774703553db5e1a41a04bfdf4b1797c2ce (patch) | |
tree | ac9a52bace179e17769651fb9f805070d78abe5f /sys/arch/mvmeppc/dev/openpic.c | |
parent | 7b2c79b5895287d37f0c4e3adfc396eb7a6c03fb (diff) |
First round of __P removal in sys
Diffstat (limited to 'sys/arch/mvmeppc/dev/openpic.c')
-rw-r--r-- | sys/arch/mvmeppc/dev/openpic.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sys/arch/mvmeppc/dev/openpic.c b/sys/arch/mvmeppc/dev/openpic.c index 50130548f12..a01dc38ebe7 100644 --- a/sys/arch/mvmeppc/dev/openpic.c +++ b/sys/arch/mvmeppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.6 2001/11/06 22:45:54 miod Exp $ */ +/* $OpenBSD: openpic.c,v 1.7 2002/03/14 01:26:41 millert Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -85,7 +85,7 @@ static int virq_max = 0; struct evcnt evirq[ICU_LEN]; -static int fakeintr __P((void *)); +static int fakeintr(void *); static char *intr_typename(int type); static void intr_calculatemasks(); static __inline int cntlzw(int x); @@ -97,29 +97,29 @@ static struct raven_reg *ravenp = (struct raven_reg *)NULL; #define HWIRQ_MAX 27 #define HWIRQ_MASK 0x0fffffff -static __inline u_int openpic_read __P((int)); -static __inline void openpic_write __P((int, u_int)); -void openpic_enable_irq __P((int, int)); -void openpic_disable_irq __P((int)); +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_set_priority __P((int, int)); -void openpic_set_vec_pri __P((int, int)); -static __inline int openpic_read_irq __P((int)); -static __inline void openpic_eoi __P((int)); - -void i8259_init __P((void)); -int i8259_intr __P((void)); -void i8259_enable_irq __P((int, int)); -void i8259_disable_irq __P((int)); +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 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) __P((void *)), void *ih_arg, char *name); + int (*ih_fun)(void *), void *ih_arg, char *name); struct openpic_softc { struct device sc_dev; }; -int openpic_match __P((struct device *parent, void *cf, void *aux)); -void openpic_attach __P((struct device *, struct device *, void *)); +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(); @@ -176,11 +176,11 @@ typedef int mac_intr_handle_t; typedef void *(intr_establish_t) __P((void *, mac_intr_handle_t, int, int, int (*func)(void *), void *, char *)); -typedef void (intr_disestablish_t) __P((void *, void *)); +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) __P((void *)), void *ih_arg, char *name); + int (*ih_fun)(void *), void *ih_arg, char *name); void openpic_intr_disestablish( void *lcp, void *arg); void openpic_collect_preconf_intr(); @@ -279,7 +279,7 @@ void * lcv; int irq; int type; int level; -int (*ih_fun) __P((void *)); +int (*ih_fun)(void *); void *ih_arg; char *name; { @@ -365,7 +365,7 @@ void * lcv; int irq; int type; int level; -int (*ih_fun) __P((void *)); +int (*ih_fun)(void *); void *ih_arg; char *name; { |