Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / instmem.h
blobc74ab7c31d052a1f80afec4c16963272ce7d750b
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_INSTMEM_H__
3 #define __NVKM_INSTMEM_H__
4 #include <core/subdev.h>
5 struct nvkm_memory;
7 struct nvkm_instmem {
8 const struct nvkm_instmem_func *func;
9 struct nvkm_subdev subdev;
11 spinlock_t lock;
12 struct list_head list;
13 struct list_head boot;
14 u32 reserved;
16 struct nvkm_memory *vbios;
17 struct nvkm_ramht *ramht;
18 struct nvkm_memory *ramro;
19 struct nvkm_memory *ramfc;
22 u32 nvkm_instmem_rd32(struct nvkm_instmem *, u32 addr);
23 void nvkm_instmem_wr32(struct nvkm_instmem *, u32 addr, u32 data);
24 int nvkm_instobj_new(struct nvkm_instmem *, u32 size, u32 align, bool zero,
25 struct nvkm_memory **);
28 int nv04_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **);
29 int nv40_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **);
30 int nv50_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **);
31 int gk20a_instmem_new(struct nvkm_device *, int, struct nvkm_instmem **);
32 #endif