2002-07-04 16:09:23 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Linus Nielsen Feltzing
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _POWER_H_
|
|
|
|
#define _POWER_H_
|
|
|
|
|
2006-06-06 22:23:52 +00:00
|
|
|
#if CONFIG_CHARGING == CHARGING_CONTROL
|
2002-08-06 10:50:50 +00:00
|
|
|
extern bool charger_enabled;
|
2006-02-07 14:46:03 +00:00
|
|
|
void charger_enable(bool on);
|
2002-08-06 10:50:50 +00:00
|
|
|
#endif
|
|
|
|
|
2007-02-18 05:32:06 +00:00
|
|
|
#if CONFIG_CHARGING
|
2002-07-04 16:09:23 +00:00
|
|
|
bool charger_inserted(void);
|
2006-02-07 14:46:03 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void power_off(void);
|
2002-07-04 16:09:23 +00:00
|
|
|
void ide_power_enable(bool on);
|
2006-02-07 14:46:03 +00:00
|
|
|
|
2006-06-06 22:23:52 +00:00
|
|
|
# if CONFIG_CHARGING == CHARGING_MONITOR
|
2006-02-07 14:46:03 +00:00
|
|
|
bool charging_state(void);
|
|
|
|
# endif
|
|
|
|
|
2007-08-12 19:49:03 +00:00
|
|
|
#ifndef SIMULATOR
|
|
|
|
|
|
|
|
void power_init(void);
|
|
|
|
|
2003-12-03 01:03:54 +00:00
|
|
|
bool ide_powered(void);
|
2006-02-07 14:46:03 +00:00
|
|
|
#endif
|
2002-07-04 16:09:23 +00:00
|
|
|
|
2005-04-11 11:17:31 +00:00
|
|
|
#ifdef HAVE_SPDIF_POWER
|
|
|
|
void spdif_power_enable(bool on);
|
2006-11-13 23:21:54 +00:00
|
|
|
bool spdif_powered(void);
|
2005-04-11 11:17:31 +00:00
|
|
|
#endif
|
|
|
|
|
2007-02-18 08:46:12 +00:00
|
|
|
#if CONFIG_TUNER
|
2007-08-14 22:06:23 +00:00
|
|
|
bool tuner_power(bool status);
|
|
|
|
bool tuner_power_nolock(bool status);
|
2004-10-17 08:53:18 +00:00
|
|
|
#endif
|
|
|
|
|
2002-07-04 16:09:23 +00:00
|
|
|
#endif
|