mt_spm_conservation.h 656 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MT_SPM_CONSERVATION_H
  7. #define MT_SPM_CONSERVATION_H
  8. #include <mt_spm_internal.h>
  9. extern int spm_conservation(int state_id, unsigned int ext_opand,
  10. struct spm_lp_scen *spm_lp,
  11. unsigned int resource_req);
  12. extern void spm_conservation_finish(int state_id, unsigned int ext_opand,
  13. struct spm_lp_scen *spm_lp,
  14. struct wake_status **status);
  15. extern int spm_conservation_get_result(struct wake_status **res);
  16. extern void spm_conservation_pwrctrl_init(struct pwr_ctrl *pwrctrl);
  17. #endif /* MT_SPM_CONSERVATION_H */