Loading drivers/gpu/drm/nouveau/include/nvkm/core/device.h +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ enum nvkm_devidx { NVKM_SUBDEV_PCI, NVKM_SUBDEV_VBIOS, NVKM_SUBDEV_DEVINIT, NVKM_SUBDEV_TOP, NVKM_SUBDEV_IBUS, NVKM_SUBDEV_GPIO, NVKM_SUBDEV_I2C, Loading Loading @@ -131,6 +132,7 @@ struct nvkm_device { struct nvkm_secboot *secboot; struct nvkm_therm *therm; struct nvkm_timer *timer; struct nvkm_top *top; struct nvkm_volt *volt; struct nvkm_engine *bsp; Loading Loading @@ -200,6 +202,7 @@ struct nvkm_device_chip { int (*secboot )(struct nvkm_device *, int idx, struct nvkm_secboot **); int (*therm )(struct nvkm_device *, int idx, struct nvkm_therm **); int (*timer )(struct nvkm_device *, int idx, struct nvkm_timer **); int (*top )(struct nvkm_device *, int idx, struct nvkm_top **); int (*volt )(struct nvkm_device *, int idx, struct nvkm_volt **); int (*bsp )(struct nvkm_device *, int idx, struct nvkm_engine **); Loading drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h 0 → 100644 +8 −0 Original line number Diff line number Diff line #ifndef __NVKM_TOP_H__ #define __NVKM_TOP_H__ #include <core/subdev.h> struct nvkm_top { struct nvkm_subdev subdev; }; #endif drivers/gpu/drm/nouveau/nvkm/core/subdev.c +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = { [NVKM_SUBDEV_SECBOOT ] = "secboot", [NVKM_SUBDEV_THERM ] = "therm", [NVKM_SUBDEV_TIMER ] = "tmr", [NVKM_SUBDEV_TOP ] = "top", [NVKM_SUBDEV_VOLT ] = "volt", [NVKM_ENGINE_BSP ] = "bsp", [NVKM_ENGINE_CE0 ] = "ce0", Loading drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +2 −0 Original line number Diff line number Diff line Loading @@ -2150,6 +2150,7 @@ nvkm_device_subdev(struct nvkm_device *device, int index) _(SECBOOT , device->secboot , &device->secboot->subdev); _(THERM , device->therm , &device->therm->subdev); _(TIMER , device->timer , &device->timer->subdev); _(TOP , device->top , &device->top->subdev); _(VOLT , device->volt , &device->volt->subdev); #undef _ default: Loading Loading @@ -2604,6 +2605,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func, _(NVKM_SUBDEV_SECBOOT , secboot); _(NVKM_SUBDEV_THERM , therm); _(NVKM_SUBDEV_TIMER , timer); _(NVKM_SUBDEV_TOP , top); _(NVKM_SUBDEV_VOLT , volt); _(NVKM_ENGINE_BSP , bsp); _(NVKM_ENGINE_CE0 , ce[0]); Loading drivers/gpu/drm/nouveau/nvkm/engine/device/priv.h +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <subdev/pmu.h> #include <subdev/therm.h> #include <subdev/timer.h> #include <subdev/top.h> #include <subdev/volt.h> #include <subdev/secboot.h> Loading Loading
drivers/gpu/drm/nouveau/include/nvkm/core/device.h +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ enum nvkm_devidx { NVKM_SUBDEV_PCI, NVKM_SUBDEV_VBIOS, NVKM_SUBDEV_DEVINIT, NVKM_SUBDEV_TOP, NVKM_SUBDEV_IBUS, NVKM_SUBDEV_GPIO, NVKM_SUBDEV_I2C, Loading Loading @@ -131,6 +132,7 @@ struct nvkm_device { struct nvkm_secboot *secboot; struct nvkm_therm *therm; struct nvkm_timer *timer; struct nvkm_top *top; struct nvkm_volt *volt; struct nvkm_engine *bsp; Loading Loading @@ -200,6 +202,7 @@ struct nvkm_device_chip { int (*secboot )(struct nvkm_device *, int idx, struct nvkm_secboot **); int (*therm )(struct nvkm_device *, int idx, struct nvkm_therm **); int (*timer )(struct nvkm_device *, int idx, struct nvkm_timer **); int (*top )(struct nvkm_device *, int idx, struct nvkm_top **); int (*volt )(struct nvkm_device *, int idx, struct nvkm_volt **); int (*bsp )(struct nvkm_device *, int idx, struct nvkm_engine **); Loading
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h 0 → 100644 +8 −0 Original line number Diff line number Diff line #ifndef __NVKM_TOP_H__ #define __NVKM_TOP_H__ #include <core/subdev.h> struct nvkm_top { struct nvkm_subdev subdev; }; #endif
drivers/gpu/drm/nouveau/nvkm/core/subdev.c +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ nvkm_subdev_name[NVKM_SUBDEV_NR] = { [NVKM_SUBDEV_SECBOOT ] = "secboot", [NVKM_SUBDEV_THERM ] = "therm", [NVKM_SUBDEV_TIMER ] = "tmr", [NVKM_SUBDEV_TOP ] = "top", [NVKM_SUBDEV_VOLT ] = "volt", [NVKM_ENGINE_BSP ] = "bsp", [NVKM_ENGINE_CE0 ] = "ce0", Loading
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +2 −0 Original line number Diff line number Diff line Loading @@ -2150,6 +2150,7 @@ nvkm_device_subdev(struct nvkm_device *device, int index) _(SECBOOT , device->secboot , &device->secboot->subdev); _(THERM , device->therm , &device->therm->subdev); _(TIMER , device->timer , &device->timer->subdev); _(TOP , device->top , &device->top->subdev); _(VOLT , device->volt , &device->volt->subdev); #undef _ default: Loading Loading @@ -2604,6 +2605,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func, _(NVKM_SUBDEV_SECBOOT , secboot); _(NVKM_SUBDEV_THERM , therm); _(NVKM_SUBDEV_TIMER , timer); _(NVKM_SUBDEV_TOP , top); _(NVKM_SUBDEV_VOLT , volt); _(NVKM_ENGINE_BSP , bsp); _(NVKM_ENGINE_CE0 , ce[0]); Loading
drivers/gpu/drm/nouveau/nvkm/engine/device/priv.h +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <subdev/pmu.h> #include <subdev/therm.h> #include <subdev/timer.h> #include <subdev/top.h> #include <subdev/volt.h> #include <subdev/secboot.h> Loading