Subject: 'direct' VRAM access, how ?
To: None <port-arm32@NetBSD.ORG>
From: Peter Berg <Peter.Berg@ww.tu-freiberg.de>
List: port-arm32
Date: 02/27/1997 16:18:49
Hi folks,
because my last query didn't reached the mailinglist for some unknown reasons,
here it is again:
How can I map the video ram from the console device into my userspace for
'direct' vram access ?
I tried :
fd = open("/dev/console", O_RDWR | O_NONBLOCK, (mode_t)0644);
vidcpointer = mmap(
(caddr_t)VMEM_VBASE,
(size_t)1024,
PROT_READ | PROT_WRITE,
MAP_FILE | MAP_SHARED,
fd,
(off_t)0
);
printf("vidc_pointer: %Lx error: ",vidcpointer);
printf(strerror(errno)); printf("\r\n");
... but the mmap functions always returns a "Invalid argument" error. What
have I to do for that the VRAM is correctly mapped into my userspace ?
PS: I need this for high speed graphic output. Because I have to update at
least at 25fps nearly the whole the screen it seems to be impossible to use
X11 for this (at least not in 16bpp mode). If it should be possible to do this
on X please let me know how. But I afraid a ARM710 is too slow to do a FFT im
realtime and update a X screen in high color.
Ciao, Peter
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| |
| >>> FutureGroove <<< |
| |
| Peter Berg Music production & |
| softwaredevelopment |
| w3: http://www.ww.tu-freiberg.de/~pberg |
| email: Peter.Berg@ww.tu-freiberg.de |
| part time system administrator |
| at *.ww.tu-freiberg.de |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/