mt_spm_idle.h 662 B

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