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