nouveau_acpi.h 857 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: MIT */
  2. #ifndef __NOUVEAU_ACPI_H__
  3. #define __NOUVEAU_ACPI_H__
  4. #define ROM_BIOS_PAGE 4096
  5. #if defined(CONFIG_ACPI) && defined(CONFIG_X86)
  6. bool nouveau_is_optimus(void);
  7. bool nouveau_is_v1_dsm(void);
  8. void nouveau_register_dsm_handler(void);
  9. void nouveau_unregister_dsm_handler(void);
  10. void nouveau_switcheroo_optimus_dsm(void);
  11. void *nouveau_acpi_edid(struct drm_device *, struct drm_connector *);
  12. #else
  13. static inline bool nouveau_is_optimus(void) { return false; };
  14. static inline bool nouveau_is_v1_dsm(void) { return false; };
  15. static inline void nouveau_register_dsm_handler(void) {}
  16. static inline void nouveau_unregister_dsm_handler(void) {}
  17. static inline void nouveau_switcheroo_optimus_dsm(void) {}
  18. static inline void *nouveau_acpi_edid(struct drm_device *dev, struct drm_connector *connector) { return NULL; }
  19. #endif
  20. #endif