xref: /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8188/mt_spm_conservation.h (revision 79c262327aa8ccc1ae5a0ee7f7ead3bf5ce8e022)
1*45d50759SJames Liao /*
2*45d50759SJames Liao  * Copyright (c) 2023, MediaTek Inc. All rights reserved.
3*45d50759SJames Liao  *
4*45d50759SJames Liao  * SPDX-License-Identifier: BSD-3-Clause
5*45d50759SJames Liao  */
6*45d50759SJames Liao 
7*45d50759SJames Liao #ifndef MT_SPM_CONSERVATION_H
8*45d50759SJames Liao #define MT_SPM_CONSERVATION_H
9*45d50759SJames Liao 
10*45d50759SJames Liao #include "mt_spm_internal.h"
11*45d50759SJames Liao 
12*45d50759SJames Liao int spm_conservation(int state_id, unsigned int ext_opand,
13*45d50759SJames Liao 		     struct spm_lp_scen *spm_lp,
14*45d50759SJames Liao 		     unsigned int resource_req);
15*45d50759SJames Liao void spm_conservation_finish(int state_id, unsigned int ext_opand,
16*45d50759SJames Liao 			     struct spm_lp_scen *spm_lp,
17*45d50759SJames Liao 			     struct wake_status **status);
18*45d50759SJames Liao int spm_conservation_get_result(struct wake_status **res);
19*45d50759SJames Liao 
20*45d50759SJames Liao #endif /* MT_SPM_CONSERVATION_H */
21