1 #ifndef __NVKM_PCI_H__ 2 #define __NVKM_PCI_H__ 3 #include <core/subdev.h> 4 5 struct nvkm_pci { 6 const struct nvkm_pci_func *func; 7 struct nvkm_subdev subdev; 8 struct pci_dev *pdev; 9 int irq; 10 bool msi; 11 }; 12 13 u32 nvkm_pci_rd32(struct nvkm_pci *, u16 addr); 14 void nvkm_pci_wr08(struct nvkm_pci *, u16 addr, u8 data); 15 void nvkm_pci_wr32(struct nvkm_pci *, u16 addr, u32 data); 16 void nvkm_pci_rom_shadow(struct nvkm_pci *, bool shadow); 17 18 int nv04_pci_new(struct nvkm_device *, int, struct nvkm_pci **); 19 int nv40_pci_new(struct nvkm_device *, int, struct nvkm_pci **); 20 int nv4c_pci_new(struct nvkm_device *, int, struct nvkm_pci **); 21 int nv50_pci_new(struct nvkm_device *, int, struct nvkm_pci **); 22 int gf100_pci_new(struct nvkm_device *, int, struct nvkm_pci **); 23 #endif 24