smart_battery.h 358 B

1234567891011121314
  1. #ifndef __SMART_BATTERY_H__
  2. #define __SMART_BATTERY_H__
  3. struct smart_battery_info
  4. {
  5. unsigned char status; // 0-NOT PRESENT, 1-CHARGING, 2-NOT CHARGED
  6. unsigned char capacity; // 0-100
  7. };
  8. int get_battery_info(struct smart_battery_info *info);
  9. int battery_acpi_driver_init(void);
  10. void battery_acpi_driver_exit(void);
  11. #endif