Commit | Line | Data |
---|---|---|
7c856522 BS |
1 | #ifndef __NVKM_CLK_NV50_H__ |
2 | #define __NVKM_CLK_NV50_H__ | |
3 | ||
4 | #include <subdev/bus.h> | |
5 | #include <subdev/bus/hwsq.h> | |
f3867f43 | 6 | #include <subdev/clk.h> |
7c856522 | 7 | |
f3867f43 | 8 | struct nv50_clk_hwsq { |
7c856522 BS |
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 | ||
f3867f43 BS |
17 | struct nv50_clk_priv { |
18 | struct nouveau_clk base; | |
19 | struct nv50_clk_hwsq hwsq; | |
7c856522 BS |
20 | }; |
21 | ||
f3867f43 | 22 | int nv50_clk_ctor(struct nouveau_object *, struct nouveau_object *, |
7c856522 BS |
23 | struct nouveau_oclass *, void *, u32, |
24 | struct nouveau_object **); | |
25 | ||
f3867f43 | 26 | struct nv50_clk_oclass { |
7c856522 | 27 | struct nouveau_oclass base; |
f3867f43 | 28 | struct nouveau_domain *domains; |
7c856522 BS |
29 | }; |
30 | ||
31 | #endif |