/* * (C) 2010-2013 Stefan Seyfried * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include #include "pwrmngr.h" #include "hal_debug.h" #include #include #include #include #include #include #include #define hal_debug(args...) _hal_debug(HAL_DEBUG_PWRMNGR, this, args) #define hal_info(args...) _hal_info(HAL_DEBUG_PWRMNGR, this, args) /* cpufreqmanager */ void cCpuFreqManager::Up(void) { hal_debug("%s\n", __func__); } void cCpuFreqManager::Down(void) { hal_debug("%s\n", __func__); } void cCpuFreqManager::Reset(void) { hal_debug("%s\n", __func__); } /* those function dummies return true or "harmless" values */ bool cCpuFreqManager::SetDelta(unsigned long) { hal_debug("%s\n", __func__); return true; } unsigned long cCpuFreqManager::GetDelta(void) { hal_debug("%s\n", __func__); return 0; } unsigned long cCpuFreqManager::GetCpuFreq(void) { hal_debug("%s\n", __func__); return 0; } bool cCpuFreqManager::SetCpuFreq(unsigned long f) { hal_info("%s(%lu) => set standby = %s\n", __func__, f, f ? "true" : "false"); return true; } cCpuFreqManager::cCpuFreqManager(void) { hal_debug("%s\n", __func__); } /* powermanager */ bool cPowerManager::Open(void) { hal_debug("%s\n", __func__); return true; } void cPowerManager::Close(void) { hal_debug("%s\n", __func__); } bool cPowerManager::SetStandby(bool Active, bool Passive) { hal_debug("%s(%d, %d)\n", __func__, Active, Passive); return true; } cPowerManager::cPowerManager(void) { hal_debug("%s\n", __func__); } cPowerManager::~cPowerManager() { hal_debug("%s\n", __func__); }