1 /* 2 * Copyright (c) 2022, MediaTek Inc. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef MT_SPM_IDLE_H 8 #define MT_SPM_IDLE_H 9 10 typedef void (*spm_idle_conduct)(struct spm_lp_scen *spm_lp, unsigned int *resource_req); 11 12 typedef int (*spm_idle_conduct_restore)(int state_id, 13 struct spm_lp_scen *spm_lp, 14 struct wake_status *status); 15 16 int mt_spm_idle_generic_enter(int state_id, unsigned int ext_opand, spm_idle_conduct fn); 17 18 void mt_spm_idle_generic_resume(int state_id, unsigned int ext_opand, 19 struct wake_status **status, 20 spm_idle_conduct_restore fn); 21 22 void mt_spm_idle_generic_init(void); 23 24 #endif /* MT_SPM_IDLE_H */ 25