14cfc65414
1.1 Don't use the plugin_get_buffer() so the playlist viewer should work with this plugin running; 1.2 Added new columns for charger inserted, charging, usb powered; 1.3 Some other small improvements 2. charger_inserted() again returns only the AC/DC charger state on H3x0, doesn't include the usb state; 3. Some ifdefs corrected in power.c and power.h; git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8607 a1c6a512-1295-4272-9138-f99709370657
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/***************************************************************************
|
|
* __________ __ ___.
|
|
* 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_
|
|
|
|
#ifdef HAVE_CHARGE_CTRL
|
|
extern bool charger_enabled;
|
|
void charger_enable(bool on);
|
|
#endif
|
|
|
|
#ifdef HAVE_CHARGING
|
|
bool charger_inserted(void);
|
|
#endif
|
|
|
|
void power_off(void);
|
|
void ide_power_enable(bool on);
|
|
|
|
#ifndef SIMULATOR
|
|
|
|
void power_init(void);
|
|
|
|
# ifdef HAVE_CHARGE_STATE
|
|
bool charging_state(void);
|
|
# endif
|
|
|
|
bool ide_powered(void);
|
|
#endif
|
|
|
|
#ifdef HAVE_SPDIF_POWER
|
|
void spdif_power_enable(bool on);
|
|
#endif
|
|
|
|
#ifdef CONFIG_TUNER
|
|
extern bool radio_power(bool status);
|
|
extern bool radio_powered(void);
|
|
#endif
|
|
|
|
#endif
|