xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.h (revision a45db23f655e22f0c2354600d3b3c2cb98abf2dc)
1 /*	$NetBSD: intel_acpi.h,v 1.4 2021/12/19 11:16:17 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 struct drm_i915_private;
12 
13 #ifdef CONFIG_ACPI
14 #ifdef __NetBSD__
15 void intel_register_dsm_handler(struct drm_i915_private *);
16 #else
17 void intel_register_dsm_handler(void);
18 #endif
19 void intel_unregister_dsm_handler(void);
20 #else
21 #ifdef __NetBSD__
22 static inline void intel_register_dsm_handler(struct drm_i915_private *i915) { return; }
23 #else
24 static inline void intel_register_dsm_handler(void) { return; }
25 #endif
26 static inline void intel_unregister_dsm_handler(void) { return; }
27 #endif /* CONFIG_ACPI */
28 
29 #endif /* __INTEL_ACPI_H__ */
30