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

agp.h (709B)


      1/* SPDX-License-Identifier: MIT */
      2#include "priv.h"
      3#if defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE))
      4#ifndef __NVKM_PCI_AGP_H__
      5#define __NVKM_PCI_AGP_H__
      6
      7void nvkm_agp_ctor(struct nvkm_pci *);
      8void nvkm_agp_dtor(struct nvkm_pci *);
      9void nvkm_agp_preinit(struct nvkm_pci *);
     10int nvkm_agp_init(struct nvkm_pci *);
     11void nvkm_agp_fini(struct nvkm_pci *);
     12#endif
     13#else
     14static inline void nvkm_agp_ctor(struct nvkm_pci *pci) {}
     15static inline void nvkm_agp_dtor(struct nvkm_pci *pci) {}
     16static inline void nvkm_agp_preinit(struct nvkm_pci *pci) {}
     17static inline int nvkm_agp_init(struct nvkm_pci *pci) { return -ENOSYS; }
     18static inline void nvkm_agp_fini(struct nvkm_pci *pci) {}
     19#endif