[PATCH 1/5] xfree86: nds32: add nds32 related definitions into include headers.

Macpaul Lin macpaul at andestech.com
Wed Sep 8 01:33:39 PDT 2010


Add MSB/LSB related definitions into include/servermd.h

Signed-off-by: Macpaul Lin <macpaul at andestech.com>
---
 include/servermd.h |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/include/servermd.h b/include/servermd.h
index e1d644e..271d936 100644
--- a/include/servermd.h
+++ b/include/servermd.h
@@ -84,6 +84,27 @@ SOFTWARE.
 
 #endif /* __arm32__ */
 
+#if defined(__nds32__)
+
+#define IMAGE_BYTE_ORDER	LSBFirst
+
+#if defined(XF86MONOVGA) || defined(XF86VGA16) || defined(XF86MONO)
+# define BITMAP_BIT_ORDER	MSBFirst
+#else
+# define BITMAP_BIT_ORDER	LSBFirst
+#endif
+
+#if defined(XF86MONOVGA) || defined(XF86VGA16)
+# define BITMAP_SCANLINE_UNIT	8
+#endif
+
+#define GLYPHPADBYTES		4
+#define GETLEFTBITS_ALIGNMENT	1
+#define LARGE_INSTRUCTION_CACHE
+#define AVOID_MEMORY_READ
+
+#endif /* __nds32__ */
+
 #if defined __hppa__
 
 #define IMAGE_BYTE_ORDER	MSBFirst
-- 
1.7.2.2



More information about the xorg-devel mailing list