summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-11-03 23:24:07 -0800
committerKeith Packard <keithp@neko.keithp.com>2006-11-03 23:24:07 -0800
commitb7262a9a9110dac66e1a92c39dcb3ab59d95d081 (patch)
tree353efd728eeb4996cde671f897557239a8e7f981 /src
parent4625073244d4f521a07e12adcf0609e85658acbe (diff)
Finish removing persistant vbe data
Diffstat (limited to 'src')
-rw-r--r--src/i830.h5
-rw-r--r--src/i830_driver.c34
2 files changed, 0 insertions, 39 deletions
diff --git a/src/i830.h b/src/i830.h
index 10061d1a..3e0625ef 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -463,11 +463,6 @@ typedef struct _I830Rec {
/* Stolen memory support */
Bool StolenOnly;
-#if 0
- /* Video BIOS support. */
- vbeInfoPtr pVbe;
-#endif
-
Bool swfSaved;
CARD32 saveSWF0;
CARD32 saveSWF4;
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 1e92dac8..dd96ff1a 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -367,13 +367,6 @@ I830FreeRec(ScrnInfoPtr pScrn)
pI830 = I830PTR(pScrn);
-#if 0
- if (I830IsPrimary(pScrn)) {
- if (pI830->pVbe)
- vbeFree(pI830->pVbe);
- }
-#endif
-
xfree(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;
}
@@ -547,20 +540,6 @@ I830DetectMemory(ScrnInfoPtr pScrn)
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "no video memory detected.\n");
}
-#if 0
- /* Sanity check: compare with what the BIOS thinks. */
- vbeInfo = VBEGetVBEInfo(pI830->pVbe);
- if (vbeInfo != NULL && vbeInfo->TotalMemory != memsize / 1024 / 64) {
- xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
- "Detected stolen memory (%d kB) doesn't match what the BIOS"
- " reports (%d kB)\n",
- ROUND_DOWN_TO(memsize / 1024, 64),
- vbeInfo->TotalMemory * 64);
- }
- if (vbeInfo != NULL)
- VBEFreeVBEInfo(vbeInfo);
-#endif
-
return memsize;
}
@@ -1007,19 +986,6 @@ I830PreInit(ScrnInfoPtr pScrn, int flags)
/* We have to use PIO to probe, because we haven't mapped yet. */
I830SetPIOAccess(pI830);
-#if 0
- /* Initialize VBE record */
- if (I830IsPrimary(pScrn)) {
- if ((pI830->pVbe = VBEInit(NULL, pI830->pEnt->index)) == NULL) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "VBE initialization failed.\n");
- return FALSE;
- }
- } else {
- I830Ptr pI8301 = I830PTR(pI830->entityPrivate->pScrn_1);
- pI830->pVbe = pI8301->pVbe;
- }
-#endif
-
switch (pI830->PciInfo->chipType) {
case PCI_CHIP_I830_M:
chipname = "830M";