1 Index: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp.h
2 ===================================================================
3 RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp.h,v
4 retrieving revision 1.4
5 retrieving revision 1.5
7 --- xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp.h 2000/12/06 15:35:15 1.4
8 +++ xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp.h 2001/01/22 21:09:33 1.5
10 -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp.h,v 1.4 2000/12/06 15:35:15 eich Exp $ */
11 +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp.h,v 1.5 2001/01/22 21:09:33 dawes Exp $ */
13 /* (c) Itai Nahshon */
16 CARD32 monoPattern8x8;
20 + /* MMIO Base for BitBLT operation. This is
21 + IOBase for 5446 and 7548, IOBase+0x100 for 5480 */
22 + unsigned char * BLTBase;
23 /* XXX For XF86Config based mem configuration */
26 Index: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_driver.c
27 ===================================================================
28 RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_driver.c,v
29 retrieving revision 1.17
30 retrieving revision 1.18
32 --- xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_driver.c 2000/12/07 15:43:44 1.17
33 +++ xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_driver.c 2001/01/21 21:19:24 1.18
38 -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_driver.c,v 1.17 2000/12/07 15:43:44 tsi Exp $ */
39 +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_driver.c,v 1.18 2001/01/21 21:19:24 tsi Exp $ */
41 /* All drivers should typically include these */
45 /* These need to be checked */
48 #define _XF86DGA_SERVER_
49 #include "extensions/xf86dgastr.h"
54 #include "xf86int10.h"
57 static void AlpSetClock(CirPtr pCir, vgaHWPtr hwp, int freq);
60 -static void AlpDisplayPowerManagementSet(ScrnInfoPtr pScrn,
61 - int PowerManagementMode, int flags);
63 +static void AlpDisplayPowerManagementSet(ScrnInfoPtr pScrn,
64 + int PowerManagementMode, int flags);
67 * This is intentionally screen-independent. It indicates the binding
68 @@ -1078,10 +1074,7 @@
72 - xf86LoaderReqSymbols("fbScreenInit",NULL);
74 - xf86LoaderReqSymbols("fbPictureInit", NULL);
76 + xf86LoaderReqSymbols("fbScreenInit", "fbPictureInit", NULL);
85 fbPictureInit (pScreen, 0, 0);
89 ErrorF("AlpScreenInit after depth dependent init\n");
91 if (pScrn->bitsPerPixel > 1 && pScrn->bitsPerPixel <= 8)
92 vgaHWHandleColormaps(pScreen);
95 xf86DPMSInit(pScreen, AlpDisplayPowerManagementSet, 0);
98 pScrn->memPhysBase = pCir->FbAddress;
100 @@ -1983,7 +1972,6 @@
102 * Sets VESA Display Power Management Signaling (DPMS) Mode.
104 -#ifdef DPMSExtension
106 AlpDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
108 @@ -2031,7 +2019,6 @@
109 gr0e |= hwp->readGr(hwp, 0x0E) & ~0x06;
110 hwp->writeGr(hwp, 0x0E, gr0e);
115 static void AlpProbeI2C(int scrnIndex)
116 Index: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_xaam.c
117 ===================================================================
118 RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_xaam.c,v
119 retrieving revision 1.4
120 retrieving revision 1.5
122 --- xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_xaam.c 2000/12/06 15:35:15 1.4
123 +++ xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_xaam.c 2001/01/22 21:09:34 1.5
125 /* (c) Itai Nahshon */
127 -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_xaam.c,v 1.4 2000/12/06 15:35:15 eich Exp $ */
128 +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/alp_xaam.c,v 1.5 2001/01/22 21:09:34 dawes Exp $ */
131 #include "xf86_OSproc.h"
135 ErrorF("minb(%X)\n", p),\
136 - MMIO_IN8(pCir->IOBase, (p))
137 + MMIO_IN8(pCir->chip.alp->BLTBase, (p))
139 ErrorF("moutb(%X)\n", p),\
140 - MMIO_OUT8(pCir->IOBase, (p),(v))
141 + MMIO_OUT8(pCir->chip.alp->BLTBase, (p),(v))
143 ErrorF("minl(%X)\n", p),\
144 - MMIO_IN32(pCir->IOBase, (p))
145 + MMIO_IN32(pCir->chip.alp->BLTBase, (p))
147 ErrorF("moutl(%X)\n", p),\
148 - MMIO_OUT32(pCir->IOBase, (p),(v))
149 + MMIO_OUT32(pCir->chip.alp->BLTBase, (p),(v))
151 -#define minb(p) MMIO_IN8(pCir->IOBase, (p))
152 -#define moutb(p,v) MMIO_OUT8(pCir->IOBase, (p),(v))
153 -#define minl(p) MMIO_IN32(pCir->IOBase, (p))
154 -#define moutl(p,v) MMIO_OUT32(pCir->IOBase, (p),(v))
155 +#define minb(p) MMIO_IN8(pCir->chip.alp->BLTBase, (p))
156 +#define moutb(p,v) MMIO_OUT8(pCir->chip.alp->BLTBase, (p),(v))
157 +#define minl(p) MMIO_IN32(pCir->chip.alp->BLTBase, (p))
158 +#define moutl(p,v) MMIO_OUT32(pCir->chip.alp->BLTBase, (p),(v))
161 #define WAIT while(minb(0x40) & pCir->chip.alp->waitMsk){};
164 XAAPtr = XAACreateInfoRec();
165 if (!XAAPtr) return FALSE;
168 + switch (pCir->Chipset)
170 + case PCI_CHIP_GD5480:
171 + pCir->chip.alp->BLTBase = pCir->IOBase + 0x100;
174 + pCir->chip.alp->BLTBase = pCir->IOBase;
178 XAAPtr->SetupForScreenToScreenCopy = AlpSetupForScreenToScreenCopy;
179 XAAPtr->SubsequentScreenToScreenCopy = AlpSubsequentScreenToScreenCopy;
180 Index: xc/programs/Xserver/hw/xfree86/drivers/cirrus/cir_driver.c
181 ===================================================================
182 RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/cirrus/cir_driver.c,v
183 retrieving revision 1.62
184 retrieving revision 1.64
185 diff -u -r1.62 -r1.64
186 --- xc/programs/Xserver/hw/xfree86/drivers/cirrus/cir_driver.c 2000/12/06 15:35:15 1.62
187 +++ xc/programs/Xserver/hw/xfree86/drivers/cirrus/cir_driver.c 2001/01/22 21:09:34 1.64
192 -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/cir_driver.c,v 1.62 2000/12/06 15:35:15 eich Exp $ */
193 +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/cir_driver.c,v 1.64 2001/01/22 21:09:34 dawes Exp $ */
195 /* All drivers should typically include these */
202 - "Driver for Cirrus Logic GD5446, GD5480, and GD5462/4/5 cards",
208 "LgAvailableOptions",
212 +static const char *vbeSymbols[] = {
223 xf86AddDriver(&CIRRUS, module, 0);
225 - LoaderRefSymLists(alpSymbols, lgSymbols, NULL);
226 + LoaderRefSymLists(alpSymbols, lgSymbols, vbeSymbols, NULL);
229 if (errmaj) *errmaj = LDR_ONCEONLY;
233 if (xf86LoadSubModule(pScrn, "vbe")) {
234 +#ifdef XFree86LOADER
235 + xf86LoaderReqSymLists(vbeSymbols,NULL);
237 pVbe = VBEInit(NULL,index);
238 ConfiguredMonitor = vbeDoEDID(pVbe, NULL);
240 Index: xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_driver.c
241 ===================================================================
242 RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_driver.c,v
243 retrieving revision 1.33
244 retrieving revision 1.35
245 diff -u -r1.33 -r1.35
246 --- xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_driver.c 2000/12/06 15:35:16 1.33
247 +++ xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_driver.c 2001/01/22 21:09:35 1.35
249 * David Dawes, Andrew E. Mileski, Leonard N. Zubkoff,
250 * Guy DESBIEF, Itai Nahshon.
252 -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_driver.c,v 1.33 2000/12/06 15:35:16 eich Exp $ */
253 +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/cirrus/lg_driver.c,v 1.35 2001/01/22 21:09:35 dawes Exp $ */
258 static CARD16 LgSetClock(CirPtr pCir, vgaHWPtr hwp, int freq);
259 static void lg_vgaHWSetMmioFunc(vgaHWPtr hwp, CARD8 *base);
261 -#ifdef DPMSExtension
262 -static void LgDisplayPowerManagementSet(ScrnInfoPtr pScrn,
263 - int PowerManagementMode, int flags);
265 +static void LgDisplayPowerManagementSet(ScrnInfoPtr pScrn,
266 + int PowerManagementMode, int flags);
269 * This is intentionally screen-independent. It indicates the binding
274 - xf86LoaderReqSymbols("fbScreenInit",NULL);
276 - xf86LoaderReqSymbols("fbPictureInit", NULL);
278 + xf86LoaderReqSymbols("fbScreenInit", "fbPictureInit", NULL);
282 @@ -1426,6 +1421,8 @@
286 + fbPictureInit (pScreen, 0, 0);
289 ErrorF("LgScreenInit after depth dependent init\n");
291 @@ -1475,9 +1472,7 @@
292 if (pScrn->bitsPerPixel > 1 && pScrn->bitsPerPixel <= 8)
293 vgaHWHandleColormaps(pScreen);
295 -#ifdef DPMSExtension
296 xf86DPMSInit(pScreen, LgDisplayPowerManagementSet, 0);
299 pScrn->memPhysBase = pCir->FbAddress;
301 @@ -1799,7 +1794,6 @@
303 * Sets VESA Display Power Management Signaling (DPMS) Mode.
305 -#ifdef DPMSExtension
307 LgDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
309 @@ -1843,7 +1837,6 @@
310 cr1a |= hwp->readCrtc(hwp, 0x1A) & ~0x0C;
311 hwp->writeCrtc(hwp, 0x1A, cr1a);
315 #define minb(p) MMIO_IN8(hwp->MMIOBase, (p))
316 #define moutb(p,v) MMIO_OUT8(hwp->MMIOBase, (p),(v))