aboutsummaryrefslogtreecommitdiffstats
path: root/console/matrox.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:41 +0200
commit45a153b46c280b51471ec12854cce623ef8f92be (patch)
treef4387c5c580e750919d0e5106327df0d0c54a645 /console/matrox.c
parentc75c37f7104480a0d386a9e0caa8a72335395503 (diff)
v3.95
Diffstat (limited to 'console/matrox.c')
-rw-r--r--console/matrox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/console/matrox.c b/console/matrox.c
index 4e17f1a..e9011a7 100644
--- a/console/matrox.c
+++ b/console/matrox.c
@@ -5,6 +5,7 @@
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
@@ -24,7 +25,7 @@ void (*gfx_scaler_on)(int offscreen, int pitch, int width, int height,
void (*gfx_scaler_off)(void);
static unsigned char *bmmio;
-static unsigned long *mmio;
+static uint32_t *mmio;
static void
wrio4(int adr, unsigned long val)
@@ -227,6 +228,6 @@ gfx_init(int fd)
off = (unsigned long)fb_fix.mmio_start -
((unsigned long)fb_fix.mmio_start & ~(PAGE_SIZE-1));
bmmio += off;
- mmio = (unsigned long*)bmmio;
+ mmio = (uint32_t*)bmmio;
return 0;
}

Privacy Policy