From 22b9b720d572ba6fec288e2a13537aec069cec7f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 27 Apr 2003 00:43:14 +0000 Subject: Use real endian conversion functions. --- bsd/drm_os_netbsd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bsd/drm_os_netbsd.h') diff --git a/bsd/drm_os_netbsd.h b/bsd/drm_os_netbsd.h index a0c4f78f..6dfea613 100644 --- a/bsd/drm_os_netbsd.h +++ b/bsd/drm_os_netbsd.h @@ -20,6 +20,7 @@ #include /* For TIOCSPGRP/TIOCGPGRP */ #include +#include #include @@ -202,7 +203,8 @@ typedef struct drm_chipinfo char *name; } drm_chipinfo_t; -#define cpu_to_le32(x) (x) /* FIXME */ +#define cpu_to_le32(x) htole32(x) +#define le32_to_cpu(x) le32toh(x) typedef u_int32_t dma_addr_t; typedef volatile long atomic_t; -- cgit v1.2.3