Remove __P().

This commit is contained in:
tsutsui 2002-12-20 16:39:10 +00:00
parent 0687b33b99
commit 2cac3aae2d
5 changed files with 82 additions and 82 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.1 2000/10/04 16:26:43 tsutsui Exp $ */
/* $NetBSD: bus.h,v 1.2 2002/12/20 16:39:10 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -87,8 +87,8 @@ typedef int bus_space_tag_t;
typedef u_long bus_space_handle_t;
/*
* int bus_space_map __P((bus_space_tag_t t, bus_addr_t addr,
* bus_size_t size, int flags, bus_space_handle_t *bshp));
* int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
* bus_size_t size, int flags, bus_space_handle_t *bshp);
*
* Map a region of bus space.
*/
@ -97,56 +97,56 @@ typedef u_long bus_space_handle_t;
#define BUS_SPACE_MAP_LINEAR 0x02
#define BUS_SPACE_MAP_PREFETCHABLE 0x04
int bus_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *));
int bus_space_map(bus_space_tag_t, bus_addr_t, bus_size_t,
int, bus_space_handle_t *);
/*
* void bus_space_unmap __P((bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size));
* void bus_space_unmap(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size);
*
* Unmap a region of bus space.
*/
void bus_space_unmap __P((bus_space_tag_t, bus_space_handle_t, bus_size_t));
void bus_space_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t);
/*
* int bus_space_subregion __P((bus_space_tag_t t,
* int bus_space_subregion(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t offset, bus_size_t size,
* bus_space_handle_t *nbshp));
* bus_space_handle_t *nbshp);
*
* Get a new handle for a subregion of an already-mapped area of bus space.
*/
int bus_space_subregion __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp));
int bus_space_subregion(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp);
/*
* int bus_space_alloc __P((bus_space_tag_t t, bus_addr_t, rstart,
* int bus_space_alloc(bus_space_tag_t t, bus_addr_t, rstart,
* bus_addr_t rend, bus_size_t size, bus_size_t align,
* bus_size_t boundary, int flags, bus_addr_t *addrp,
* bus_space_handle_t *bshp));
* bus_space_handle_t *bshp);
*
* Allocate a region of bus space.
*/
int bus_space_alloc __P((bus_space_tag_t t, bus_addr_t rstart,
int bus_space_alloc(bus_space_tag_t t, bus_addr_t rstart,
bus_addr_t rend, bus_size_t size, bus_size_t align,
bus_size_t boundary, int cacheable, bus_addr_t *addrp,
bus_space_handle_t *bshp));
bus_space_handle_t *bshp);
/*
* int bus_space_free __P((bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size));
* int bus_space_free(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t size);
*
* Free a region of bus space.
*/
void bus_space_free __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size));
void bus_space_free(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size);
/*
* int news68k_bus_space_probe __P((bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t offset, int sz));
* int news68k_bus_space_probe(bus_space_tag_t t,
* bus_space_handle_t bsh, bus_size_t offset, int sz);
*
* Probe the bus at t/bsh/offset, using sz as the size of the load.
*
@ -154,12 +154,12 @@ void bus_space_free __P((bus_space_tag_t t, bus_space_handle_t bsh,
* machine-independent code.
*/
int news68k_bus_space_probe __P((bus_space_tag_t t,
bus_space_handle_t bsh, bus_size_t offset, int sz));
int news68k_bus_space_probe(bus_space_tag_t t,
bus_space_handle_t bsh, bus_size_t offset, int sz);
/*
* u_intN_t bus_space_read_N __P((bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset));
* u_intN_t bus_space_read_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset);
*
* Read a 1, 2, 4, or 8 byte quantity from bus space
* described by tag/handle/offset.
@ -179,9 +179,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_read_multi_N __P((bus_space_tag_t tag,
* void bus_space_read_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t *addr, size_t count));
* u_intN_t *addr, size_t count);
*
* Read `count' 1, 2, 4, or 8 byte quantities from bus space
* described by tag/handle/offset and copy into buffer provided.
@ -234,9 +234,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_read_region_N __P((bus_space_tag_t tag,
* void bus_space_read_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t *addr, size_t count));
* u_intN_t *addr, size_t count);
*
* Read `count' 1, 2, 4, or 8 byte quantities from bus space
* described by tag/handle and starting at `offset' and copy into
@ -290,9 +290,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_write_N __P((bus_space_tag_t tag,
* void bus_space_write_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t value));
* u_intN_t value);
*
* Write the 1, 2, 4, or 8 byte value `value' to bus space
* described by tag/handle/offset.
@ -312,9 +312,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_write_multi_N __P((bus_space_tag_t tag,
* void bus_space_write_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* const u_intN_t *addr, size_t count));
* const u_intN_t *addr, size_t count);
*
* Write `count' 1, 2, 4, or 8 byte quantities from the buffer
* provided to bus space described by tag/handle/offset.
@ -368,9 +368,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_write_region_N __P((bus_space_tag_t tag,
* void bus_space_write_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* const u_intN_t *addr, size_t count));
* const u_intN_t *addr, size_t count);
*
* Write `count' 1, 2, 4, or 8 byte quantities from the buffer provided
* to bus space described by tag/handle starting at `offset'.
@ -424,9 +424,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_set_multi_N __P((bus_space_tag_t tag,
* void bus_space_set_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset, u_intN_t val,
* size_t count));
* size_t count);
*
* Write the 1, 2, 4, or 8 byte value `val' to bus space described
* by tag/handle/offset `count' times.
@ -480,9 +480,9 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_set_region_N __P((bus_space_tag_t tag,
* void bus_space_set_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset, u_intN_t val,
* size_t count));
* size_t count);
*
* Write `count' 1, 2, 4, or 8 byte value `val' to bus space described
* by tag/handle starting at `offset'.
@ -536,10 +536,10 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#endif
/*
* void bus_space_copy_region_N __P((bus_space_tag_t tag,
* void bus_space_copy_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh1, bus_size_t off1,
* bus_space_handle_t bsh2, bus_size_t off2,
* bus_size_t count));
* bus_size_t count);
*
* Copy `count' 1, 2, 4, or 8 byte values from bus space starting
* at tag/bsh1/off1 to bus space starting at tag/bsh2/off2.
@ -547,10 +547,10 @@ int news68k_bus_space_probe __P((bus_space_tag_t t,
#define __NEWS68K_copy_region_N(BYTES) \
static __inline void __CONCAT(bus_space_copy_region_,BYTES) \
__P((bus_space_tag_t, \
bus_space_handle_t bsh1, bus_size_t off1, \
bus_space_handle_t bsh2, bus_size_t off2, \
bus_size_t count)); \
(bus_space_tag_t, \
bus_space_handle_t bsh1, bus_size_t off1, \
bus_space_handle_t bsh2, bus_size_t off2, \
bus_size_t count); \
\
static __inline void \
__CONCAT(bus_space_copy_region_,BYTES)(t, h1, o1, h2, o2, c) \
@ -585,9 +585,9 @@ __NEWS68K_copy_region_N(4)
/*
* Bus read/write barrier methods.
*
* void bus_space_barrier __P((bus_space_tag_t tag,
* void bus_space_barrier(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* bus_size_t len, int flags));
* bus_size_t len, int flags);
*
* Note: the 680x0 does not currently require barriers, but we must
* provide the flags to MI code.

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.12 2002/11/02 20:03:07 chs Exp $ */
/* $NetBSD: cpu.h,v 1.13 2002/12/20 16:39:11 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -188,43 +188,43 @@ extern u_int intiobase_phys, intiotop_phys;
extern u_int extiobase_phys, extiotop_phys;
extern u_int intrcnt[];
extern void (*vectab[]) __P((void));
extern void (*vectab[])(void);
struct frame;
struct fpframe;
struct pcb;
/* locore.s functions */
void m68881_save __P((struct fpframe *));
void m68881_restore __P((struct fpframe *));
void m68881_save(struct fpframe *);
void m68881_restore(struct fpframe *);
int suline __P((caddr_t, caddr_t));
void savectx __P((struct pcb *));
void switch_exit __P((struct proc *));
void proc_trampoline __P((void));
void loadustp __P((int));
void badtrap __P((void));
void intrhand_vectored __P((void));
int getsr __P((void));
int suline(caddr_t, caddr_t);
void savectx(struct pcb *);
void switch_exit(struct proc *);
void proc_trampoline(void);
void loadustp(int);
void badtrap(void);
void intrhand_vectored(void);
int getsr(void);
void doboot __P((int))
void doboot(int)
__attribute__((__noreturn__));
void nmihand __P((struct frame *));
void ecacheon __P((void));
void ecacheoff __P((void));
void nmihand(struct frame *);
void ecacheon(void);
void ecacheoff(void);
/* machdep.c functions */
int badaddr __P((caddr_t, int));
int badbaddr __P((caddr_t));
int badaddr(caddr_t, int);
int badbaddr(caddr_t);
/* sys_machdep.c functions */
int cachectl1 __P((unsigned long, vaddr_t, size_t, struct proc *));
int cachectl1(unsigned long, vaddr_t, size_t, struct proc *);
/* vm_machdep.c functions */
void physaccess __P((caddr_t, caddr_t, int, int));
void physunaccess __P((caddr_t, int));
int kvtop __P((caddr_t));
void physaccess(caddr_t, caddr_t, int, int);
void physunaccess(caddr_t, int);
int kvtop(caddr_t);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.7 2001/04/13 23:30:01 thorpej Exp $ */
/* $NetBSD: intr.h,v 1.8 2002/12/20 16:39:11 tsutsui Exp $ */
/*
*
@ -84,8 +84,8 @@ extern volatile u_char *ctrl_int2;
#define setsoftnet() setsoftint(1 << SIR_NET)
#define setsoftclock() setsoftint(1 << SIR_CLOCK)
u_char allocate_sir __P((void (*)(void *), void *));
void init_sir __P((void));
u_char allocate_sir(void (*)(void *), void *);
void init_sir(void);
#endif /* _KERNEL */
#endif /* _NEWS68K_INTR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.6 2002/11/03 19:56:32 chs Exp $ */
/* $NetBSD: param.h,v 1.7 2002/12/20 16:39:11 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -88,7 +88,7 @@
#define delay(us) _delay((us) << 8)
#define DELAY(us) delay(us)
void _delay __P((u_int));
void _delay(u_int);
#endif /* _KERNEL && !_LOCORE */
#if defined(_KERNEL_OPT)

