diff options
author | Adam Jackson <ajax@redhat.com> | 2009-12-30 11:48:27 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-12-30 11:48:27 -0500 |
commit | 4b625d15b2bb3dc337924f0703db7ddd47c08434 (patch) | |
tree | e1036359942fe1ee30a0cd351c152ce3c55031ef | |
parent | 1a31829b966ceed444a3b3f7e91c5ae04d82c3ba (diff) | |
download | xorg-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.c | 19 | ||||
-rw-r--r-- | src/vesa.h | 6 |
2 files changed, 3 insertions, 22 deletions
@@ -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); @@ -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 */ |