[Midnightbsd-cvs] mports [23995] trunk/x11-drivers/xf86-video-apm: update patchset

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Aug 28 08:59:10 EDT 2018


Revision: 23995
          http://svnweb.midnightbsd.org/mports/?rev=23995
Author:   laffer1
Date:     2018-08-28 08:59:09 -0400 (Tue, 28 Aug 2018)
Log Message:
-----------
update patchset

Modified Paths:
--------------
    trunk/x11-drivers/xf86-video-apm/Makefile
    trunk/x11-drivers/xf86-video-apm/files/patch-src_apm.h

Added Paths:
-----------
    trunk/x11-drivers/xf86-video-apm/files/patch-src_apm__driver.c

Modified: trunk/x11-drivers/xf86-video-apm/Makefile
===================================================================
--- trunk/x11-drivers/xf86-video-apm/Makefile	2018-08-28 12:58:04 UTC (rev 23994)
+++ trunk/x11-drivers/xf86-video-apm/Makefile	2018-08-28 12:59:09 UTC (rev 23995)
@@ -2,7 +2,7 @@
 
 PORTNAME=	xf86-video-apm
 PORTVERSION=	1.2.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-drivers
 
 MAINTAINER=	ports at MidnightBSD.org

Modified: trunk/x11-drivers/xf86-video-apm/files/patch-src_apm.h
===================================================================
--- trunk/x11-drivers/xf86-video-apm/files/patch-src_apm.h	2018-08-28 12:58:04 UTC (rev 23994)
+++ trunk/x11-drivers/xf86-video-apm/files/patch-src_apm.h	2018-08-28 12:59:09 UTC (rev 23995)
@@ -1,4 +1,13 @@
---- src/apm.h.orig	2012-07-17 04:52:01 UTC
+From 9f67408e4f078e907fbf4feb45cfdcfd0cdebcca Mon Sep 17 00:00:00 2001
+From: Adam Jackson <ajax at redhat.com>
+Date: Wed, 9 Jan 2013 22:03:29 -0500
+Subject: Remove #include "mibstore.h"
+
+Signed-off-by: Adam Jackson <ajax at redhat.com>
+
+diff --git a/src/apm.h b/src/apm.h
+index a3c06f8..365e5e2 100644
+--- src/apm.h	2012-07-17 04:52:01 UTC
 +++ src/apm.h
 @@ -33,9 +33,6 @@
  /* All drivers initialising the SW cursor need this */
@@ -10,3 +19,6 @@
  /* I2C support */
  #include "xf86i2c.h"
  
+-- 
+cgit v0.10.2
+

Added: trunk/x11-drivers/xf86-video-apm/files/patch-src_apm__driver.c
===================================================================
--- trunk/x11-drivers/xf86-video-apm/files/patch-src_apm__driver.c	                        (rev 0)
+++ trunk/x11-drivers/xf86-video-apm/files/patch-src_apm__driver.c	2018-08-28 12:59:09 UTC (rev 23995)
@@ -0,0 +1,60 @@
+# Remove miInitializeBackingStore; it no longer exists and
+# should have been removed with the mibstore.h include
+#
+# Replace xf86UnMapVidMem with pci_device_unmap_range
+#
+# Correct one string that should be const
+#
+--- src/apm_driver.c.orig	2012-07-17 04:52:01 UTC
++++ src/apm_driver.c
+@@ -355,7 +355,8 @@ ApmPreInit(ScrnInfoPtr pScrn, int flags)
+     EntityInfoPtr	pEnt;
+     vgaHWPtr		hwp;
+     MessageType		from;
+-    char		*mod = NULL, *req = NULL, *s;
++    char		*mod = NULL, *req = NULL;
++    const char		*s;
+     ClockRangePtr	clockRanges;
+     int			i;
+     xf86MonPtr		MonInfo = NULL;
+@@ -751,7 +752,11 @@ ApmPreInit(ScrnInfoPtr pScrn, int flags)
+ 	LinMap[0xFFECDB] = db;
+ 	LinMap[0xFFECD9] = d9;
+ 	/*pciWriteLong(pApm->PciTag, PCI_CMD_STAT_REG, save);*/
++#ifndef XSERVER_LIBPCIACCESS
+ 	xf86UnMapVidMem(pScrn->scrnIndex, (pointer)LinMap, pApm->LinMapSize);
++#else
++	pci_device_unmap_range(pApm->PciInfo, (pointer)LinMap, pApm->LinMapSize);
++#endif
+ 	from = X_PROBED;
+     }
+     else {
+@@ -1134,12 +1139,19 @@ ApmUnmapMem(ScrnInfoPtr pScrn)
+ 	    WRXB(0xDB, pApm->db);
+ 	}
+ 	WRXB(0xC9, pApm->c9);
++#ifndef XSERVER_LIBPCIACCESS
+ 	xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pApm->LinMap, pApm->LinMapSize);
++#else
++	pci_device_unmap_range(pApm->PciInfo, (pointer)pApm->LinMap, pApm->LinMapSize);
++#endif
+ 	pApm->LinMap = NULL;
+     }
+     else if (pApm->FbBase)
++#ifndef XSERVER_LIBPCIACCESS
+ 	xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pApm->LinMap, 0x10000);
+-
++#else
++	pci_device_unmap_range(pApm->PciInfo, (pointer)pApm->LinMap, 0x10000);
++#endif
+     return TRUE;
+ }
+ 
+@@ -1784,7 +1796,6 @@ ApmScreenInit(SCREEN_INIT_ARGS_DECL)
+     }
+ #endif
+ 
+-    miInitializeBackingStore(pScreen);
+     xf86SetBackingStore(pScreen);
+     xf86SetSilkenMouse(pScreen);
+ 


Property changes on: trunk/x11-drivers/xf86-video-apm/files/patch-src_apm__driver.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list