xref: /linux/drivers/gpu/drm/i915/display/intel_acpi.h (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_ACPI_H__
7 #define __INTEL_ACPI_H__
8 
9 struct intel_display;
10 
11 #ifdef CONFIG_ACPI
12 void intel_register_dsm_handler(void);
13 void intel_unregister_dsm_handler(void);
14 void intel_dsm_get_bios_data_funcs_supported(struct intel_display *display);
15 void intel_acpi_device_id_update(struct intel_display *display);
16 void intel_acpi_assign_connector_fwnodes(struct intel_display *display);
17 void intel_acpi_video_register(struct intel_display *display);
18 #else
intel_register_dsm_handler(void)19 static inline void intel_register_dsm_handler(void) { return; }
intel_unregister_dsm_handler(void)20 static inline void intel_unregister_dsm_handler(void) { return; }
21 static inline
intel_dsm_get_bios_data_funcs_supported(struct intel_display * display)22 void intel_dsm_get_bios_data_funcs_supported(struct intel_display *display) { return; }
23 static inline
intel_acpi_device_id_update(struct intel_display * display)24 void intel_acpi_device_id_update(struct intel_display *display) { return; }
25 static inline
intel_acpi_assign_connector_fwnodes(struct intel_display * display)26 void intel_acpi_assign_connector_fwnodes(struct intel_display *display) { return; }
27 static inline
intel_acpi_video_register(struct intel_display * display)28 void intel_acpi_video_register(struct intel_display *display) { return; }
29 #endif /* CONFIG_ACPI */
30 
31 #endif /* __INTEL_ACPI_H__ */
32