cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

nouveau_acpi.h (857B)


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