summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2012-08-21 16:38:49 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2012-08-21 16:38:49 +0000
commit3f292aafd4273f48c8dfde60d3ebbfdd7cfa46ad (patch)
treea24fcb780118afe9cedb6e90384ca6a8ab5edeb4 /sys/dev/pci/drm
parent5194e59d956d81d278b3148d6d6d5ce71f150dd4 (diff)
Define the endianness macro used in drm code corresponding to the
value of BYTE_ORDER, this makes radeondrm(4) usable on big-endian archs. ok kettenis@, deraadt@
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/drmP.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 4825fd6321e..b1ef5657152 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drmP.h,v 1.129 2012/04/11 17:42:53 mikeb Exp $ */
+/* $OpenBSD: drmP.h,v 1.130 2012/08/21 16:38:48 mpi Exp $ */
/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
* Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
*/
@@ -73,6 +73,12 @@
#include "drm.h"
#include "drm_atomic.h"
+#if BYTE_ORDER == BIG_ENDIAN
+#define __BIG_ENDIAN
+#else
+#define __LITTLE_ENDIAN
+#endif
+
#define DRM_KERNEL_CONTEXT 0 /* Change drm_resctx if changed */
#define DRM_RESERVED_CONTEXTS 1 /* Change drm_resctx if changed */