aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/apm
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1999-07-30 19:35:21 +0000
committerMike Smith <msmith@FreeBSD.org>1999-07-30 19:35:21 +0000
commit0f1331a827f0d28eb8a115d2f2a3a3bbffd4c18c (patch)
treeee15f5ea512423c38a9bde57124c54ca16a1d76f /usr.sbin/apm
parent600d8382d9a65a963d07faecda267269c7306332 (diff)
downloadsrc-0f1331a827f0d28eb8a115d2f2a3a3bbffd4c18c.tar.gz
src-0f1331a827f0d28eb8a115d2f2a3a3bbffd4c18c.zip
Reenable use of the APMIO_BIOS ioctl for now.
Notes
Notes: svn path=/head/; revision=49293
Diffstat (limited to 'usr.sbin/apm')
-rw-r--r--usr.sbin/apm/apm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c
index 0b865bdb1414..81efc272faf6 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.16 1999/07/20 15:37:28 green Exp $";
+ "$Id: apm.c,v 1.17 1999/07/30 16:15:11 msmith Exp $";
#endif /* not lint */
#include <sys/file.h>
@@ -168,7 +168,6 @@ 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;
@@ -224,7 +223,6 @@ 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)
@@ -284,13 +282,9 @@ 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