mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 lines
801 B
C
33 lines
801 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2014 Imagination Technologies
|
|
* Author: Paul Burton <paul.burton@mips.com>
|
|
*/
|
|
|
|
#ifndef __ASM_MIPS_MACH_MALTA_PM_H__
|
|
#define __ASM_MIPS_MACH_MALTA_PM_H__
|
|
|
|
#include <asm/mips-boards/piix4.h>
|
|
|
|
#ifdef CONFIG_MIPS_MALTA_PM
|
|
|
|
/**
|
|
* mips_pm_suspend - enter a suspend state
|
|
* @state: the state to enter, one of PIIX4_FUNC3IO_PMCNTRL_SUS_TYP_*
|
|
*
|
|
* Enters a suspend state via the Malta's PIIX4. If the state to be entered
|
|
* is one which loses context (eg. SOFF) then this function will never
|
|
* return.
|
|
*/
|
|
extern int mips_pm_suspend(unsigned state);
|
|
|
|
#else /* !CONFIG_MIPS_MALTA_PM */
|
|
|
|
static inline int mips_pm_suspend(unsigned state)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
|
|
#endif /* !CONFIG_MIPS_MALTA_PM */
|
|
|
|
#endif /* __ASM_MIPS_MACH_MALTA_PM_H__ */
|