1 /* 2 * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. 3 * Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved. 4 * Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved. 5 * 6 * SPDX-License-Identifier: BSD-3-Clause 7 */ 8 9 /* 10 * Contains APU specific macros and macros to be defined depending on 11 * the execution environment. 12 */ 13 14 #ifndef PM_CLIENT_H 15 #define PM_CLIENT_H 16 17 #include "pm_common.h" 18 #include "pm_defs.h" 19 20 /* Functions to be implemented by each PU */ 21 void pm_client_suspend(const struct pm_proc *proc, uint32_t state); 22 void pm_client_abort_suspend(void); 23 void pm_client_wakeup(const struct pm_proc *proc); 24 25 /* Global variables to be set in pm_client.c */ 26 extern const struct pm_proc *primary_proc; 27 28 #if defined(PLAT_zynqmp) 29 enum pm_ret_status pm_set_suspend_mode(uint32_t mode); 30 const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid); 31 #endif /* PLAT_zynqmp */ 32 33 #endif /* PM_CLIENT_H */ 34