diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-04-27 00:43:14 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-04-27 00:43:14 +0000 |
commit | 22b9b720d572ba6fec288e2a13537aec069cec7f (patch) | |
tree | 23a98811df1f2bf92ad51f8ffe3ef6f54362e4a7 /bsd-core/drm_os_netbsd.h | |
parent | 9828bd24c8f7b9d115acf94e422fa34ec8627b92 (diff) |
Use real endian conversion functions.
Diffstat (limited to 'bsd-core/drm_os_netbsd.h')
-rw-r--r-- | bsd-core/drm_os_netbsd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bsd-core/drm_os_netbsd.h b/bsd-core/drm_os_netbsd.h index a0c4f78f..6dfea613 100644 --- a/bsd-core/drm_os_netbsd.h +++ b/bsd-core/drm_os_netbsd.h @@ -20,6 +20,7 @@ #include <sys/lkm.h> /* For TIOCSPGRP/TIOCGPGRP */ #include <sys/ttycom.h> +#include <sys/endian.h> #include <uvm/uvm.h> @@ -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; |