2 * Copyright 2004-2011, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef POWER_MANAGMENT_H
6 #define POWER_MANAGMENT_H
14 // ioctl response with kMagicFreqID
15 IDENTIFY_DEVICE
= B_DEVICE_OP_CODES_END
+ 20001,
18 GET_EXTENDED_BATTERY_INFO
,
25 // magic id returned by IDENTIFY_DEVICE
26 const uint32 kMagicACPIBatteryID
= 17822;
29 // Our known battery states
30 #define BATTERY_DISCHARGING 0x01
31 #define BATTERY_CHARGING 0x02
32 #define BATTERY_CRITICAL_STATE 0x04
49 int design_capacity_warning
;
50 int design_capacity_low
;
51 int capacity_granularity_1
;
52 int capacity_granularity_2
;
53 char model_number
[32];
54 char serial_number
[32];
57 } acpi_extended_battery_info
;