apm_bios.h (49248) | apm_bios.h (49292) |
---|---|
1/* 2 * APM (Advanced Power Management) BIOS Device Driver 3 * 4 * Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> 5 * 6 * This software may be used, modified, copied, and distributed, in 7 * both source and binary form provided that the above copyright and 8 * these terms are retained. Under no circumstances is the author 9 * responsible for the proper functioning of this software, nor does 10 * the author assume any responsibility for damages incurred with its 11 * use. 12 * 13 * Aug, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) 14 * | 1/* 2 * APM (Advanced Power Management) BIOS Device Driver 3 * 4 * Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> 5 * 6 * This software may be used, modified, copied, and distributed, in 7 * both source and binary form provided that the above copyright and 8 * these terms are retained. Under no circumstances is the author 9 * responsible for the proper functioning of this software, nor does 10 * the author assume any responsibility for damages incurred with its 11 * use. 12 * 13 * Aug, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) 14 * |
15 * $Id: apm_bios.h,v 1.23 1999/07/29 01:49:19 msmith Exp $ | 15 * $Id: apm_bios.h,v 1.24 1999/07/30 08:24:23 msmith Exp $ |
16 */ 17 18#ifndef _MACHINE_APM_BIOS_H_ 19#define _MACHINE_APM_BIOS_H_ 20 21#ifndef KERNEL 22#include <sys/types.h> 23#endif --- 190 unchanged lines hidden (view full) --- 214 u_int ai_batt_life; /* Remaining battery life in percent (0) */ 215 int ai_batt_time; /* Remaining battery time in seconds (0) */ 216 u_int ai_status; /* True if enabled (0) */ 217 u_int ai_batteries; /* Number of batteries (1) */ 218 u_int ai_capabilities;/* APM Capabilities (1) */ 219 u_int ai_spare[6]; /* For future expansion */ 220} *apm_info_t; 221 | 16 */ 17 18#ifndef _MACHINE_APM_BIOS_H_ 19#define _MACHINE_APM_BIOS_H_ 20 21#ifndef KERNEL 22#include <sys/types.h> 23#endif --- 190 unchanged lines hidden (view full) --- 214 u_int ai_batt_life; /* Remaining battery life in percent (0) */ 215 int ai_batt_time; /* Remaining battery time in seconds (0) */ 216 u_int ai_status; /* True if enabled (0) */ 217 u_int ai_batteries; /* Number of batteries (1) */ 218 u_int ai_capabilities;/* APM Capabilities (1) */ 219 u_int ai_spare[6]; /* For future expansion */ 220} *apm_info_t; 221 |
222struct apm_bios_arg { 223 u_long eax; 224 u_long ebx; 225 u_long ecx; 226 u_long edx; 227 u_long esi; 228 u_long edi; 229}; 230 |
|
222struct apm_event_info { 223 u_int type; 224 u_int index; 225 u_int spare[8]; 226}; 227 228#define APMIO_SUSPEND _IO('P', 1) 229#define APMIO_GETINFO_OLD _IOR('P', 2, struct apm_info_old) 230#define APMIO_ENABLE _IO('P', 5) 231#define APMIO_DISABLE _IO('P', 6) 232#define APMIO_HALTCPU _IO('P', 7) 233#define APMIO_NOTHALTCPU _IO('P', 8) 234#define APMIO_DISPLAY _IOW('P', 9, int) | 231struct apm_event_info { 232 u_int type; 233 u_int index; 234 u_int spare[8]; 235}; 236 237#define APMIO_SUSPEND _IO('P', 1) 238#define APMIO_GETINFO_OLD _IOR('P', 2, struct apm_info_old) 239#define APMIO_ENABLE _IO('P', 5) 240#define APMIO_DISABLE _IO('P', 6) 241#define APMIO_HALTCPU _IO('P', 7) 242#define APMIO_NOTHALTCPU _IO('P', 8) 243#define APMIO_DISPLAY _IOW('P', 9, int) |
244#define APMIO_BIOS _IOWR('P', 10, struct apm_bios_arg) |
|
235#define APMIO_GETINFO _IOR('P', 11, struct apm_info) 236#define APMIO_STANDBY _IO('P', 12) 237/* for /dev/apmctl */ 238#define APMIO_NEXTEVENT _IOR('A', 100, struct apm_event_info) 239#define APMIO_REJECTLASTREQ _IO('P', 101) 240 241#endif /* !ASSEMBLER && !INITIALIZER */ 242 243#endif /* !_MACHINE_APM_BIOS_H_ */ | 245#define APMIO_GETINFO _IOR('P', 11, struct apm_info) 246#define APMIO_STANDBY _IO('P', 12) 247/* for /dev/apmctl */ 248#define APMIO_NEXTEVENT _IOR('A', 100, struct apm_event_info) 249#define APMIO_REJECTLASTREQ _IO('P', 101) 250 251#endif /* !ASSEMBLER && !INITIALIZER */ 252 253#endif /* !_MACHINE_APM_BIOS_H_ */ |