summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios/apm.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1999-12-02 03:13:11 +0000
committerjlemon <jlemon@FreeBSD.org>1999-12-02 03:13:11 +0000
commit8824ec0de59e23f6f51ea3e13cb7a7adb3e289b5 (patch)
tree2341fbd3c81f765711323c5a0e5f921eb8ceb229 /sys/i386/bios/apm.c
parent35dcdd84993997a7fbd03842c8aa1cfe546fc29f (diff)
downloadFreeBSD-src-8824ec0de59e23f6f51ea3e13cb7a7adb3e289b5.zip
FreeBSD-src-8824ec0de59e23f6f51ea3e13cb7a7adb3e289b5.tar.gz
Remove code to select APM version with flags to the apm0 device. This
code has been disabled for the last 4 months. Prodded into action by: n_hibma
Diffstat (limited to 'sys/i386/bios/apm.c')
-rw-r--r--sys/i386/bios/apm.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index 307b697..246543e 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -1026,28 +1026,11 @@ apm_attach(device_t dev)
sc->bios.seg.code16.limit, sc->bios.seg.data.limit);
#endif /* APM_DEBUG */
-#if 0
/*
- * XXX this may not be needed anymore
- */
- if ((flags & 0x10)) {
- if ((flags & 0xf) >= 0x2) {
- apm_driver_version(0x102);
- }
- if (!apm_version && (flags & 0xf) >= 0x1) {
- apm_driver_version(0x101);
- }
- } else {
- apm_driver_version(0x102);
- if (!apm_version)
- apm_driver_version(0x101);
- }
-#endif
- /*
- * In one test, apm bios version was 1.02; an attempt to register
- * a 1.04 driver resulted in a 1.00 connection! Registering a
- * 1.02 driver resulted in a 1.02 connection.
- */
+ * In one test, apm bios version was 1.02; an attempt to register
+ * a 1.04 driver resulted in a 1.00 connection! Registering a
+ * 1.02 driver resulted in a 1.02 connection.
+ */
drv_version = apm_version > 0x102 ? 0x102 : apm_version;
for (; drv_version > 0x100; drv_version--)
if (apm_driver_version(drv_version) == 0)
OpenPOWER on IntegriCloud