diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/clock/nv50.h')
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/clock/nv50.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clock/nv50.h b/drivers/gpu/drm/nouveau/nvkm/subdev/clock/nv50.h new file mode 100644 index 000000000000..f10917d789e8 --- /dev/null +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clock/nv50.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #ifndef __NVKM_CLK_NV50_H__ | ||
| 2 | #define __NVKM_CLK_NV50_H__ | ||
| 3 | |||
| 4 | #include <subdev/bus.h> | ||
| 5 | #include <subdev/bus/hwsq.h> | ||
| 6 | #include <subdev/clock.h> | ||
| 7 | |||
| 8 | struct nv50_clock_hwsq { | ||
| 9 | struct hwsq base; | ||
| 10 | struct hwsq_reg r_fifo; | ||
| 11 | struct hwsq_reg r_spll[2]; | ||
| 12 | struct hwsq_reg r_nvpll[2]; | ||
| 13 | struct hwsq_reg r_divs; | ||
| 14 | struct hwsq_reg r_mast; | ||
| 15 | }; | ||
| 16 | |||
| 17 | struct nv50_clock_priv { | ||
| 18 | struct nouveau_clock base; | ||
| 19 | struct nv50_clock_hwsq hwsq; | ||
| 20 | }; | ||
| 21 | |||
| 22 | int nv50_clock_ctor(struct nouveau_object *, struct nouveau_object *, | ||
| 23 | struct nouveau_oclass *, void *, u32, | ||
| 24 | struct nouveau_object **); | ||
| 25 | |||
| 26 | struct nv50_clock_oclass { | ||
| 27 | struct nouveau_oclass base; | ||
| 28 | struct nouveau_clocks *domains; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif | ||
