diff options
author | Dave Airlie <airlied@redhat.com> | 2009-07-28 11:08:35 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-28 11:08:35 +1000 |
commit | 32338c01531f26e599b69318157d86f9c1ea7d11 (patch) | |
tree | 825c9440ddcd0614c8641487091d35107e089e74 /src | |
parent | 6a2c6b45e88403d5e0d7a2ca2e4c24693809484f (diff) |
i740: fixup for rac/resources
Diffstat (limited to 'src')
-rw-r--r-- | src/i740_driver.c | 20 | ||||
-rw-r--r-- | src/i740_video.c | 1 |
2 files changed, 0 insertions, 21 deletions
diff --git a/src/i740_driver.c b/src/i740_driver.c index b563c00..1f855aa 100644 --- a/src/i740_driver.c +++ b/src/i740_driver.c @@ -52,8 +52,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86Resources.h" -#include "xf86RAC.h" #include "xf86cmap.h" /* If the driver uses port I/O directly, it needs: */ @@ -434,17 +432,9 @@ I740PreInit(ScrnInfoPtr pScrn, int flags) { pI740->PciInfo->func); #endif - if (xf86RegisterResources(pI740->pEnt->index, 0, ResNone)) - return FALSE; - if (pI740->usePIO) - pScrn->racIoFlags = RAC_FB | RAC_COLORMAP; - else - pScrn->racMemFlags = RAC_FB | RAC_COLORMAP; - /* Set pScrn->monitor */ pScrn->monitor = pScrn->confScreen->monitor; - flags24=Support24bppFb | Support32bppFb | SupportConvert32to24; if (!xf86SetDepthBpp(pScrn, 0, 0, 0, flags24)) { return FALSE; @@ -740,18 +730,8 @@ I740PreInit(ScrnInfoPtr pScrn, int flags) { /* We wont be using the VGA access after the probe */ if (!xf86ReturnOptValBool(pI740->Options, OPTION_USE_PIO, FALSE)) { - resRange vgaio[] = { {ResShrIoBlock,0x3B0,0x3BB}, - {ResShrIoBlock,0x3C0,0x3DF}, - _END }; - resRange vgamem[] = {{ResShrMemBlock,0xA0000,0xAFFFF}, - {ResShrMemBlock,0xB8000,0xBFFFF}, - {ResShrMemBlock,0xB0000,0xB7FFF}, - _END }; - pI740->usePIO=FALSE; I740SetMMIOAccess(pI740); - xf86SetOperatingState(vgaio, pI740->pEnt->index, ResUnusedOpr); - xf86SetOperatingState(vgamem, pI740->pEnt->index, ResDisableOpr); } else { pI740->usePIO=TRUE; } diff --git a/src/i740_video.c b/src/i740_video.c index ad6c5f9..8cfe09a 100644 --- a/src/i740_video.c +++ b/src/i740_video.c @@ -58,7 +58,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86Resources.h" #include "compiler.h" #include "xf86PciInfo.h" #include "xf86Pci.h" |