kernel/drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
.. .. @@ -41,6 +41,22 @@ 41 41 } 42 42 43 43 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 +u3244 60 nvkm_top_reset(struct nvkm_device *device, enum nvkm_devidx index) 45 61 { 46 62 struct nvkm_top *top = device->top;