Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/news68k/include Remove __P().



details:   https://anonhg.NetBSD.org/src/rev/54e85e1b8ead
branches:  trunk
changeset: 540619:54e85e1b8ead
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Dec 20 16:39:10 2002 +0000

description:
Remove __P().

diffstat:

 sys/arch/news68k/include/bus.h      |  96 ++++++++++++++++++------------------
 sys/arch/news68k/include/cpu.h      |  44 ++++++++--------
 sys/arch/news68k/include/intr.h     |   6 +-
 sys/arch/news68k/include/param.h    |   4 +-
 sys/arch/news68k/include/z8530var.h |  14 ++--
 5 files changed, 82 insertions(+), 82 deletions(-)

diffs (truncated from 377 to 300 lines):

diff -r ebded90e5b89 -r 54e85e1b8ead sys/arch/news68k/include/bus.h
--- a/sys/arch/news68k/include/bus.h    Fri Dec 20 16:23:46 2002 +0000
+++ b/sys/arch/news68k/include/bus.h    Fri Dec 20 16:39:10 2002 +0000
@@ -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 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 @@
 #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 @@
  * 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 @@
 #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 @@
 #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 @@
 #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 @@
 #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 @@
 #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 @@
 #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 @@
 #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 @@
 #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 @@
 
 #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 @@
 /*
  * 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.
diff -r ebded90e5b89 -r 54e85e1b8ead sys/arch/news68k/include/cpu.h
--- a/sys/arch/news68k/include/cpu.h    Fri Dec 20 16:23:46 2002 +0000
+++ b/sys/arch/news68k/include/cpu.h    Fri Dec 20 16:39:10 2002 +0000
@@ -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 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 *);



Home | Main Index | Thread Index | Old Index