mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
Origin commit data
------------------
Branch: master
Commit: c1f3cb446c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-07 (Sun, 07 Nov 2021)
Origin message was:
------------------
- remove DUCKBOX_HARDWARE
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
108 lines
2.2 KiB
C++
108 lines
2.2 KiB
C++
/*
|
|
* (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 <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "pwrmngr.h"
|
|
#include "hal_debug.h"
|
|
|
|
#include <stdio.h>
|
|
#include <cstdlib>
|
|
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
|
|
#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__);
|
|
}
|