Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/include u_intN_t -> uintN_t
details: https://anonhg.NetBSD.org/src/rev/24e78e110ee5
branches: trunk
changeset: 753173:24e78e110ee5
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Mar 19 10:54:00 2010 +0000
description:
u_intN_t -> uintN_t
diffstat:
sys/arch/x68k/include/bus.h | 176 ++++++++++++++++++++++----------------------
1 files changed, 88 insertions(+), 88 deletions(-)
diffs (truncated from 546 to 300 lines):
diff -r a7bdedee0805 -r 24e78e110ee5 sys/arch/x68k/include/bus.h
--- a/sys/arch/x68k/include/bus.h Fri Mar 19 10:45:09 2010 +0000
+++ b/sys/arch/x68k/include/bus.h Fri Mar 19 10:54:00 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.20 2010/03/19 10:45:09 tsutsui Exp $ */
+/* $NetBSD: bus.h,v 1.21 2010/03/19 10:54:00 tsutsui Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -187,69 +187,69 @@
#define bus_space_copy_region_4(t,sh,so,dh,do,c) \
_bus_space_copy_region_4(t,sh,so,dh,do,c)
-static __inline u_int8_t _bus_space_read_1
+static __inline uint8_t _bus_space_read_1
(bus_space_tag_t, bus_space_handle_t bsh, bus_size_t offset);
-static __inline u_int16_t _bus_space_read_2
+static __inline uint16_t _bus_space_read_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t);
-static __inline u_int32_t _bus_space_read_4
+static __inline uint32_t _bus_space_read_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t);
static __inline void _bus_space_read_multi_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int8_t *, bus_size_t);
+ uint8_t *, bus_size_t);
static __inline void _bus_space_read_multi_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int16_t *, bus_size_t);
+ uint16_t *, bus_size_t);
static __inline void _bus_space_read_multi_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int32_t *, bus_size_t);
+ uint32_t *, bus_size_t);
static __inline void _bus_space_read_region_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int8_t *, bus_size_t);
+ uint8_t *, bus_size_t);
static __inline void _bus_space_read_region_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int16_t *, bus_size_t);
+ uint16_t *, bus_size_t);
static __inline void _bus_space_read_region_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int32_t *, bus_size_t);
+ uint32_t *, bus_size_t);
static __inline void _bus_space_write_1
- (bus_space_tag_t, bus_space_handle_t, bus_size_t, u_int8_t);
+ (bus_space_tag_t, bus_space_handle_t, bus_size_t, uint8_t);
static __inline void _bus_space_write_2
- (bus_space_tag_t, bus_space_handle_t, bus_size_t, u_int16_t);
+ (bus_space_tag_t, bus_space_handle_t, bus_size_t, uint16_t);
static __inline void _bus_space_write_4
- (bus_space_tag_t, bus_space_handle_t, bus_size_t, u_int32_t);
+ (bus_space_tag_t, bus_space_handle_t, bus_size_t, uint32_t);
static __inline void _bus_space_write_multi_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- const u_int8_t *, bus_size_t);
+ const uint8_t *, bus_size_t);
static __inline void _bus_space_write_multi_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- const u_int16_t *, bus_size_t);
+ const uint16_t *, bus_size_t);
static __inline void _bus_space_write_multi_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- const u_int32_t *, bus_size_t);
+ const uint32_t *, bus_size_t);
static __inline void _bus_space_write_region_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- const u_int8_t *, bus_size_t);
+ const uint8_t *, bus_size_t);
static __inline void _bus_space_write_region_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- const u_int16_t *, bus_size_t);
+ const uint16_t *, bus_size_t);
static __inline void _bus_space_write_region_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- const u_int32_t *, bus_size_t);
+ const uint32_t *, bus_size_t);
static __inline void _bus_space_set_region_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int8_t, bus_size_t);
+ uint8_t, bus_size_t);
static __inline void _bus_space_set_region_2
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int16_t, bus_size_t);
+ uint16_t, bus_size_t);
static __inline void _bus_space_set_region_4
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
- u_int32_t, bus_size_t);
+ uint32_t, bus_size_t);
static __inline void _bus_space_copy_region_1
(bus_space_tag_t, bus_space_handle_t, bus_size_t,
@@ -266,31 +266,31 @@
(((long)(handle) < 0 ? (offset) * 2 : (offset)) \
+ ((handle) & 0x7fffffff))
-static __inline u_int8_t
+static __inline uint8_t
_bus_space_read_1(t, bsh, offset)
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
{
- return (*((volatile u_int8_t *) __X68K_BUS_ADDR(t, bsh, offset)));
+ return (*((volatile uint8_t *) __X68K_BUS_ADDR(t, bsh, offset)));
}
-static __inline u_int16_t
+static __inline uint16_t
_bus_space_read_2(t, bsh, offset)
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
{
- return (*((volatile u_int16_t *) __X68K_BUS_ADDR(t, bsh, offset)));
+ return (*((volatile uint16_t *) __X68K_BUS_ADDR(t, bsh, offset)));
}
-static __inline u_int32_t
+static __inline uint32_t
_bus_space_read_4(t, bsh, offset)
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
{
- return (*((volatile u_int32_t *) __X68K_BUS_ADDR(t, bsh, offset)));
+ return (*((volatile uint32_t *) __X68K_BUS_ADDR(t, bsh, offset)));
}
static __inline void
@@ -298,18 +298,18 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int8_t *datap;
+ uint8_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
- u_int8_t *regadr = (u_int8_t *) __X68K_BUS_ADDR(t, bsh, offset);
+ uint8_t *regadr = (uint8_t *) __X68K_BUS_ADDR(t, bsh, offset);
for (; count; count--) {
__asm("| avoid optim. _bus_space_read_multi_1" : : : "memory");
*datap++ = *regadr;
}
#else
while (count-- > 0) {
- *datap++ = *(volatile u_int8_t *)
+ *datap++ = *(volatile uint8_t *)
__X68K_BUS_ADDR(t, bsh, offset);
}
#endif
@@ -320,18 +320,18 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int16_t *datap;
+ uint16_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
- u_int16_t *regadr = (u_int16_t *) __X68K_BUS_ADDR(t, bsh, offset);
+ uint16_t *regadr = (uint16_t *) __X68K_BUS_ADDR(t, bsh, offset);
for (; count; count--) {
__asm("| avoid optim. _bus_space_read_multi_2" : : : "memory");
*datap++ = *regadr;
}
#else
while (count-- > 0) {
- *datap++ = *(volatile u_int16_t *)
+ *datap++ = *(volatile uint16_t *)
__X68K_BUS_ADDR(t, bsh, offset);
}
#endif
@@ -342,18 +342,18 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int32_t *datap;
+ uint32_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
- u_int32_t *regadr = (u_int32_t *) __X68K_BUS_ADDR(t, bsh, offset);
+ uint32_t *regadr = (uint32_t *) __X68K_BUS_ADDR(t, bsh, offset);
for (; count; count--) {
__asm("| avoid optim. _bus_space_read_multi_4" : : : "memory");
*datap++ = *regadr;
}
#else
while (count-- > 0) {
- *datap++ = *(volatile u_int32_t *)
+ *datap++ = *(volatile uint32_t *)
__X68K_BUS_ADDR(t, bsh, offset);
}
#endif
@@ -364,18 +364,18 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int8_t *datap;
+ uint8_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
- u_int8_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
+ uint8_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
for (; count; count--) {
__asm("| avoid optim. _bus_space_read_region_1" : : : "memory");
*datap++ = *addr++;
}
#else
- volatile u_int8_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
+ volatile uint8_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
while (count-- > 0) {
*datap++ = *addr++;
@@ -388,18 +388,18 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int16_t *datap;
+ uint16_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
- u_int16_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
+ uint16_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
for (; count; count--) {
__asm("| avoid optim. _bus_space_read_region_2" : : : "memory");
*datap++ = *addr++;
}
#else
- volatile u_int16_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
+ volatile uint16_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
while (count-- > 0) {
*datap++ = *addr++;
@@ -412,18 +412,18 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int32_t *datap;
+ uint32_t *datap;
bus_size_t count;
{
#if X68K_BUS_PERFORMANCE_HACK
- u_int32_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
+ uint32_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
for (; count; count--) {
__asm("| avoid optim. _bus_space_read_region_4" : : : "memory");
*datap++ = *addr++;
}
#else
- volatile u_int32_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
+ volatile uint32_t *addr = (void *) __X68K_BUS_ADDR(t, bsh, offset);
while (count-- > 0) {
*datap++ = *addr++;
@@ -436,9 +436,9 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int8_t value;
+ uint8_t value;
{
- *(volatile u_int8_t *) __X68K_BUS_ADDR(t, bsh, offset) = value;
+ *(volatile uint8_t *) __X68K_BUS_ADDR(t, bsh, offset) = value;
}
static __inline void
@@ -446,9 +446,9 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int16_t value;
+ uint16_t value;
{
- *(volatile u_int16_t *) __X68K_BUS_ADDR(t, bsh, offset) = value;
+ *(volatile uint16_t *) __X68K_BUS_ADDR(t, bsh, offset) = value;
}
static __inline void
@@ -456,9 +456,9 @@
bus_space_tag_t t;
bus_space_handle_t bsh;
bus_size_t offset;
- u_int32_t value;
+ uint32_t value;
Home |
Main Index |
Thread Index |
Old Index