1b3b088e2SDale B Stimson /* SPDX-License-Identifier: MIT */ 2b3b088e2SDale B Stimson 3b3b088e2SDale B Stimson /* 4b3b088e2SDale B Stimson * Copyright © 2022 Intel Corporation 5b3b088e2SDale B Stimson */ 6b3b088e2SDale B Stimson 7b3b088e2SDale B Stimson #ifndef __I915_HWMON_H__ 8b3b088e2SDale B Stimson #define __I915_HWMON_H__ 9b3b088e2SDale B Stimson 10*1b44019aSAshutosh Dixit #include <linux/types.h> 11*1b44019aSAshutosh Dixit 12b3b088e2SDale B Stimson struct drm_i915_private; 13*1b44019aSAshutosh Dixit struct intel_gt; 14b3b088e2SDale B Stimson 15b3b088e2SDale B Stimson #if IS_REACHABLE(CONFIG_HWMON) 16b3b088e2SDale B Stimson void i915_hwmon_register(struct drm_i915_private *i915); 17b3b088e2SDale B Stimson void i915_hwmon_unregister(struct drm_i915_private *i915); 18*1b44019aSAshutosh Dixit void i915_hwmon_power_max_disable(struct drm_i915_private *i915, bool *old); 19*1b44019aSAshutosh Dixit void i915_hwmon_power_max_restore(struct drm_i915_private *i915, bool old); 20b3b088e2SDale B Stimson #else i915_hwmon_register(struct drm_i915_private * i915)21b3b088e2SDale B Stimsonstatic inline void i915_hwmon_register(struct drm_i915_private *i915) { }; i915_hwmon_unregister(struct drm_i915_private * i915)22b3b088e2SDale B Stimsonstatic inline void i915_hwmon_unregister(struct drm_i915_private *i915) { }; i915_hwmon_power_max_disable(struct drm_i915_private * i915,bool * old)23*1b44019aSAshutosh Dixitstatic inline void i915_hwmon_power_max_disable(struct drm_i915_private *i915, bool *old) { }; i915_hwmon_power_max_restore(struct drm_i915_private * i915,bool old)24*1b44019aSAshutosh Dixitstatic inline void i915_hwmon_power_max_restore(struct drm_i915_private *i915, bool old) { }; 25b3b088e2SDale B Stimson #endif 26b3b088e2SDale B Stimson 27b3b088e2SDale B Stimson #endif /* __I915_HWMON_H__ */ 28