summaryrefslogtreecommitdiff
path: root/hw/kdrive/src/kmap.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2001-05-23 08:56:09 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2001-05-23 08:56:09 +0000
commit85d827f5329fa93dea1125788457fac6835cd134 (patch)
treed383a6b9972216d3164e319876693874155ef547 /hw/kdrive/src/kmap.c
parentf9104754cda1212cf48d6d24a0a586c5368d7549 (diff)
Add PCMCIA server for HP VGA Out PC Card and the Voyager VGA Card. Use on
the Compaq IPAQ. Use -listmodes to see supported modes. Hack the touchscreen driver to work as a mouse pad for the VGA screen. Fixup key bindings so xmodmap can remap IPAQ's buttons as mouse buttons.
Diffstat (limited to 'hw/kdrive/src/kmap.c')
-rw-r--r--hw/kdrive/src/kmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/kdrive/src/kmap.c b/hw/kdrive/src/kmap.c
index 7238eaa2a..bf3991370 100644
--- a/hw/kdrive/src/kmap.c
+++ b/hw/kdrive/src/kmap.c
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $XFree86: xc/programs/Xserver/hw/kdrive/kmap.c,v 1.6 2000/12/13 18:06:54 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/kdrive/kmap.c,v 1.7 2001/03/30 02:15:20 keithp Exp $ */
#include "kdrive.h"
@@ -67,7 +67,11 @@ KdMapDevice (CARD32 addr, CARD32 size)
void *a;
int fd;
+#ifdef __arm__
+ fd = open ("/dev/mem", O_RDWR|O_SYNC);
+#else
fd = open ("/dev/mem", O_RDWR);
+#endif
if (fd < 0)
FatalError ("KdMapDevice: failed to open /dev/mem (%s)\n",
strerror (errno));