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-2023, 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 #if !defined(PLAT_zynqmp) 26 enum pm_device_node_idx irq_to_pm_node_idx(uint32_t irq); 27 #endif 28 29 /* Global variables to be set in pm_client.c */ 30 extern const struct pm_proc *primary_proc; 31 32 #if defined(PLAT_zynqmp) 33 enum pm_ret_status pm_set_suspend_mode(uint32_t mode); 34 const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid); 35 #endif /* PLAT_zynqmp */ 36 37 #endif /* PM_CLIENT_H */ 38