changeset 134:f1550e1c4916

Fix compile riva fb problem on older kernels
author Sam Lantinga <slouken@libsdl.org>
date Wed, 01 Aug 2001 03:23:40 +0000
parents 5d4bafca35cd
children 0bfcf0d2b874
files src/video/fbcon/SDL_fbriva.c src/video/fbcon/SDL_fbriva.h
diffstat 2 files changed, 7 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbriva.c	Tue Jul 31 20:08:51 2001 +0000
+++ b/src/video/fbcon/SDL_fbriva.c	Wed Aug 01 03:23:40 2001 +0000
@@ -32,17 +32,6 @@
 #include "riva_mmio.h"
 #include "riva_regs.h"
 
-#define PGRAPH_OFFSET	0x00400000
-#define FIFO_OFFSET	0x00800000
-#define ROP_OFFSET	FIFO_OFFSET+0x00000000
-#define CLIP_OFFSET	FIFO_OFFSET+0x00002000
-#define PATT_OFFSET	FIFO_OFFSET+0x00004000
-#define PIXMAP_OFFSET	FIFO_OFFSET+0x00006000
-#define BLT_OFFSET	FIFO_OFFSET+0x00008000
-#define BITMAP_OFFSET	FIFO_OFFSET+0x0000A000
-#define LINE_OFFSET	FIFO_OFFSET+0x0000C000
-#define TRI03_OFFSET	FIFO_OFFSET+0x0000E000
-#define PCIO_OFFSET	0x00601000
 
 static int FifoEmptyCount = 0;
 static int FifoFreeCount = 0;
--- a/src/video/fbcon/SDL_fbriva.h	Tue Jul 31 20:08:51 2001 +0000
+++ b/src/video/fbcon/SDL_fbriva.h	Wed Aug 01 03:23:40 2001 +0000
@@ -29,5 +29,12 @@
 
 #include "SDL_fbvideo.h"
 
+#ifndef FB_ACCEL_NV3
+#define FB_ACCEL_NV3	27
+#endif
+#ifndef FB_ACCEL_NV4
+#define FB_ACCEL_NV4	28
+#endif
+
 /* Set up the driver for Riva acceleration */
 extern void FB_RivaAccel(_THIS, __u32 card);