mt_spm_idle.h 517 B

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