summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-12-30 11:48:27 -0500
committerAdam Jackson <ajax@redhat.com>2009-12-30 11:48:27 -0500
commit4b625d15b2bb3dc337924f0703db7ddd47c08434 (patch)
treee1036359942fe1ee30a0cd351c152ce3c55031ef
parent1a31829b966ceed444a3b3f7e91c5ae04d82c3ba (diff)
downloadxorg-driver-xf86-video-vesa-4b625d15b2bb3dc337924f0703db7ddd47c08434.tar.gz
Remove support for non-shadowfb banked framebuffer
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--src/vesa.c19
-rw-r--r--src/vesa.h6
2 files changed, 3 insertions, 22 deletions
diff --git a/src/vesa.c b/src/vesa.c
index 3b4423c..76a85eb 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -1045,22 +1045,9 @@ VESAScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
pScreen->CreateScreenResources = vesaCreateScreenResources;
}
else if (pVesa->mapPhys == 0xa0000) {
- unsigned int bankShift = 0;
- while ((unsigned)(64 >> bankShift) != mode->WinGranularity)
- bankShift++;
- pVesa->curBank = -1;
- pVesa->bank.SetSourceBank =
- pVesa->bank.SetDestinationBank =
- pVesa->bank.SetSourceAndDestinationBanks = VESABankSwitch;
- pVesa->bank.pBankA = pVesa->bank.pBankB = pVesa->base;
- pVesa->bank.BankSize = (mode->WinSize * 1024) >> bankShift;
- pVesa->bank.nBankDepth = pScrn->depth;
- if (!miInitializeBanking(pScreen, pScrn->virtualX, pScrn->virtualY,
- pScrn->virtualX, &pVesa->bank)) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "Bank switch initialization failed!\n");
- return (FALSE);
- }
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Banked framebuffer requires ShadowFB\n");
+ return FALSE;
}
VESADGAInit(pScrn, pScreen);
diff --git a/src/vesa.h b/src/vesa.h
index d5c69a9..4656e4c 100644
--- a/src/vesa.h
+++ b/src/vesa.h
@@ -64,14 +64,9 @@
/* Int 10 support */
#include "xf86int10.h"
-/* bank switching */
-#include "mibank.h"
-
/* Dga definitions */
#include "dgaproc.h"
-
-
#include "fb.h"
#ifdef XSERVER_LIBPCIACCESS
@@ -99,7 +94,6 @@ typedef struct _VESARec
pciVideoPtr pciInfo;
PCITAG pciTag;
#endif
- miBankInfoRec bank;
int curBank, bankSwitchWindowB;
CARD16 maxBytesPerScanline;
unsigned long mapPhys, mapOff, mapSize; /* video memory */