forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
....@@ -41,6 +41,22 @@
4141 }
4242
4343 u32
44
+nvkm_top_addr(struct nvkm_device *device, enum nvkm_devidx index)
45
+{
46
+ struct nvkm_top *top = device->top;
47
+ struct nvkm_top_device *info;
48
+
49
+ if (top) {
50
+ list_for_each_entry(info, &top->device, head) {
51
+ if (info->index == index)
52
+ return info->addr;
53
+ }
54
+ }
55
+
56
+ return 0;
57
+}
58
+
59
+u32
4460 nvkm_top_reset(struct nvkm_device *device, enum nvkm_devidx index)
4561 {
4662 struct nvkm_top *top = device->top;