aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1999-07-30 16:15:11 +0000
committerMike Smith <msmith@FreeBSD.org>1999-07-30 16:15:11 +0000
commit0f8db20beb3587d3f084b3d9fcd9cf0b9cc2e4c0 (patch)
treef5ff6525a3fcfd41acc50ae1d50a4a4f9834c235
parent17e66307604da3e603050b4d49e1633e1bcda73f (diff)
downloadsrc-0f8db20beb3587d3f084b3d9fcd9cf0b9cc2e4c0.tar.gz
src-0f8db20beb3587d3f084b3d9fcd9cf0b9cc2e4c0.zip
Erk, more APMIO_BIOS stuff I missed. Temporarily disable the resume timer
support until I can implement it as an ioctl proper. Submitted by: N.Dudorov <nnd@mail.nsk.ru>
Notes
Notes: svn path=/head/; revision=49286
-rw-r--r--usr.sbin/apm/apm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c
index e070915f0b95..0b865bdb1414 100644
--- a/usr.sbin/apm/apm.c
+++ b/usr.sbin/apm/apm.c
@@ -15,7 +15,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: apm.c,v 1.15 1999/07/20 15:31:23 green Exp $";
+ "$Id: apm.c,v 1.16 1999/07/20 15:37:28 green Exp $";
#endif /* not lint */
#include <sys/file.h>
@@ -168,6 +168,7 @@ print_all_info(int fd, apm_info_t aip)
/*
* try to get the suspend timer
*/
+#if 0
bzero(&args, sizeof(args));
args.eax = (APM_BIOS) << 8 | APM_RESUMETIMER;
args.ebx = PMDV_APMBIOS;
@@ -223,7 +224,7 @@ print_all_info(int fd, apm_info_t aip)
printf("Resume on ring indicator: %sabled\n",
args.ecx ? "en" : "dis");
}
-
+#endif
if (aip->ai_infoversion >= 1) {
printf("APM Capacities:\n", aip->ai_capabilities);
if (aip->ai_capabilities == 0xff00)
@@ -283,9 +284,13 @@ apm_set_timer(int fd, int delta)
} else {
args.ecx = 0x0000;
}
+#if 0
if (ioctl(fd, APMIO_BIOS, &args)) {
err(1,"Set resume timer");
}
+#else
+ errx(1,"set resume timer not supported");
+#endif
}
int