summaryrefslogtreecommitdiff
path: root/src/apm_driver.c
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-02-07 22:11:53 -0500
committerGaetan Nadon <memsize@videotron.ca>2010-04-07 10:42:39 -0400
commit7347b7d2196a6a2aed31259824321758e0265b85 (patch)
tree01b88ccebe4aca44ebaf9f3675ee1c73c992f8f8 /src/apm_driver.c
parent04fd172cc61036732f22cc8d30c60e89c954dede (diff)
config: remove ISA bus code, support removed in xserver
Remove declaration check and AM conditional HAVE_ISA along with the code conditionnaly included. Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: RĂ©mi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src/apm_driver.c')
-rw-r--r--src/apm_driver.c80
1 files changed, 0 insertions, 80 deletions
diff --git a/src/apm_driver.c b/src/apm_driver.c
index 8dc3b3e..7cb1e0a 100644
--- a/src/apm_driver.c
+++ b/src/apm_driver.c
@@ -89,13 +89,6 @@ 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,
OPTION_SW_CURSOR,
@@ -236,57 +229,6 @@ ApmAvailableOptions(int chipid, int busid)
return ApmOptions;
}
-#ifdef HAVE_ISA
-static int
-ApmFindIsaDevice(GDevPtr dev)
-{
- char save = rdinx(0x3C4, 0x10);
- int i;
- int apmChip = -1;
-
- /*
- * Start by probing the VGA chipset.
- */
- outw(0x3C4, 0x1210);
- if (rdinx(0x3C4, 0x11) == 'P' && rdinx(0x3C4, 0x12) == 'r' &&
- rdinx(0x3C4, 0x13) == 'o') {
- char id_ap6420[] = "6420";
- char id_ap6422[] = "6422";
- char id_at24[] = "6424";
- char id_at3d[] = "AT3D";
- char idstring[] = " ";
-
- /*
- * Must be an Alliance !!!
- */
- for (i = 0; i < 4; i++)
- idstring[i] = rdinx(0x3C4, 0x14 + i);
- if (!memcmp(id_ap6420, idstring, 4) ||
- !memcmp(id_ap6422, idstring, 4))
- apmChip = AP6422;
- else if (!memcmp(id_at24, idstring, 4))
- apmChip = AT24;
- else if (!memcmp(id_at3d, idstring, 4))
- apmChip = AT3D;
- if (apmChip >= 0) {
- int apm_xbase;
-
- apm_xbase = (rdinx(0x3C4, 0x1F) << 8) | rdinx(0x3C4, 0x1E);
-
- if (!(wrinx(0x3C4, 0x1D, 0xCA >> 2), inb(apm_xbase + 2))) {
- /*
- * TODO Not PCI
- */
- }
-
- }
- }
- wrinx(0x3C4, 0x10, save);
-
- return apmChip;
-}
-#endif
-
static void
ApmAssignFPtr(ScrnInfoPtr pScrn)
{
@@ -357,28 +299,6 @@ ApmProbe(DriverPtr drv, int flags)
}
}
-#ifdef HAVE_ISA
- /* Check for non-PCI cards */
- numUsed = xf86MatchIsaInstances(APM_NAME, ApmChipsets,
- ApmIsaChipsets, drv, ApmFindIsaDevice, DevSections,
- numDevSections, &usedChips);
- if (numUsed > 0) {
- if (flags & PROBE_DETECT)
- foundScreen = TRUE;
- else for (i = 0; i < numUsed; i++) {
- ScrnInfoPtr pScrn = NULL;
- if ((pScrn = xf86ConfigIsaEntity(pScrn, 0, usedChips[i],
- ApmIsaChipsets, NULL, NULL, NULL,
- NULL, NULL))) {
- /*
- * Fill in what we can of the ScrnInfoRec
- */
- ApmAssignFPtr(pScrn);
- foundScreen = TRUE;
- }
- }
- }
-#endif
xfree(DevSections);
return foundScreen;