]>
Commit | Line | Data |
---|---|---|
78b2b4e7 BS |
1 | #ifndef __NVKM_INSTMEM_H__ |
2 | #define __NVKM_INSTMEM_H__ | |
3863c9bc | 3 | #include <core/subdev.h> |
d8e83994 | 4 | struct nvkm_memory; |
3863c9bc | 5 | |
78b2b4e7 | 6 | struct nvkm_instmem { |
b7a2bc18 | 7 | const struct nvkm_instmem_func *func; |
c44c06ae | 8 | struct nvkm_subdev subdev; |
3863c9bc | 9 | |
b7a2bc18 | 10 | struct list_head list; |
3863c9bc | 11 | u32 reserved; |
d8e83994 | 12 | |
5b1ab0c2 | 13 | struct nvkm_memory *vbios; |
d8e83994 | 14 | struct nvkm_ramht *ramht; |
5b1ab0c2 BS |
15 | struct nvkm_memory *ramro; |
16 | struct nvkm_memory *ramfc; | |
a4747426 BS |
17 | }; |
18 | ||
b7a2bc18 BS |
19 | u32 nvkm_instmem_rd32(struct nvkm_instmem *, u32 addr); |
20 | void nvkm_instmem_wr32(struct nvkm_instmem *, u32 addr, u32 data); | |
21 | int nvkm_instobj_new(struct nvkm_instmem *, u32 size, u32 align, bool zero, | |
22 | struct nvkm_memory **); | |
fdd239ac | 23 | |
3863c9bc | 24 | |
b7a2bc18 BS |
25 | int nv04_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **); |
26 | int nv40_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **); | |
27 | int nv50_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **); | |
28 | int gk20a_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **); | |
3863c9bc | 29 | #endif |