1 /* 2 * Copyright (c) 2020, 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, 11 unsigned int *resource_req); 12 int mt_spm_idle_generic_enter(int state_id, unsigned int ext_opand, 13 spm_idle_conduct fn); 14 void mt_spm_idle_generic_resume(int state_id, unsigned int ext_opand, 15 struct wake_status **status); 16 void mt_spm_idle_generic_init(void); 17 #endif /* MT_SPM_IDLE_H */ 18