00001 /* 00002 * This file is part of contentLister. 00003 * 00004 * contentLister is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * contentLister is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00028 /* contentLister - A GTK based content lister (read only) application on the eReader platform 00029 * Copyright (C) 2005-2008 iRex Technologies B.V. 00030 * 00031 */ 00032 00033 #ifndef __POWERMANAGER__H__ 00034 #define __POWERMANAGER__H__ 00035 00036 #define MHZ 1000 // CPU speed is in KHz, not MHz 00037 #define CPU_FULL_SPEED_FREQUENCY 400 * MHZ 00038 #define CPU_HALF_SPEED_FREQUENCY 200 * MHZ 00039 #define CPU_IDLE_SPEED_FREQUENCY 33 * MHZ 00040 00041 #define CPU_FULL_SPEED_TIMEOUT 0 // Do it NOW 00042 #define CPU_HALF_SPEED_TIMEOUT 3 00043 #define CPU_IDLE_SPEED_TIMEOUT 10 00044 00045 #ifdef __cplusplus 00046 extern "C" { 00047 #endif /* __cplusplus */ 00048 00049 int power_init(); 00050 00051 void power_cpu_full(); 00052 00053 void power_cpu_half(); 00054 00055 void power_cpu_idle(); 00056 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif /* __cplusplus */ 00061 00062 #endif