diff options
author | Adam Jackson <ajax@redhat.com> | 2008-11-23 20:04:30 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-11-23 20:04:30 -0500 |
commit | 092f0f10cb243ef011a38a92e4eb48d424de80fa (patch) | |
tree | 5206b0c72d47a7ed8eeb6547d080f8fa4788b832 /src | |
parent | 73ff2d0cd72a165ecfb30b1620bda3b445d04409 (diff) | |
download | xorg-driver-xf86-video-fbdev-092f0f10cb243ef011a38a92e4eb48d424de80fa.tar.gz |
Make ISA optional
Diffstat (limited to 'src')
-rw-r--r-- | src/fbdev.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fbdev.c b/src/fbdev.c index df278f5..7f1a749 100644 --- a/src/fbdev.c +++ b/src/fbdev.c @@ -373,9 +373,7 @@ FBDevProbe(DriverPtr drv, int flags) for (i = 0; i < numDevSections; i++) { Bool isIsa = FALSE; -#ifndef XSERVER_LIBPCIACCESS Bool isPci = FALSE; -#endif dev = xf86FindOptionValue(devSections[i]->options,"fbdev"); if (devSections[i]->busID) { @@ -387,14 +385,18 @@ FBDevProbe(DriverPtr drv, int flags) isPci = TRUE; } else #endif +#ifdef HAVE_ISA if (xf86ParseIsaBusString(devSections[i]->busID)) isIsa = TRUE; + else +#endif + 0; } if (fbdevHWProbe(NULL,dev,NULL)) { pScrn = NULL; -#ifndef XSERVER_LIBPCIACCESS if (isPci) { +#ifndef XSERVER_LIBPCIACCESS /* XXX what about when there's no busID set? */ int entity; @@ -410,9 +412,9 @@ FBDevProbe(DriverPtr drv, int flags) xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "claimed PCI slot %d:%d:%d\n",bus,device,func); - } else #endif - if (isIsa) { + } else if (isIsa) { +#ifdef HAVE_ISA int entity; entity = xf86ClaimIsaSlot(drv, 0, @@ -420,6 +422,7 @@ FBDevProbe(DriverPtr drv, int flags) pScrn = xf86ConfigIsaEntity(pScrn,0,entity, NULL,RES_SHARED_VGA, NULL,NULL,NULL,NULL); +#endif } else { int entity; |