Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/include ANSIfy.



details:   https://anonhg.NetBSD.org/src/rev/3df6e90198ce
branches:  trunk
changeset: 514991:3df6e90198ce
user:      uch <uch%NetBSD.org@localhost>
date:      Sat Sep 15 15:04:45 2001 +0000

description:
ANSIfy.

diffstat:

 sys/arch/hpcmips/include/autoconf.h  |    6 +-
 sys/arch/hpcmips/include/bus.h       |  275 +++++++++++++++-------------------
 sys/arch/hpcmips/include/disklabel.h |    4 +-
 sys/arch/hpcmips/include/intr.h      |   16 +-
 sys/arch/hpcmips/include/param.h     |    4 +-
 sys/arch/hpcmips/include/sysconf.h   |   24 +-
 6 files changed, 147 insertions(+), 182 deletions(-)

diffs (truncated from 616 to 300 lines):

diff -r ba0b00eb7586 -r 3df6e90198ce sys/arch/hpcmips/include/autoconf.h
--- a/sys/arch/hpcmips/include/autoconf.h       Sat Sep 15 14:55:38 2001 +0000
+++ b/sys/arch/hpcmips/include/autoconf.h       Sat Sep 15 15:04:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.h,v 1.1.1.1 1999/09/16 12:23:21 takemura Exp $        */
+/*     $NetBSD: autoconf.h,v 1.2 2001/09/15 15:04:45 uch Exp $ */
 
 /*
  * Copyright (c) 1999, by UCHIYAMA Yasushi
@@ -30,5 +30,5 @@
         bus_space_tag_t ma_iot;    
 };
 
-int    badaddr __P((void *, u_int));
-void   makebootdev __P((char *cp));
+int    badaddr(void *, u_int);
+void   makebootdev(char *);
diff -r ba0b00eb7586 -r 3df6e90198ce sys/arch/hpcmips/include/bus.h
--- a/sys/arch/hpcmips/include/bus.h    Sat Sep 15 14:55:38 2001 +0000
+++ b/sys/arch/hpcmips/include/bus.h    Sat Sep 15 15:04:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.11 2001/07/19 15:32:13 thorpej Exp $   */
+/*     $NetBSD: bus.h,v 1.12 2001/09/15 15:04:45 uch Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  * Utility macros; do not use outside this file.
  */
 #define        __PB_TYPENAME_PREFIX(BITS)      ___CONCAT(u_int,BITS)
-#define        __PB_TYPENAME(BITS)             ___CONCAT(__PB_TYPENAME_PREFIX(BITS),_t)
+#define        __PB_TYPENAME(BITS)     ___CONCAT(__PB_TYPENAME_PREFIX(BITS),_t)
 
 /*
  * Bus address and size types
@@ -89,8 +89,8 @@
 /*
  * Initialize extent.
  */
