summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-23 08:52:52 +0000
committermarcel <marcel@FreeBSD.org>2003-08-23 08:52:52 +0000
commitc2a6d01cc9b7e306c199e0356ed3e14bfd1fb256 (patch)
tree530fca368e0bdd6337f69004cba5a5b2d58da646 /sys/dev/fb
parent0663329f6f760560039a3eba880b6ac17b6188c1 (diff)
downloadFreeBSD-src-c2a6d01cc9b7e306c199e0356ed3e14bfd1fb256.zip
FreeBSD-src-c2a6d01cc9b7e306c199e0356ed3e14bfd1fb256.tar.gz
o Explicitly cast the second argument to bus_space_set_region_#()
to intptr_t. This fixes a compiler warning (integer from pointer without cast) in scvgarndr.c when SC_PIXEL_MODE is defined. o Define readb() and writeb(). Both are used in scvgarndr.c when, guess what, SC_PIXEL_MODE is defined. Both changes are ia64 specific. Found by: LINT
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/fbreg.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h
index 082b93d..cf9116f 100644
--- a/sys/dev/fb/fbreg.h
+++ b/sys/dev/fb/fbreg.h
@@ -59,17 +59,16 @@ void generic_bzero(void *d, size_t c);
#define bcopy_toio(s, d, c) \
bus_space_write_region_1(IA64_BUS_SPACE_MEM, d, 0, (void*)(s), c)
#define bzero_io(d, c) \
- bus_space_set_region_1(IA64_BUS_SPACE_MEM, d, 0, 0, c)
+ bus_space_set_region_1(IA64_BUS_SPACE_MEM, (intptr_t)(d), 0, 0, c)
#define fill_io(p, d, c) \
- bus_space_set_region_1(IA64_BUS_SPACE_MEM, d, 0, p, c)
+ bus_space_set_region_1(IA64_BUS_SPACE_MEM, (intptr_t)(d), 0, p, c)
#define fillw_io(p, d, c) \
- bus_space_set_region_2(IA64_BUS_SPACE_MEM, d, 0, p, c)
-#define readw(a) \
- bus_space_read_2(IA64_BUS_SPACE_MEM, a, 0)
-#define writew(a, v) \
- bus_space_write_2(IA64_BUS_SPACE_MEM, a, 0, v)
-#define writel(a, v) \
- bus_space_write_4(IA64_BUS_SPACE_MEM, a, 0, v)
+ bus_space_set_region_2(IA64_BUS_SPACE_MEM, (intptr_t)(d), 0, p, c)
+#define readb(a) bus_space_read_1(IA64_BUS_SPACE_MEM, a, 0)
+#define readw(a) bus_space_read_2(IA64_BUS_SPACE_MEM, a, 0)
+#define writeb(a, v) bus_space_write_1(IA64_BUS_SPACE_MEM, a, 0, v)
+#define writew(a, v) bus_space_write_2(IA64_BUS_SPACE_MEM, a, 0, v)
+#define writel(a, v) bus_space_write_4(IA64_BUS_SPACE_MEM, a, 0, v)
static __inline void
fillw(int val, uint16_t *buf, size_t size)
{
OpenPOWER on IntegriCloud