mt_spm_idle.h 653 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2023, 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. #include "mt_spm_internal.h"
  9. typedef int (*spm_idle_conduct)(int state_id,
  10. struct spm_lp_scen *spm_lp,
  11. unsigned int *resource_req);
  12. typedef int (*spm_idle_conduct_restore)(int state_id,
  13. struct spm_lp_scen *spm_lp,
  14. struct wake_status *status);
  15. int mt_spm_idle_generic_enter(int state_id, unsigned int ext_opand, spm_idle_conduct fn);
  16. void mt_spm_idle_generic_resume(int state_id, unsigned int ext_opand,
  17. struct wake_status **status,
  18. spm_idle_conduct_restore fn);
  19. #endif