aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 38134a9c7578..b82709828931 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -1055,12 +1055,14 @@ extern int nouveau_dma_wait(struct nouveau_channel *, int slots, int size);
1055#if defined(CONFIG_ACPI) 1055#if defined(CONFIG_ACPI)
1056void nouveau_register_dsm_handler(void); 1056void nouveau_register_dsm_handler(void);
1057void nouveau_unregister_dsm_handler(void); 1057void nouveau_unregister_dsm_handler(void);
1058void nouveau_switcheroo_optimus_dsm(void);
1058int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len); 1059int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len);
1059bool nouveau_acpi_rom_supported(struct pci_dev *pdev); 1060bool nouveau_acpi_rom_supported(struct pci_dev *pdev);
1060int nouveau_acpi_edid(struct drm_device *, struct drm_connector *); 1061int nouveau_acpi_edid(struct drm_device *, struct drm_connector *);
1061#else 1062#else
1062static inline void nouveau_register_dsm_handler(void) {} 1063static inline void nouveau_register_dsm_handler(void) {}
1063static inline void nouveau_unregister_dsm_handler(void) {} 1064static inline void nouveau_unregister_dsm_handler(void) {}
1065static inline void nouveau_switcheroo_optimus_dsm(void) {}
1064static inline bool nouveau_acpi_rom_supported(struct pci_dev *pdev) { return false; } 1066static inline bool nouveau_acpi_rom_supported(struct pci_dev *pdev) { return false; }
1065static inline int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len) { return -EINVAL; } 1067static inline int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len) { return -EINVAL; }
1066static inline int nouveau_acpi_edid(struct drm_device *dev, struct drm_connector *connector) { return -EINVAL; } 1068static inline int nouveau_acpi_edid(struct drm_device *dev, struct drm_connector *connector) { return -EINVAL; }