diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-09-28 05:53:21 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-09-28 05:53:21 +0000 |
commit | 2c0060e404132d4c6685a0fa9d82029d0fc0adeb (patch) | |
tree | 9e70414b23757bd4a9cd6d3461f369d7ea3dea68 | |
parent | 9d654470983226ac2160ab9cf677b4c985db7a4e (diff) |
Patch for xserver 1.17. Missed in upgrade commit.
-rw-r--r-- | xserver/hw/xfree86/os-support/bsd/hppa_video.c | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/xserver/hw/xfree86/os-support/bsd/hppa_video.c b/xserver/hw/xfree86/os-support/bsd/hppa_video.c index 4f4a1a70a..285d3554e 100644 --- a/xserver/hw/xfree86/os-support/bsd/hppa_video.c +++ b/xserver/hw/xfree86/os-support/bsd/hppa_video.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hppa_video.c,v 1.9 2014/09/27 17:53:02 matthieu Exp $ */ +/* $OpenBSD: hppa_video.c,v 1.10 2015/09/28 05:53:20 matthieu Exp $ */ /* * Copyright 1992 by Rich Murphey <Rich@Rice.edu> * Copyright 1993 by David Wexelblat <dwex@goblin.org> @@ -35,70 +35,22 @@ #include "xf86_OSlib.h" #include "xf86OSpriv.h" -#ifndef MAP_FAILED -#define MAP_FAILED ((caddr_t)-1) -#endif - /***************************************************************************/ /* Video Memory Mapping section */ /***************************************************************************/ -static void *hppaMapVidMem(int, unsigned long, unsigned long, int); -static void hppaUnmapVidMem(int, void *, unsigned long); - - void xf86OSInitVidMem(VidMemInfoPtr pVidMem) { xf86OpenConsole(); - pVidMem->linearSupported = TRUE; - pVidMem->mapMem = hppaMapVidMem; - pVidMem->unmapMem = hppaUnmapVidMem; #if HAVE_PCI_SYSTEM_INIT_DEV_MEM pci_system_init_dev_mem(xf86Info.consoleFd); #endif pVidMem->initialised = TRUE; } - -volatile unsigned char *ioBase = MAP_FAILED; - -static void * -hppaMapVidMem(int ScreenNum, unsigned long Base, unsigned long Size, int flags) -{ - int fd = xf86Info.consoleFd; - void *base; - -#ifdef DEBUG - xf86MsgVerb(X_INFO, 3, "mapVidMem %lx, %lx, fd = %d\n", - Base, Size, fd); -#endif - - base = mmap(0, Size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, Base); - if (base == MAP_FAILED) - FatalError("%s: could not mmap screen [s=%lx,a=%lx] (%s)", - "xf86MapVidMem", Size, Base, strerror(errno)); - - return base; -} - - -static void -hppaUnmapVidMem(int ScreenNum, void *Base, unsigned long Size) -{ - - munmap(Base, Size); -} - -int -xf86ReadBIOS(unsigned long Base, unsigned long Offset, unsigned char *Buf, - int Len) -{ - return 0; -} - /***************************************************************************/ /* Interrupt Handling section */ /***************************************************************************/ |