diff options
author | 2012-08-21 16:38:48 +0000 | |
---|---|---|
committer | 2012-08-21 16:38:48 +0000 | |
commit | a156f6a4549344be3c6e77677d53398f124f43b8 (patch) | |
tree | 432125992f8927d59912f0d909636bcd0d0a361a | |
parent | - remove inconsistent/obsolete comments (diff) | |
download | wireguard-openbsd-a156f6a4549344be3c6e77677d53398f124f43b8.tar.xz wireguard-openbsd-a156f6a4549344be3c6e77677d53398f124f43b8.zip |
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@
-rw-r--r-- | sys/dev/pci/drm/drmP.h | 8 |
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 */ |