Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nouveau_acpi.h
blob330f9b837066ba5e415445ed38889574e79112d8
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NOUVEAU_ACPI_H__
3 #define __NOUVEAU_ACPI_H__
5 #define ROM_BIOS_PAGE 4096
7 #if defined(CONFIG_ACPI) && defined(CONFIG_X86)
8 bool nouveau_is_optimus(void);
9 bool nouveau_is_v1_dsm(void);
10 void nouveau_register_dsm_handler(void);
11 void nouveau_unregister_dsm_handler(void);
12 void nouveau_switcheroo_optimus_dsm(void);
13 void *nouveau_acpi_edid(struct drm_device *, struct drm_connector *);
14 #else
15 static inline bool nouveau_is_optimus(void) { return false; };
16 static inline bool nouveau_is_v1_dsm(void) { return false; };
17 static inline void nouveau_register_dsm_handler(void) {}
18 static inline void nouveau_unregister_dsm_handler(void) {}
19 static inline void nouveau_switcheroo_optimus_dsm(void) {}
20 static inline void *nouveau_acpi_edid(struct drm_device *dev, struct drm_connector *connector) { return NULL; }
21 #endif
23 #endif