priv.h 614 B

12345678910111213141516171819
  1. #ifndef __NVKM_PCI_PRIV_H__
  2. #define __NVKM_PCI_PRIV_H__
  3. #define nvkm_pci(p) container_of((p), struct nvkm_pci, subdev)
  4. #include <subdev/pci.h>
  5. int nvkm_pci_new_(const struct nvkm_pci_func *, struct nvkm_device *,
  6. int index, struct nvkm_pci **);
  7. struct nvkm_pci_func {
  8. u32 (*rd32)(struct nvkm_pci *, u16 addr);
  9. void (*wr08)(struct nvkm_pci *, u16 addr, u8 data);
  10. void (*wr32)(struct nvkm_pci *, u16 addr, u32 data);
  11. void (*msi_rearm)(struct nvkm_pci *);
  12. };
  13. u32 nv40_pci_rd32(struct nvkm_pci *, u16);
  14. void nv40_pci_wr08(struct nvkm_pci *, u16, u8);
  15. void nv40_pci_wr32(struct nvkm_pci *, u16, u32);
  16. #endif