aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/nvidia/nv_local.h
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-12-08 05:36:26 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:40 -0500
commit1c6676825fe4cc03a71f253fc3e16ec17c6a3195 (patch)
treee4d8b21dc6cc3df4f5c1482a0c546ffadb61f748 /drivers/video/nvidia/nv_local.h
parent906d66df18faa4aac8d898ae6920d1014694a932 (diff)
[PATCH] video: use bitrev8
Use bitrev8 for nvidiafb, rivafb, and tgafb drivers Cc: Antonino Daplas <adaplas@pol.net> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/nvidia/nv_local.h')
-rw-r--r--drivers/video/nvidia/nv_local.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/video/nvidia/nv_local.h b/drivers/video/nvidia/nv_local.h
index 4243d7fae972..e009d242ea10 100644
--- a/drivers/video/nvidia/nv_local.h
+++ b/drivers/video/nvidia/nv_local.h
@@ -96,13 +96,16 @@
96#define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2) 96#define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2)
97 97
98#ifdef __LITTLE_ENDIAN 98#ifdef __LITTLE_ENDIAN
99
100#include <linux/bitrev.h>
101
99#define reverse_order(l) \ 102#define reverse_order(l) \
100do { \ 103do { \
101 u8 *a = (u8 *)(l); \ 104 u8 *a = (u8 *)(l); \
102 *a = byte_rev[*a], a++; \ 105 a[0] = bitrev8(a[0]); \
103 *a = byte_rev[*a], a++; \ 106 a[1] = bitrev8(a[1]); \
104 *a = byte_rev[*a], a++; \ 107 a[2] = bitrev8(a[2]); \
105 *a = byte_rev[*a]; \ 108 a[3] = bitrev8(a[3]); \
106} while(0) 109} while(0)
107#else 110#else
108#define reverse_order(l) do { } while(0) 111#define reverse_order(l) do { } while(0)