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 nvkm_agp_ctor(struct nvkm_pci * pci)13static inline void nvkm_agp_ctor(struct nvkm_pci *pci) {} nvkm_agp_dtor(struct nvkm_pci * pci)14static inline void nvkm_agp_dtor(struct nvkm_pci *pci) {} nvkm_agp_preinit(struct nvkm_pci * pci)15static inline void nvkm_agp_preinit(struct nvkm_pci *pci) {} nvkm_agp_init(struct nvkm_pci * pci)16static inline int nvkm_agp_init(struct nvkm_pci *pci) { return -ENOSYS; } nvkm_agp_fini(struct nvkm_pci * pci)17static inline void nvkm_agp_fini(struct nvkm_pci *pci) {} 18 #endif 19