Commit | Line | Data |
---|---|---|
9c878557 CW |
1 | /* SPDX-License-Identifier: MIT */ |
2 | /* | |
3 | * Copyright © 2020 Intel Corporation | |
4 | */ | |
5 | ||
6 | #ifndef __INTEL_GT_CLOCK_UTILS_H__ | |
7 | #define __INTEL_GT_CLOCK_UTILS_H__ | |
8 | ||
9 | #include <linux/types.h> | |
10 | ||
11 | struct intel_gt; | |
12 | ||
13 | void intel_gt_init_clock_frequency(struct intel_gt *gt); | |
14 | ||
15 | #if IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM) | |
16 | void intel_gt_check_clock_frequency(const struct intel_gt *gt); | |
17 | #else | |
18 | static inline void intel_gt_check_clock_frequency(const struct intel_gt *gt) {} | |
19 | #endif | |
20 | ||
21 | u32 intel_gt_clock_interval_to_ns(const struct intel_gt *gt, u32 count); | |
22 | u32 intel_gt_pm_interval_to_ns(const struct intel_gt *gt, u32 count); | |
23 | ||
24 | u32 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u32 ns); | |
25 | u32 intel_gt_ns_to_pm_interval(const struct intel_gt *gt, u32 ns); | |
26 | ||
27 | #endif /* __INTEL_GT_CLOCK_UTILS_H__ */ |