Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include s/u_intN_t/uintN_t/ and whitespace ...
details: https://anonhg.NetBSD.org/src/rev/564d6e6cabe6
branches: trunk
changeset: 749609:564d6e6cabe6
user: nakayama <nakayama%NetBSD.org@localhost>
date: Fri Dec 04 12:24:23 2009 +0000
description:
s/u_intN_t/uintN_t/ and whitespace nit. no functional change.
diffstat:
sys/arch/sparc64/include/bus.h | 274 ++++++++++++++++++++--------------------
1 files changed, 137 insertions(+), 137 deletions(-)
diffs (truncated from 994 to 300 lines):
diff -r 8fe8c696d59c -r 564d6e6cabe6 sys/arch/sparc64/include/bus.h
--- a/sys/arch/sparc64/include/bus.h Fri Dec 04 12:22:16 2009 +0000
+++ b/sys/arch/sparc64/include/bus.h Fri Dec 04 12:24:23 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.60 2009/12/04 12:22:16 nakayama Exp $ */
+/* $NetBSD: bus.h,v 1.61 2009/12/04 12:24:23 nakayama Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -105,8 +105,8 @@
uint8_t _sasi;
} bus_space_handle_t;
typedef enum bus_type bus_type_t;
-typedef u_int64_t bus_addr_t;
-typedef u_int64_t bus_size_t;
+typedef uint64_t bus_addr_t;
+typedef uint64_t bus_size_t;
/*
* XXXX -- convert prom virtual address to bus_space_handle_t
@@ -141,7 +141,7 @@
int type;
- int (*sparc_bus_alloc)(bus_space_tag_t, bus_addr_t,
+ int (*sparc_bus_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 *);
@@ -335,7 +335,7 @@
}
/*
- * u_intN_t bus_space_read_N(bus_space_tag_t tag,
+ * uintN_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
@@ -355,25 +355,25 @@
(0 ? (t)->type : ldxa((h)._ptr + (o), (h)._asi))
#else
#define bus_space_read_1(t, h, o) ({ \
- unsigned char __bv = \
+ uint8_t __bv = \
lduba((h)._ptr + (o), (h)._asi); \
if (bus_space_debug & BSDB_ACCESS) \
printf("bsr1(%llx + %llx, %x) -> %x\n", (long long)(h)._ptr, \
(long long)(o), \
- (h)._asi, (unsigned int) __bv); \
+ (h)._asi, (uint32_t) __bv); \
__bv; })
#define bus_space_read_2(t, h, o) ({ \
- unsigned short __bv = \
+ uint16_t __bv = \
lduha((h)._ptr + (o), (h)._asi); \
if (bus_space_debug & BSDB_ACCESS) \
printf("bsr2(%llx + %llx, %x) -> %x\n", (long long)(h)._ptr, \
(long long)(o), \
- (h)._asi, (unsigned int)__bv); \
+ (h)._asi, (uint32_t)__bv); \
__bv; })
#define bus_space_read_4(t, h, o) ({ \
- unsigned int __bv = \
+ uint32_t __bv = \
lda((h)._ptr + (o), (h)._asi); \
if (bus_space_debug & BSDB_ACCESS) \
printf("bsr4(%llx + %llx, %x) -> %x\n", (long long)(h)._ptr, \
@@ -382,7 +382,7 @@
__bv; })
#define bus_space_read_8(t, h, o) ({ \
- u_int64_t __bv = \
+ uint64_t __bv = \
ldxa((h)._ptr + (o), (h)._asi); \
if (bus_space_debug & BSDB_ACCESS) \
printf("bsr8(%llx + %llx, %x) -> %llx\n", (long long)(h)._ptr, \
@@ -393,7 +393,7 @@
/*
* 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);
+ * uintN_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.
@@ -401,20 +401,20 @@
static __inline void
bus_space_read_multi_1(bus_space_tag_t, bus_space_handle_t,
- bus_size_t, u_int8_t *, size_t);
+ bus_size_t, uint8_t *, size_t);
static __inline void
bus_space_read_multi_2(bus_space_tag_t, bus_space_handle_t,
- bus_size_t, u_int16_t *, size_t);
+ bus_size_t, uint16_t *, size_t);
static __inline void
bus_space_read_multi_4(bus_space_tag_t, bus_space_handle_t,
- bus_size_t, u_int32_t *, size_t);
+ bus_size_t, uint32_t *, size_t);
static __inline void
bus_space_read_multi_8(bus_space_tag_t, bus_space_handle_t,
- bus_size_t, u_int64_t *, size_t);
+ bus_size_t, uint64_t *, size_t);
static __inline void
bus_space_read_multi_1(bus_space_tag_t t, bus_space_handle_t h,
- bus_size_t o, u_int8_t * a, size_t c)
+ bus_size_t o, uint8_t * a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_1(t, h, o);
@@ -422,7 +422,7 @@
static __inline void
bus_space_read_multi_2(bus_space_tag_t t, bus_space_handle_t h,
- bus_size_t o, u_int16_t * a, size_t c)
+ bus_size_t o, uint16_t * a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_2(t, h, o);
@@ -430,7 +430,7 @@
static __inline void
bus_space_read_multi_4(bus_space_tag_t t, bus_space_handle_t h,
- bus_size_t o, u_int32_t * a, size_t c)
+ bus_size_t o, uint32_t * a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_4(t, h, o);
@@ -438,7 +438,7 @@
static __inline void
bus_space_read_multi_8(bus_space_tag_t t, bus_space_handle_t h,
- bus_size_t o, u_int64_t * a, size_t c)
+ bus_size_t o, uint64_t * a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_8(t, h, o);
@@ -447,7 +447,7 @@
/*
* void bus_space_write_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
- * u_intN_t value);
+ * uintN_t value);
*
* Write the 1, 2, 4, or 8 byte value `value' to bus space
* described by tag/handle/offset.
@@ -469,21 +469,21 @@
if (bus_space_debug & BSDB_ACCESS) \
printf("bsw1(%llx + %llx, %x) <- %x\n", (long long)(h)._ptr, \
(long long)(o), \
- (h)._asi, (unsigned int) v); \
- ((void)(stba((h)._ptr + (o), (h)._asi, (v)))); })
+ (h)._asi, (uint32_t) v); \
+ ((void)(stba((h)._ptr + (o), (h)._asi, (v)))); })
#define bus_space_write_2(t, h, o, v) ({ \
if (bus_space_debug & BSDB_ACCESS) \
printf("bsw2(%llx + %llx, %x) <- %x\n", (long long)(h)._ptr, \
(long long)(o), \
- (h)._asi, (unsigned int) v); \
+ (h)._asi, (uint32_t) v); \
((void)(stha((h)._ptr + (o), (h)._asi, (v)))); })
#define bus_space_write_4(t, h, o, v) ({ \
if (bus_space_debug & BSDB_ACCESS) \
printf("bsw4(%llx + %llx, %x) <- %x\n", (long long)(h)._ptr, \
(long long)(o), \
- (h)._asi, (unsigned int) v); \
+ (h)._asi, (uint32_t) v); \
((void)(sta((h)._ptr + (o), (h)._asi, (v)))); })
#define bus_space_write_8(t, h, o, v) ({ \
@@ -496,7 +496,7 @@
/*
* 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 uintN_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.
@@ -505,24 +505,24 @@
static __inline void
bus_space_write_multi_1(bus_space_tag_t tag,
bus_space_handle_t bsh, bus_size_t offset,
- const u_int8_t *addr, size_t count);
+ const uint8_t *addr, size_t count);
static __inline void
bus_space_write_multi_2(bus_space_tag_t tag,
bus_space_handle_t bsh, bus_size_t offset,
- const u_int16_t *addr, size_t count);
+ const uint16_t *addr, size_t count);
static __inline void
bus_space_write_multi_4(bus_space_tag_t tag,
bus_space_handle_t bsh, bus_size_t offset,
- const u_int32_t *addr, size_t count);
+ const uint32_t *addr, size_t count);
static __inline void
bus_space_write_multi_8(bus_space_tag_t tag,
bus_space_handle_t bsh, bus_size_t offset,
- const u_int64_t *addr, size_t count);
+ const uint64_t *addr, size_t count);
static __inline void
bus_space_write_multi_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
- const u_int8_t *a, size_t c)
+ const uint8_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_1(t, h, o, *a++);
@@ -531,7 +531,7 @@
static __inline void
bus_space_write_multi_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
- const u_int16_t *a, size_t c)
+ const uint16_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_2(t, h, o, *a++);
@@ -540,7 +540,7 @@
static __inline void
bus_space_write_multi_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
- const u_int32_t *a, size_t c)
+ const uint32_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_4(t, h, o, *a++);
@@ -549,7 +549,7 @@
static __inline void
bus_space_write_multi_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
- const u_int64_t *a, size_t c)
+ const uint64_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_8(t, h, o, *a++);
@@ -557,7 +557,7 @@
/*
* void bus_space_set_multi_N(bus_space_tag_t tag,
- * bus_space_handle_t bsh, bus_size_t offset, u_intN_t val,
+ * bus_space_handle_t bsh, bus_size_t offset, uintN_t val,
* size_t count);
*
* Write the 1, 2, 4, or 8 byte value `val' to bus space described
@@ -566,24 +566,24 @@
static __inline void
bus_space_set_multi_1(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int8_t v,
+ bus_space_handle_t h, bus_size_t o, uint8_t v,
size_t c);
static __inline void
bus_space_set_multi_2(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int16_t v,
+ bus_space_handle_t h, bus_size_t o, uint16_t v,
size_t c);
static __inline void
bus_space_set_multi_4(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int32_t v,
+ bus_space_handle_t h, bus_size_t o, uint32_t v,
size_t c);
static __inline void
bus_space_set_multi_8(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int64_t v,
+ bus_space_handle_t h, bus_size_t o, uint64_t v,
size_t c);
static __inline void
bus_space_set_multi_1(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int8_t v,
+ bus_space_handle_t h, bus_size_t o, uint8_t v,
size_t c)
{
while (c-- > 0)
@@ -592,7 +592,7 @@
static __inline void
bus_space_set_multi_2(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int16_t v,
+ bus_space_handle_t h, bus_size_t o, uint16_t v,
size_t c)
{
while (c-- > 0)
@@ -601,7 +601,7 @@
static __inline void
bus_space_set_multi_4(bus_space_tag_t t,
- bus_space_handle_t h, bus_size_t o, u_int32_t v,
+ bus_space_handle_t h, bus_size_t o, uint32_t v,
size_t c)
{
while (c-- > 0)
@@ -610,7 +610,7 @@
Home |
Main Index |
Thread Index |
Old Index