diff options
Diffstat (limited to 'drivers/video/nvidia/nv_local.h')
-rw-r--r-- | drivers/video/nvidia/nv_local.h | 11 |
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) \ |
100 | do { \ | 103 | do { \ |
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) |