Line 0
Link Here
|
|
|
1 |
# Remove miInitializeBackingStore; it no longer exists and |
2 |
# should have been removed with the mibstore.h include |
3 |
# |
4 |
# Replace xf86UnMapVidMem with pci_device_unmap_range |
5 |
# |
6 |
# Correct one string that should be const |
7 |
# |
8 |
--- src/apm_driver.c.orig 2012-07-17 04:52:01 UTC |
9 |
+++ src/apm_driver.c |
10 |
@@ -355,7 +355,8 @@ ApmPreInit(ScrnInfoPtr pScrn, int flags) |
11 |
EntityInfoPtr pEnt; |
12 |
vgaHWPtr hwp; |
13 |
MessageType from; |
14 |
- char *mod = NULL, *req = NULL, *s; |
15 |
+ char *mod = NULL, *req = NULL; |
16 |
+ const char *s; |
17 |
ClockRangePtr clockRanges; |
18 |
int i; |
19 |
xf86MonPtr MonInfo = NULL; |
20 |
@@ -751,7 +752,11 @@ ApmPreInit(ScrnInfoPtr pScrn, int flags) |
21 |
LinMap[0xFFECDB] = db; |
22 |
LinMap[0xFFECD9] = d9; |
23 |
/*pciWriteLong(pApm->PciTag, PCI_CMD_STAT_REG, save);*/ |
24 |
+#ifndef XSERVER_LIBPCIACCESS |
25 |
xf86UnMapVidMem(pScrn->scrnIndex, (pointer)LinMap, pApm->LinMapSize); |
26 |
+#else |
27 |
+ pci_device_unmap_range(pApm->PciInfo, (pointer)LinMap, pApm->LinMapSize); |
28 |
+#endif |
29 |
from = X_PROBED; |
30 |
} |
31 |
else { |
32 |
@@ -1134,12 +1139,19 @@ ApmUnmapMem(ScrnInfoPtr pScrn) |
33 |
WRXB(0xDB, pApm->db); |
34 |
} |
35 |
WRXB(0xC9, pApm->c9); |
36 |
+#ifndef XSERVER_LIBPCIACCESS |
37 |
xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pApm->LinMap, pApm->LinMapSize); |
38 |
+#else |
39 |
+ pci_device_unmap_range(pApm->PciInfo, (pointer)pApm->LinMap, pApm->LinMapSize); |
40 |
+#endif |
41 |
pApm->LinMap = NULL; |
42 |
} |
43 |
else if (pApm->FbBase) |
44 |
+#ifndef XSERVER_LIBPCIACCESS |
45 |
xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pApm->LinMap, 0x10000); |
46 |
- |
47 |
+#else |
48 |
+ pci_device_unmap_range(pApm->PciInfo, (pointer)pApm->LinMap, 0x10000); |
49 |
+#endif |
50 |
return TRUE; |
51 |
} |
52 |
|
53 |
@@ -1784,7 +1796,6 @@ ApmScreenInit(SCREEN_INIT_ARGS_DECL) |
54 |
} |
55 |
#endif |
56 |
|
57 |
- miInitializeBackingStore(pScreen); |
58 |
xf86SetBackingStore(pScreen); |
59 |
xf86SetSilkenMouse(pScreen); |
60 |
|