View File

@ -1,4 +1,4 @@
/* $NetBSD: z8530var.h,v 1.1 1999/12/09 14:53:14 tsutsui Exp $ */
/* $NetBSD: z8530var.h,v 1.2 2002/12/20 16:39:11 tsutsui Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -62,12 +62,12 @@ struct zsc_softc {
* These could be inlines, but with the delay, speed is moot.
*/
u_char zs_read_reg __P((struct zs_chanstate *cs, u_char reg));
u_char zs_read_csr __P((struct zs_chanstate *cs));
u_char zs_read_data __P((struct zs_chanstate *cs));
u_char zs_read_reg(struct zs_chanstate *cs, u_char reg);
u_char zs_read_csr(struct zs_chanstate *cs);
u_char zs_read_data(struct zs_chanstate *cs);
void zs_write_reg __P((struct zs_chanstate *cs, u_char reg, u_char val));
void zs_write_csr __P((struct zs_chanstate *cs, u_char val));
void zs_write_data __P((struct zs_chanstate *cs, u_char val));
void zs_write_reg(struct zs_chanstate *cs, u_char reg, u_char val);
void zs_write_csr(struct zs_chanstate *cs, u_char val);
void zs_write_data(struct zs_chanstate *cs, u_char val);
#define splzs() splserial()