1 /***************************************************************************
2 power_management.h - description
5 copyright : (C) 2003 by Noberasco Michele
6 e-mail : 2001s098@educ.disi.unige.it
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * GNU General Public License for more details. *
21 * You should have received a copy of the GNU General Public License *
22 * along with this program; if not, write to the *
23 * Free Software Foundation, Inc., *
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
26 ***************************************************************************/
37 kernel_versions kernel_version
;
41 int battery_percentage
;
54 int waittime
; /* /proc polling time */
55 char *cpufreq_online_governor
;
56 char *cpufreq_offline_governor
;
58 int pm_support(int which_battery
);
59 void get_power_status(pm_status
*power_status
);
60 void set_pm_features(void);
61 int fast_battery_charge(int toggle
);
62 int get_fast_battery_charge_mode(void);
63 void set_noflushd_use(int toggle
);
64 void set_toshiba_hardware_use(int toggle
);
65 void set_cpufreq_use(int toggle
);
66 void lcdBrightness_UpOneStep();
67 void lcdBrightness_DownOneStep();