-void hpcmips_init_bus_space_extent __P((bus_space_tag_t));
-bus_space_tag_t hpcmips_alloc_bus_space_tag __P((void));
+void hpcmips_init_bus_space_extent(bus_space_tag_t);
+bus_space_tag_t hpcmips_alloc_bus_space_tag(void);
 
 struct hpcmips_bus_space {
     char t_name[16];  /* bus name */
@@ -101,8 +101,8 @@
 
 
 /*
- *     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.
  */
@@ -111,56 +111,53 @@
 #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, bus_space_handle_t,
+           bus_size_t, bus_size_t, bus_space_handle_t *);
 
 /*
- *     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,
-           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));
+int    bus_space_alloc(bus_space_tag_t, bus_addr_t, bus_addr_t, bus_size_t,
+           bus_size_t, bus_size_t, int, bus_addr_t *, bus_space_handle_t *);
 
 /*
- *     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, bus_space_handle_t, bus_size_t);
 
 /*
- *     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.
@@ -183,9 +180,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.
@@ -193,16 +190,13 @@
 
 #define __HPCMIPS_bus_space_read_multi(BYTES,BITS)                     \
 static __inline void __CONCAT(bus_space_read_multi_,BYTES)             \
-       __P((bus_space_tag_t, bus_space_handle_t, bus_size_t,           \
-       __PB_TYPENAME(BITS) *, size_t));                                \
+       (bus_space_tag_t, bus_space_handle_t, bus_size_t,               \
+       __PB_TYPENAME(BITS) *, size_t);                                 \
                                                                        \
 static __inline void                                                   \
-__CONCAT(bus_space_read_multi_,BYTES)(t, h, o, a, c)                   \
-       bus_space_tag_t t;                                              \
-       bus_space_handle_t h;                                           \
-       bus_size_t o;                                                   \
-       __PB_TYPENAME(BITS) *a;                                         \
-       size_t c;                                                       \
+__CONCAT(bus_space_read_multi_,BYTES)(bus_space_tag_t t,               \
+    bus_space_handle_t h, bus_size_t o, __PB_TYPENAME(BITS) *a,                \
+    size_t c)                                                          \
 {                                                                      \
                                                                        \
        while (c--)                                                     \
@@ -220,9 +214,9 @@
 #undef __HPCMIPS_bus_space_read_multi
 
 /*
- *     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
@@ -231,16 +225,13 @@
 
 #define __HPCMIPS_bus_space_read_region(BYTES,BITS)                    \
 static __inline void __CONCAT(bus_space_read_region_,BYTES)            \
-       __P((bus_space_tag_t, bus_space_handle_t, bus_size_t,           \
-       __PB_TYPENAME(BITS) *, size_t));                                \
+       (bus_space_tag_t, bus_space_handle_t, bus_size_t,               \
+       __PB_TYPENAME(BITS) *, size_t);                                 \
                                                                        \
 static __inline void                                                   \
-__CONCAT(bus_space_read_region_,BYTES)(t, h, o, a, c)                  \
-       bus_space_tag_t t;                                              \
-       bus_space_handle_t h;                                           \
-       bus_size_t o;                                                   \
-       __PB_TYPENAME(BITS) *a;                                         \
-       size_t c;                                                       \
+__CONCAT(bus_space_read_region_,BYTES)(bus_space_tag_t t,              \
+    bus_space_handle_t h, bus_size_t o, __PB_TYPENAME(BITS) *a,                \
+    size_t c)                                                          \
 {                                                                      \
                                                                        \
        while (c--) {                                                   \
@@ -260,9 +251,9 @@
 #undef __HPCMIPS_bus_space_read_region
 
 /*
- *     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.
@@ -294,9 +285,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.
@@ -304,16 +295,13 @@
 
 #define __HPCMIPS_bus_space_write_multi(BYTES,BITS)                    \
 static __inline void __CONCAT(bus_space_write_multi_,BYTES)            \
-       __P((bus_space_tag_t, bus_space_handle_t, bus_size_t,           \
-       __PB_TYPENAME(BITS) *, size_t));                                \
+       (bus_space_tag_t, bus_space_handle_t, bus_size_t,               \
+       __PB_TYPENAME(BITS) *, size_t);                                 \
                                                                        \
 static __inline void                                                   \
-__CONCAT(bus_space_write_multi_,BYTES)(t, h, o, a, c)                  \
-       bus_space_tag_t t;                                              \
-       bus_space_handle_t h;                                           \
-       bus_size_t o;                                                   \
-       __PB_TYPENAME(BITS) *a;                                         \
-       size_t c;                                                       \
+__CONCAT(bus_space_write_multi_,BYTES)(bus_space_tag_t t,              \
+    bus_space_handle_t h, bus_size_t o, __PB_TYPENAME(BITS) *a,                \
+    size_t c)                                                          \
 {                                                                      \
                                                                        \
        while (c--)                                                     \
@@ -332,9 +320,9 @@
 #undef __HPCMIPS_bus_space_write_multi
 
 /*
- *     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'.
@@ -342,16 +330,13 @@
 
 #define __HPCMIPS_bus_space_write_region(BYTES,BITS)                   \
 static __inline void __CONCAT(bus_space_write_region_,BYTES)           \
-       __P((bus_space_tag_t, bus_space_handle_t, bus_size_t,           \
-       __PB_TYPENAME(BITS) *, size_t));                                \
+       (bus_space_tag_t, bus_space_handle_t, bus_size_t,               \
+       __PB_TYPENAME(BITS) *, size_t);                                 \
                                                                        \
 static __inline void                                                   \
-__CONCAT(bus_space_write_region_,BYTES)(t, h, o, a, c)                 \
-       bus_space_tag_t t;                                              \
-       bus_space_handle_t h;                                           \
-       bus_size_t o;                                                   \
-       __PB_TYPENAME(BITS) *a;                                         \
-       size_t c;                                                       \
+__CONCAT(bus_space_write_region_,BYTES)(bus_space_tag_t t,             \
+    bus_space_handle_t h, bus_size_t o, __PB_TYPENAME(BITS) *a,                \
+    size_t c)                                                          \
 {                                                                      \
                                                                        \
        while (c--) {                                                   \
@@ -372,9 +357,9 @@
 #undef __HPCMIPS_bus_space_write_region
 
 /*
- *     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.
@@ -382,16 +367,12 @@
 
 #define __HPCMIPS_bus_space_set_multi(BYTES,BITS)                      \
 static __inline void __CONCAT(bus_space_set_multi_,BYTES)              \
-       __P((bus_space_tag_t, bus_space_handle_t, bus_size_t,           \
-       __PB_TYPENAME(BITS), size_t));                                  \
+       (bus_space_tag_t, bus_space_handle_t, bus_size_t,               \
+       __PB_TYPENAME(BITS), size_t);                                   \



Home | Main Index | Thread Index | Old Index