1 /* $NetBSD: intel_acpi.h,v 1.5 2024/04/16 14:34:01 riastradh Exp $ */ 2 3 /* SPDX-License-Identifier: MIT */ 4 /* 5 * Copyright © 2019 Intel Corporation 6 */ 7 8 #ifndef __INTEL_ACPI_H__ 9 #define __INTEL_ACPI_H__ 10 11 #include <linux/acpi.h> 12 13 struct drm_i915_private; 14 15 #ifdef CONFIG_ACPI 16 #ifdef __NetBSD__ 17 void intel_register_dsm_handler(struct drm_i915_private *); 18 #else 19 void intel_register_dsm_handler(void); 20 #endif 21 void intel_unregister_dsm_handler(void); 22 #else 23 #ifdef __NetBSD__ intel_register_dsm_handler(struct drm_i915_private * i915)24static inline void intel_register_dsm_handler(struct drm_i915_private *i915) { return; } 25 #else intel_register_dsm_handler(void)26static inline void intel_register_dsm_handler(void) { return; } 27 #endif intel_unregister_dsm_handler(void)28static inline void intel_unregister_dsm_handler(void) { return; } 29 #endif /* CONFIG_ACPI */ 30 31 #endif /* __INTEL_ACPI_H__ */ 32