Commit 092f0f10 authored by Adam Jackson's avatar Adam Jackson
Browse files

Make ISA optional

parent 73ff2d0c
...@@ -59,6 +59,14 @@ XORG_DRIVER_CHECK_EXT(XV, videoproto) ...@@ -59,6 +59,14 @@ XORG_DRIVER_CHECK_EXT(XV, videoproto)
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
sdkdir=$(pkg-config --variable=sdkdir xorg-server) sdkdir=$(pkg-config --variable=sdkdir xorg-server)
save_CFLAGS="$CFLAGS"
CFLAGS="$XORG_CFLAGS"
AC_CHECK_DECL(xf86ConfigIsaEntity,
[AC_DEFINE(HAVE_ISA, 1, [Have ISA support])],
[],
[#include "xf86.h"])
CFLAGS="$save_CFLAGS"
AM_CONDITIONAL(PCIACCESS, [test "x$PCIACCESS" = xyes]) AM_CONDITIONAL(PCIACCESS, [test "x$PCIACCESS" = xyes])
if test "x$PCIACCESS" = xyes; then if test "x$PCIACCESS" = xyes; then
AC_DEFINE(PCIACCESS, 1, [Use libpciaccess]) AC_DEFINE(PCIACCESS, 1, [Use libpciaccess])
......
...@@ -373,9 +373,7 @@ FBDevProbe(DriverPtr drv, int flags) ...@@ -373,9 +373,7 @@ FBDevProbe(DriverPtr drv, int flags)
for (i = 0; i < numDevSections; i++) { for (i = 0; i < numDevSections; i++) {
Bool isIsa = FALSE; Bool isIsa = FALSE;
#ifndef XSERVER_LIBPCIACCESS
Bool isPci = FALSE; Bool isPci = FALSE;
#endif
dev = xf86FindOptionValue(devSections[i]->options,"fbdev"); dev = xf86FindOptionValue(devSections[i]->options,"fbdev");
if (devSections[i]->busID) { if (devSections[i]->busID) {
...@@ -387,14 +385,18 @@ FBDevProbe(DriverPtr drv, int flags) ...@@ -387,14 +385,18 @@ FBDevProbe(DriverPtr drv, int flags)
isPci = TRUE; isPci = TRUE;
} else } else
#endif #endif
#ifdef HAVE_ISA
if (xf86ParseIsaBusString(devSections[i]->busID)) if (xf86ParseIsaBusString(devSections[i]->busID))
isIsa = TRUE; isIsa = TRUE;
else
#endif
0;
} }
if (fbdevHWProbe(NULL,dev,NULL)) { if (fbdevHWProbe(NULL,dev,NULL)) {
pScrn = NULL; pScrn = NULL;
#ifndef XSERVER_LIBPCIACCESS
if (isPci) { if (isPci) {
#ifndef XSERVER_LIBPCIACCESS
/* XXX what about when there's no busID set? */ /* XXX what about when there's no busID set? */
int entity; int entity;
...@@ -410,9 +412,9 @@ FBDevProbe(DriverPtr drv, int flags) ...@@ -410,9 +412,9 @@ FBDevProbe(DriverPtr drv, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, xf86DrvMsg(pScrn->scrnIndex, X_CONFIG,
"claimed PCI slot %d:%d:%d\n",bus,device,func); "claimed PCI slot %d:%d:%d\n",bus,device,func);
} else
#endif #endif
if (isIsa) { } else if (isIsa) {
#ifdef HAVE_ISA
int entity; int entity;
entity = xf86ClaimIsaSlot(drv, 0, entity = xf86ClaimIsaSlot(drv, 0,
...@@ -420,6 +422,7 @@ FBDevProbe(DriverPtr drv, int flags) ...@@ -420,6 +422,7 @@ FBDevProbe(DriverPtr drv, int flags)
pScrn = xf86ConfigIsaEntity(pScrn,0,entity, pScrn = xf86ConfigIsaEntity(pScrn,0,entity,
NULL,RES_SHARED_VGA, NULL,RES_SHARED_VGA,
NULL,NULL,NULL,NULL); NULL,NULL,NULL,NULL);
#endif
} else { } else {
int entity; int entity;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment