/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (C) 2019 Linaro Ltd. */ #ifndef __VENUS_PM_HELPERS_H__ #define __VENUS_PM_HELPERS_H__ struct device; struct venus_core; #define POWER_ON … #define POWER_OFF … struct venus_pm_ops { … }; const struct venus_pm_ops *venus_pm_get(enum hfi_version version); static inline int venus_pm_load_scale(struct venus_inst *inst) { … } static inline int venus_pm_acquire_core(struct venus_inst *inst) { … } static inline int venus_pm_release_core(struct venus_inst *inst) { … } #endif