summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-11-23 17:50:37 -0500
committerAdam Jackson <ajax@redhat.com>2008-11-23 19:56:06 -0500
commitc0a4a2528dbaba95fec181552ccb0f00e1ede2ea (patch)
tree9188e211d831800eb996011576fdaf9efdd6f6d4 /src
parent33edd3514fbfbd8b36a8568dbe021d0df99e6743 (diff)
Make ISA optional
Diffstat (limited to 'src')
-rw-r--r--src/apm_driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/apm_driver.c b/src/apm_driver.c
index 443c191..cbb2f43 100644
--- a/src/apm_driver.c
+++ b/src/apm_driver.c
@@ -82,10 +82,12 @@ static PciChipsets ApmPciChipsets[] = {
{ -1, -1, RES_UNDEFINED }
};
+#ifdef HAVE_ISA
static IsaChipsets ApmIsaChipsets[] = {
{ PCI_CHIP_AP6422, RES_EXCLUSIVE_VGA},
{-1, RES_UNDEFINED}
};
+#endif
typedef enum {
OPTION_SET_MCLK,
@@ -328,6 +330,7 @@ ApmAvailableOptions(int chipid, int busid)
return ApmOptions;
}
+#ifdef HAVE_ISA
static int
ApmFindIsaDevice(GDevPtr dev)
{
@@ -376,6 +379,7 @@ ApmFindIsaDevice(GDevPtr dev)
return apmChip;
}
+#endif
static void
ApmAssignFPtr(ScrnInfoPtr pScrn)
@@ -447,6 +451,7 @@ ApmProbe(DriverPtr drv, int flags)
}
}
+#ifdef HAVE_ISA
/* Check for non-PCI cards */
numUsed = xf86MatchIsaInstances(APM_NAME, ApmChipsets,
ApmIsaChipsets, drv, ApmFindIsaDevice, DevSections,
@@ -467,6 +472,8 @@ ApmProbe(DriverPtr drv, int flags)
}
}
}
+#endif
+
xfree(DevSections);
return foundScreen;
}