summaryrefslogtreecommitdiff
path: root/include/servermd.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-06-02 01:17:31 +0400
committerKeith Packard <keithp@keithp.com>2014-06-02 13:05:40 -0700
commitdc8d0688471695ec5a8db5fef93fbcfc064891d5 (patch)
tree23426b7f1246f61a44f7e17867838d3e8f49293c /include/servermd.h
parenta6ffdc69c4ac45bc39924159c7fab5f02f720f1f (diff)
xtensa: add support for xtensa architecture
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/servermd.h')
-rw-r--r--include/servermd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/servermd.h b/include/servermd.h
index 2d1ccb19f..081123be9 100644
--- a/include/servermd.h
+++ b/include/servermd.h
@@ -313,6 +313,20 @@ SOFTWARE.
#endif /* ARC */
+#ifdef __xtensa__
+
+#ifdef __XTENSA_EL__
+#define IMAGE_BYTE_ORDER LSBFirst
+#define BITMAP_BIT_ORDER LSBFirst
+#endif
+#ifdef __XTENSA_EB__
+#define IMAGE_BYTE_ORDER MSBFirst
+#define BITMAP_BIT_ORDER MSBFirst
+#endif
+#define GLYPHPADBYTES 4
+
+#endif /* __xtensa__ */
+
/* size of buffer to use with GetImage, measured in bytes. There's obviously
* a trade-off between the amount of heap used and the number of times the
* ddx routine has to be called.