summaryrefslogtreecommitdiff
path: root/linux/radeon_cp.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2002-06-04 15:24:19 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2002-06-04 15:24:19 +0000
commit94960ed1806ab9721cbdbf4ae3e6f296f76c6339 (patch)
tree69ced91c71e167e39af52df38f16e5b0a62290e6 /linux/radeon_cp.c
parent62ccf75c07ebe3111d6f6bd3b3f718a57124e8ff (diff)
bring trident-0-0-1-branch uptodate with trunk.trident-0-0-1-branch
Diffstat (limited to 'linux/radeon_cp.c')
-rw-r--r--linux/radeon_cp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/radeon_cp.c b/linux/radeon_cp.c
index 0acaca8e..14901f59 100644
--- a/linux/radeon_cp.c
+++ b/linux/radeon_cp.c
@@ -31,6 +31,8 @@
#define __NO_VERSION__
#include "radeon.h"
#include "drmP.h"
+#include "drm.h"
+#include "radeon_drm.h"
#include "radeon_drv.h"
#include <linux/interrupt.h> /* For task queue support */
@@ -38,7 +40,7 @@
#define RADEON_FIFO_DEBUG 0
-#if defined(__alpha__)
+#if defined(__alpha__) || defined(__powerpc__)
# define PCIGART_ENABLED
#else
# undef PCIGART_ENABLED
@@ -629,7 +631,11 @@ static void radeon_cp_init_ring_buffer( drm_device_t *dev,
}
/* Set ring buffer size */
+#ifdef __BIG_ENDIAN
+ RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw | RADEON_BUF_SWAP_32BIT );
+#else
RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw );
+#endif
radeon_do_wait_for_idle( dev_priv );