]> git.karo-electronics.de Git - linux-beck.git/blob - drivers/gpu/drm/nouveau/nvkm/subdev/pci/priv.h
f2fs: xattr simplifications
[linux-beck.git] / drivers / gpu / drm / nouveau / nvkm / subdev / pci / priv.h
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
6 int nvkm_pci_new_(const struct nvkm_pci_func *, struct nvkm_device *,
7                   int index, struct nvkm_pci **);
8
9 struct nvkm_pci_func {
10         u32 (*rd32)(struct nvkm_pci *, u16 addr);
11         void (*wr08)(struct nvkm_pci *, u16 addr, u8 data);
12         void (*wr32)(struct nvkm_pci *, u16 addr, u32 data);
13         void (*msi_rearm)(struct nvkm_pci *);
14 };
15
16 u32 nv40_pci_rd32(struct nvkm_pci *, u16);
17 void nv40_pci_wr08(struct nvkm_pci *, u16, u8);
18 void nv40_pci_wr32(struct nvkm_pci *, u16, u32);
19 #endif