wmbiff: removed autoconf directory.
[dockapps.git] / wmbattery / sonypi.h
blob9abd2f4ab648646224433de4efc9a691fc3cc0ba
1 int sonypi_supported(void);
2 int sonypi_read(apm_info *info);
4 /* There's no good place to get these constants, so I must define them
5 * myself. */
7 /* get battery full capacity/remaining capacity */
8 #define SONYPI_IOCGBAT1CAP _IOR('v', 2, uint16_t)
9 #define SONYPI_IOCGBAT1REM _IOR('v', 3, uint16_t)
10 #define SONYPI_IOCGBAT2CAP _IOR('v', 4, uint16_t)
11 #define SONYPI_IOCGBAT2REM _IOR('v', 5, uint16_t)
13 /* get battery flags: battery1/battery2/ac adapter present */
14 #define SONYPI_BFLAGS_B1 0x01
15 #define SONYPI_BFLAGS_B2 0x02
16 #define SONYPI_BFLAGS_AC 0x04
17 #define SONYPI_IOCGBATFLAGS _IOR('v', 7, uint8_t)