mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Cast pointers in mem*_io() compat macros to uintptr_t so that they can be
used as bus handles by the bus_space functions implementing these macros.
This commit is contained in:
parent
f6af4ff6cb
commit
845ee63965
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106659
@ -247,15 +247,15 @@ extern struct alpha_busspace *busspace_isa_mem;
|
||||
(void*)(a), c)
|
||||
|
||||
#define memcpy_fromio(d, s, c) \
|
||||
bus_space_read_region_1(busspace_isa_mem, s, 0, d, c)
|
||||
bus_space_read_region_1(busspace_isa_mem, (uintptr_t)(s), 0, d, c)
|
||||
#define memcpy_toio(d, s, c) \
|
||||
bus_space_write_region_1(busspace_isa_mem, d, 0, s, c)
|
||||
bus_space_write_region_1(busspace_isa_mem, (uintptr_t)(d), 0, s, c)
|
||||
#define memcpy_io(d, s, c) \
|
||||
bus_space_copy_region_1(busspace_isa_mem, s, 0, d, 0, c)
|
||||
bus_space_copy_region_1(busspace_isa_mem, (uintptr_t)(s), 0, d, 0, c)
|
||||
#define memset_io(d, v, c) \
|
||||
bus_space_set_region_1(busspace_isa_mem, d, 0, v, c)
|
||||
bus_space_set_region_1(busspace_isa_mem, (uintptr_t)(d), 0, v, c)
|
||||
#define memsetw_io(d, v, c) \
|
||||
bus_space_set_region_2(busspace_isa_mem, d, 0, v, c)
|
||||
bus_space_set_region_2(busspace_isa_mem, (uintptr_t)(d), 0, v, c)
|
||||
|
||||
static __inline void
|
||||
memsetw(void *d, int val, size_t size)
|
||||
|
Loading…
Reference in New Issue
Block a user