/* SPDX-License-Identifier: GPL-2.0 */ /* * Definitions for talking to the PMU. The PMU is a microcontroller * which controls battery charging and system power on PowerBook 3400 * and 2400 models as well as the RTC and various other things. * * Copyright (C) 1998 Paul Mackerras.
*/ #ifndef _LINUX_PMU_H #define _LINUX_PMU_H
externint pmu_request(struct adb_request *req, void (*done)(struct adb_request *), int nbytes, ...); externint pmu_queue_request(struct adb_request *req); externvoid pmu_poll(void); externvoid pmu_poll_adb(void); /* For use by xmon */ externvoid pmu_wait_complete(struct adb_request *req);
/* For use before switching interrupts off for a long time; * warning: not stackable
*/ #ifdefined(CONFIG_ADB_PMU) externvoid pmu_suspend(void); externvoid pmu_resume(void); #else staticinlinevoid pmu_suspend(void)
{} staticinlinevoid pmu_resume(void)
{} #endif
/* some code needs to know if the PMU was suspended for hibernation */ #ifdefined(CONFIG_SUSPEND) && defined(CONFIG_PPC32) externint pmu_sys_suspended; #else /* if power management is not configured it can't be suspended */ #define pmu_sys_suspended 0 #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.