Make all non-trivial bus space functions "static __inline" (consistently)

and turn all macros with local blocks and declarations into functions.
This fixes PR 19975.
This commit is contained in:
martin 2003-05-05 09:36:51 +00:00
parent 57482255bc
commit ae2073f3d8
1 changed files with 328 additions and 178 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.43 2003/01/30 13:32:25 martin Exp $ */
/* $NetBSD: bus.h,v 1.44 2003/05/05 09:36:51 martin Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -173,7 +173,7 @@ struct sparc_bus_space_tag {
#define PROTO_bus_space_xxx __P((bus_space_tag_t t, ...))
#define RETURNTYPE_bus_space_xxx void *
#define BUSFUN(name, returntype, t, args...) \
__inline__ RETURNTYPE_##name \
static __inline RETURNTYPE_##name \
bus_##name PROTO_##name \
{ \
while (t->sparc_##name == NULL) \
@ -243,7 +243,7 @@ static void *bus_intr_establish __P((
t = t->parent; \
return (*(t)->f)
__inline__ int
static __inline int
bus_space_alloc(t, rs, re, s, a, b, f, ap, hp)
bus_space_tag_t t;
bus_addr_t rs;
@ -258,7 +258,7 @@ bus_space_alloc(t, rs, re, s, a, b, f, ap, hp)
_BS_CALL(t, sparc_bus_alloc)(t, rs, re, s, a, b, f, ap, hp);
}
__inline__ void
static __inline void
bus_space_free(t, h, s)
bus_space_tag_t t;
bus_space_handle_t h;
@ -267,7 +267,7 @@ bus_space_free(t, h, s)
_BS_CALL(t, sparc_bus_free)(t, h, s);
}
__inline__ int
static __inline int
bus_space_map(t, a, s, f, hp)
bus_space_tag_t t;
bus_addr_t a;
@ -278,7 +278,7 @@ bus_space_map(t, a, s, f, hp)
_BS_CALL(t, sparc_bus_map)(t, a, s, f, 0, hp);
}
__inline__ int
static __inline int
bus_space_unmap(t, h, s)
bus_space_tag_t t;
bus_space_handle_t h;
@ -287,7 +287,7 @@ bus_space_unmap(t, h, s)
_BS_CALL(t, sparc_bus_unmap)(t, h, s);
}
__inline__ int
static __inline int
bus_space_subregion(t, h, o, s, hp)
bus_space_tag_t t;
bus_space_handle_t h;
@ -298,7 +298,7 @@ bus_space_subregion(t, h, o, s, hp)
_BS_CALL(t, sparc_bus_subregion)(t, h, o, s, hp);
}
__inline__ paddr_t
static __inline paddr_t
bus_space_mmap(t, a, o, p, f)
bus_space_tag_t t;
bus_addr_t a;
@ -309,7 +309,7 @@ bus_space_mmap(t, a, o, p, f)
_BS_CALL(t, sparc_bus_mmap)(t, a, o, p, f);
}
__inline__ void *
static __inline void *
bus_intr_establish(t, p, l, h, a)
bus_space_tag_t t;
int p;
@ -339,7 +339,7 @@ bus_intr_establish(t, p, l, h, a)
#define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */
#define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */
__inline__ void
static __inline void
bus_space_barrier(t, h, o, s, f)
bus_space_tag_t t;
bus_space_handle_t h;
@ -429,33 +429,50 @@ bus_space_barrier(t, h, o, s, f)
* described by tag/handle/offset and copy into buffer provided.
*/
#define bus_space_read_multi_1(t, h, o, a, c) do { \
int i = c; \
u_int8_t *p = (u_int8_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_1(t, h, o); \
} while (0)
static __inline void
bus_space_read_multi_1(bus_space_tag_t, bus_space_handle_t,
bus_size_t, u_int8_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);
static __inline void
bus_space_read_multi_4(bus_space_tag_t, bus_space_handle_t,
bus_size_t, u_int32_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);
#define bus_space_read_multi_2(t, h, o, a, c) do { \
int i = c; \
u_int16_t *p = (u_int16_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_2(t, h, o); \
} while (0)
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)
{
while (c-- > 0)
*a++ = bus_space_read_1(t, h, o);
}
#define bus_space_read_multi_4(t, h, o, a, c) do { \
int i = c; \
u_int32_t *p = (u_int32_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_4(t, h, o); \
} while (0)
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)
{
while (c-- > 0)
*a++ = bus_space_read_2(t, h, o);
}
#define bus_space_read_multi_8(t, h, o, a, c) do { \
int i = c; \
u_int64_t *p = (u_int64_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_8(t, h, o); \
} while (0)
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)
{
while (c-- > 0)
*a++ = bus_space_read_4(t, h, o);
}
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)
{
while (c-- > 0)
*a++ = bus_space_read_8(t, h, o);
}
/*
* void bus_space_write_N __P((bus_space_tag_t tag,
@ -515,33 +532,58 @@ bus_space_barrier(t, h, o, s, f)
* provided to bus space described by tag/handle/offset.
*/
#define bus_space_write_multi_1(t, h, o, a, c) do { \
int i = c; \
u_int8_t *p = (u_int8_t *)a; \
while (i-- > 0) \
bus_space_write_1(t, h, o, *p++); \
} while (0)
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);
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);
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);
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);
#define bus_space_write_multi_2(t, h, o, a, c) do { \
int i = c; \
u_int16_t *p = (u_int16_t *)a; \
while (i-- > 0) \
bus_space_write_2(t, h, o, *p++); \
} while (0)
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)
{
while (c-- > 0)
bus_space_write_1(t, h, o, *a++);
}
#define bus_space_write_multi_4(t, h, o, a, c) do { \
int i = c; \
u_int32_t *p = (u_int32_t *)a; \
while (i-- > 0) \
bus_space_write_4(t, h, o, *p++); \
} while (0)
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)
{
while (c-- > 0)
bus_space_write_2(t, h, o, *a++);
}
#define bus_space_write_multi_8(t, h, o, a, c) do { \
int i = c; \
u_int64_t *p = (u_int64_t *)a; \
while (i-- > 0) \
bus_space_write_8(t, h, o, *p++); \
} while (0)
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)
{
while (c-- > 0)
bus_space_write_4(t, h, o, *a++);
}
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)
{
while (c-- > 0)
bus_space_write_8(t, h, o, *a++);
}
/*
* void bus_space_set_multi_N __P((bus_space_tag_t tag,
@ -552,29 +594,58 @@ bus_space_barrier(t, h, o, s, f)
* by tag/handle/offset `count' times.
*/
#define bus_space_set_multi_1(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_1(t, h, o, v); \
} while (0)
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,
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,
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,
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,
size_t c);
#define bus_space_set_multi_2(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_2(t, h, o, v); \
} while (0)
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,
size_t c)
{
while (c-- > 0)
bus_space_write_1(t, h, o, v);
}
#define bus_space_set_multi_4(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_4(t, h, o, v); \
} while (0)
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,
size_t c)
{
while (c-- > 0)
bus_space_write_2(t, h, o, v);
}
#define bus_space_set_multi_8(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_8(t, h, o, v); \
} while (0)
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,
size_t c)
{
while (c-- > 0)
bus_space_write_4(t, h, o, v);
}
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,
size_t c)
{
while (c-- > 0)
bus_space_write_8(t, h, o, v);
}
/*
* void bus_space_read_region_N __P((bus_space_tag_t tag,
@ -603,7 +674,7 @@ static void bus_space_read_region_8 __P((bus_space_tag_t,
u_int64_t *,
bus_size_t));
static __inline__ void
static __inline void
bus_space_read_region_1(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -613,7 +684,7 @@ bus_space_read_region_1(t, h, o, a, c)
for (; c; a++, c--, o++)
*a = bus_space_read_1(t, h, o);
}
static __inline__ void
static __inline void
bus_space_read_region_2(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -623,7 +694,7 @@ bus_space_read_region_2(t, h, o, a, c)
for (; c; a++, c--, o+=2)
*a = bus_space_read_2(t, h, o);
}
static __inline__ void
static __inline void
bus_space_read_region_4(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -633,7 +704,7 @@ bus_space_read_region_4(t, h, o, a, c)
for (; c; a++, c--, o+=4)
*a = bus_space_read_4(t, h, o);
}
static __inline__ void
static __inline void
bus_space_read_region_8(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -670,7 +741,7 @@ static void bus_space_write_region_8 __P((bus_space_tag_t,
bus_size_t,
const u_int64_t *,
bus_size_t));
static __inline__ void
static __inline void
bus_space_write_region_1(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -681,7 +752,7 @@ bus_space_write_region_1(t, h, o, a, c)
bus_space_write_1(t, h, o, *a);
}
static __inline__ void
static __inline void
bus_space_write_region_2(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -692,7 +763,7 @@ bus_space_write_region_2(t, h, o, a, c)
bus_space_write_2(t, h, o, *a);
}
static __inline__ void
static __inline void
bus_space_write_region_4(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -703,7 +774,7 @@ bus_space_write_region_4(t, h, o, a, c)
bus_space_write_4(t, h, o, *a);
}
static __inline__ void
static __inline void
bus_space_write_region_8(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -742,7 +813,7 @@ static void bus_space_set_region_8 __P((bus_space_tag_t,
const u_int64_t,
bus_size_t));
static __inline__ void
static __inline void
bus_space_set_region_1(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -753,7 +824,7 @@ bus_space_set_region_1(t, h, o, v, c)
bus_space_write_1(t, h, o, v);
}
static __inline__ void
static __inline void
bus_space_set_region_2(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -764,7 +835,7 @@ bus_space_set_region_2(t, h, o, v, c)
bus_space_write_2(t, h, o, v);
}
static __inline__ void
static __inline void
bus_space_set_region_4(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -775,7 +846,7 @@ bus_space_set_region_4(t, h, o, v, c)
bus_space_write_4(t, h, o, v);
}
static __inline__ void
static __inline void
bus_space_set_region_8(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -822,7 +893,7 @@ static void bus_space_copy_region_8 __P((bus_space_tag_t,
bus_size_t));
static __inline__ void
static __inline void
bus_space_copy_region_1(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -833,7 +904,7 @@ bus_space_copy_region_1(t, h1, o1, h2, o2, c)
bus_space_write_1(t, h1, o1, bus_space_read_1(t, h2, o2));
}
static __inline__ void
static __inline void
bus_space_copy_region_2(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -844,7 +915,7 @@ bus_space_copy_region_2(t, h1, o1, h2, o2, c)
bus_space_write_2(t, h1, o1, bus_space_read_2(t, h2, o2));
}
static __inline__ void
static __inline void
bus_space_copy_region_4(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -855,7 +926,7 @@ bus_space_copy_region_4(t, h1, o1, h2, o2, c)
bus_space_write_4(t, h1, o1, bus_space_read_4(t, h2, o2));
}
static __inline__ void
static __inline void
bus_space_copy_region_8(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -931,33 +1002,58 @@ bus_space_copy_region_8(t, h1, o1, h2, o2, c)
* described by tag/handle/offset and copy into buffer provided.
*/
#define bus_space_read_multi_stream_1(t, h, o, a, c) do { \
int i = c; \
u_int8_t *p = (u_int8_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_stream_1(t, h, o); \
} while (0)
static __inline void
bus_space_read_multi_stream_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int8_t *a, size_t c);
static __inline void
bus_space_read_multi_stream_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int16_t *a, size_t c);
static __inline void
bus_space_read_multi_stream_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int32_t *a, size_t c);
static __inline void
bus_space_read_multi_stream_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int64_t *a, size_t c);
#define bus_space_read_multi_stream_2(t, h, o, a, c) do { \
int i = c; \
u_int16_t *p = (u_int16_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_stream_2(t, h, o); \
} while (0)
static __inline void
bus_space_read_multi_stream_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int8_t *a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_stream_1(t, h, o);
}
#define bus_space_read_multi_stream_4(t, h, o, a, c) do { \
int i = c; \
u_int32_t *p = (u_int32_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_stream_4(t, h, o); \
} while (0)
static __inline void
bus_space_read_multi_stream_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int16_t *a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_stream_2(t, h, o);
}
#define bus_space_read_multi_stream_8(t, h, o, a, c) do { \
int i = c; \
u_int64_t *p = (u_int64_t *)a; \
while (i-- > 0) \
*p++ = bus_space_read_stream_8(t, h, o); \
} while (0)
static __inline void
bus_space_read_multi_stream_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int32_t *a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_stream_4(t, h, o);
}
static __inline void
bus_space_read_multi_stream_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
u_int64_t *a, size_t c)
{
while (c-- > 0)
*a++ = bus_space_read_stream_8(t, h, o);
}
/*
* void bus_space_write_stream_N __P((bus_space_tag_t tag,
@ -1017,33 +1113,58 @@ bus_space_copy_region_8(t, h1, o1, h2, o2, c)
* provided to bus space described by tag/handle/offset.
*/
#define bus_space_write_multi_stream_1(t, h, o, a, c) do { \
int i = c; \
u_int8_t *p = (u_int8_t *)a; \
while (i-- > 0) \
bus_space_write_stream_1(t, h, o, *p++); \
} while (0)
static __inline void
bus_space_write_multi_stream_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int8_t *a, size_t c);
static __inline void
bus_space_write_multi_stream_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int16_t *a, size_t c);
static __inline void
bus_space_write_multi_stream_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int32_t *a, size_t c);
static __inline void
bus_space_write_multi_stream_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int64_t *a, size_t c);
#define bus_space_write_multi_stream_2(t, h, o, a, c) do { \
int i = c; \
u_int16_t *p = (u_int16_t *)a; \
while (i-- > 0) \
bus_space_write_stream_2(t, h, o, *p++); \
} while (0)
static __inline void
bus_space_write_multi_stream_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int8_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_stream_1(t, h, o, *a++);
}
#define bus_space_write_multi_stream_4(t, h, o, a, c) do { \
int i = c; \
u_int32_t *p = (u_int32_t *)a; \
while (i-- > 0) \
bus_space_write_stream_4(t, h, o, *p++); \
} while (0)
static __inline void
bus_space_write_multi_stream_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int16_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_stream_2(t, h, o, *a++);
}
#define bus_space_write_multi_stream_8(t, h, o, a, c) do { \
int i = c; \
u_int64_t *p = (u_int64_t *)a; \
while (i-- > 0) \
bus_space_write_stream_8(t, h, o, *p++); \
} while (0)
static __inline void
bus_space_write_multi_stream_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int32_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_stream_4(t, h, o, *a++);
}
static __inline void
bus_space_write_multi_stream_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o,
const u_int64_t *a, size_t c)
{
while (c-- > 0)
bus_space_write_stream_8(t, h, o, *a++);
}
/*
* void bus_space_set_multi_stream_N __P((bus_space_tag_t tag,
@ -1054,29 +1175,58 @@ bus_space_copy_region_8(t, h1, o1, h2, o2, c)
* by tag/handle/offset `count' times.
*/
#define bus_space_set_multi_stream_1(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_stream_1(t, h, o, v); \
} while (0)
static __inline void
bus_space_set_multi_stream_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int8_t v,
size_t c);
static __inline void
bus_space_set_multi_stream_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int16_t v,
size_t c);
static __inline void
bus_space_set_multi_stream_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int32_t v,
size_t c);
static __inline void
bus_space_set_multi_stream_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int64_t v,
size_t c);
#define bus_space_set_multi_stream_2(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_stream_2(t, h, o, v); \
} while (0)
static __inline void
bus_space_set_multi_stream_1(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int8_t v,
size_t c)
{
while (c-- > 0)
bus_space_write_stream_1(t, h, o, v);
}
#define bus_space_set_multi_stream_4(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_stream_4(t, h, o, v); \
} while (0)
static __inline void
bus_space_set_multi_stream_2(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int16_t v,
size_t c)
{
while (c-- > 0)
bus_space_write_stream_2(t, h, o, v);
}
#define bus_space_set_multi_stream_8(t, h, o, v, c) do { \
int i = c; \
while (i-- > 0) \
bus_space_write_stream_8(t, h, o, v); \
} while (0)
static __inline void
bus_space_set_multi_stream_4(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int32_t v,
size_t c)
{
while (c-- > 0)
bus_space_write_stream_4(t, h, o, v);
}
static __inline void
bus_space_set_multi_stream_8(bus_space_tag_t t,
bus_space_handle_t h, bus_size_t o, u_int64_t v,
size_t c)
{
while (c-- > 0)
bus_space_write_stream_8(t, h, o, v);
}
/*
* void bus_space_read_region_stream_N __P((bus_space_tag_t tag,
@ -1105,7 +1255,7 @@ static void bus_space_read_region_stream_8 __P((bus_space_tag_t,
u_int64_t *,
bus_size_t));
static __inline__ void
static __inline void
bus_space_read_region_stream_1(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1115,7 +1265,7 @@ bus_space_read_region_stream_1(t, h, o, a, c)
for (; c; a++, c--, o++)
*a = bus_space_read_stream_1(t, h, o);
}
static __inline__ void
static __inline void
bus_space_read_region_stream_2(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1125,7 +1275,7 @@ bus_space_read_region_stream_2(t, h, o, a, c)
for (; c; a++, c--, o+=2)
*a = bus_space_read_stream_2(t, h, o);
}
static __inline__ void
static __inline void
bus_space_read_region_stream_4(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1135,7 +1285,7 @@ bus_space_read_region_stream_4(t, h, o, a, c)
for (; c; a++, c--, o+=4)
*a = bus_space_read_stream_4(t, h, o);
}
static __inline__ void
static __inline void
bus_space_read_region_stream_8(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1172,7 +1322,7 @@ static void bus_space_write_region_stream_8 __P((bus_space_tag_t,
bus_size_t,
const u_int64_t *,
bus_size_t));
static __inline__ void
static __inline void
bus_space_write_region_stream_1(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1183,7 +1333,7 @@ bus_space_write_region_stream_1(t, h, o, a, c)
bus_space_write_stream_1(t, h, o, *a);
}
static __inline__ void
static __inline void
bus_space_write_region_stream_2(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1194,7 +1344,7 @@ bus_space_write_region_stream_2(t, h, o, a, c)
bus_space_write_stream_2(t, h, o, *a);
}
static __inline__ void
static __inline void
bus_space_write_region_stream_4(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1205,7 +1355,7 @@ bus_space_write_region_stream_4(t, h, o, a, c)
bus_space_write_stream_4(t, h, o, *a);
}
static __inline__ void
static __inline void
bus_space_write_region_stream_8(t, h, o, a, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1244,7 +1394,7 @@ static void bus_space_set_region_stream_8 __P((bus_space_tag_t,
const u_int64_t,
bus_size_t));
static __inline__ void
static __inline void
bus_space_set_region_stream_1(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1255,7 +1405,7 @@ bus_space_set_region_stream_1(t, h, o, v, c)
bus_space_write_stream_1(t, h, o, v);
}
static __inline__ void
static __inline void
bus_space_set_region_stream_2(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1266,7 +1416,7 @@ bus_space_set_region_stream_2(t, h, o, v, c)
bus_space_write_stream_2(t, h, o, v);
}
static __inline__ void
static __inline void
bus_space_set_region_stream_4(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1277,7 +1427,7 @@ bus_space_set_region_stream_4(t, h, o, v, c)
bus_space_write_stream_4(t, h, o, v);
}
static __inline__ void
static __inline void
bus_space_set_region_stream_8(t, h, o, v, c)
bus_space_tag_t t;
bus_space_handle_t h;
@ -1324,7 +1474,7 @@ static void bus_space_copy_region_stream_8 __P((bus_space_tag_t,
bus_size_t));
static __inline__ void
static __inline void
bus_space_copy_region_stream_1(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -1335,7 +1485,7 @@ bus_space_copy_region_stream_1(t, h1, o1, h2, o2, c)
bus_space_write_stream_1(t, h1, o1, bus_space_read_stream_1(t, h2, o2));
}
static __inline__ void
static __inline void
bus_space_copy_region_stream_2(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -1346,7 +1496,7 @@ bus_space_copy_region_stream_2(t, h1, o1, h2, o2, c)
bus_space_write_stream_2(t, h1, o1, bus_space_read_stream_2(t, h2, o2));
}
static __inline__ void
static __inline void
bus_space_copy_region_stream_4(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;
@ -1357,7 +1507,7 @@ bus_space_copy_region_stream_4(t, h1, o1, h2, o2, c)
bus_space_write_stream_4(t, h1, o1, bus_space_read_stream_4(t, h2, o2));
}
static __inline__ void
static __inline void
bus_space_copy_region_stream_8(t, h1, o1, h2, o2, c)
bus_space_tag_t t;
bus_space_handle_t h1, h2;