1 /* 2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef SYSTEM_ARCH_X86_APM_DEFS_H 6 #define SYSTEM_ARCH_X86_APM_DEFS_H 7 8 9 #include <SupportDefs.h> 10 11 12 // temporary generic syscall interface 13 #define APM_SYSCALLS "apm" 14 #define APM_GET_BATTERY_INFO 1 15 16 struct apm_battery_info { 17 bool online; 18 int32 percent; 19 time_t time_left; 20 }; 21 22 23 #endif /* SYSTEM_ARCH_X86_APM_DEFS_H */ 24