From c8ac925d54a7a1d6daa97e5f934f9b986a772181 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Sun, 9 Mar 1997 16:40:13 +0000 Subject: [PATCH] Added PC-98 specific function to get battery status. Submitted by: URATA Shuichiro --- sys/i386/include/apm_bios.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/i386/include/apm_bios.h b/sys/i386/include/apm_bios.h index 830005a28c38..e60ebd075341 100644 --- a/sys/i386/include/apm_bios.h +++ b/sys/i386/include/apm_bios.h @@ -12,7 +12,7 @@ * * Aug, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id$ + * $Id: apm_bios.h,v 1.15 1997/02/22 09:33:54 peter Exp $ */ #ifndef _MACHINE_APM_BIOS_H_ @@ -60,11 +60,19 @@ #define APM_SETPWSTATE 0x07 #define APM_ENABLEDISABLEPM 0x08 #define APM_RESTOREDEFAULT 0x09 +#ifdef PC98 +#define APM_GETPWSTATUS 0x3a +#else #define APM_GETPWSTATUS 0x0a +#endif #define APM_GETPMEVENT 0x0b #define APM_GETPWSTATE 0x0c #define APM_ENABLEDISABLEDPM 0x0d +#ifdef PC98 +#define APM_DRVVERSION 0x3e +#else #define APM_DRVVERSION 0x0e +#endif #define APM_ENGAGEDISENGAGEPM 0x0f #define APM_OEMFUNC 0x80