Merge tag 'mmc-v4.5-rc1' of git://git.linaro.org/people/ulf.hansson/mmc
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nvkm / subdev / clk / priv.h
CommitLineData
6625f55c
BS
1#ifndef __NVKM_CLK_PRIV_H__
2#define __NVKM_CLK_PRIV_H__
3#define nvkm_clk(p) container_of((p), struct nvkm_clk, subdev)
4#include <subdev/clk.h>
5
6struct nvkm_clk_func {
7 int (*init)(struct nvkm_clk *);
8 void (*fini)(struct nvkm_clk *);
9 int (*read)(struct nvkm_clk *, enum nv_clk_src);
10 int (*calc)(struct nvkm_clk *, struct nvkm_cstate *);
11 int (*prog)(struct nvkm_clk *);
12 void (*tidy)(struct nvkm_clk *);
13 struct nvkm_pstate *pstates;
14 int nr_pstates;
15 struct nvkm_domain domains[];
16};
17
18int nvkm_clk_ctor(const struct nvkm_clk_func *, struct nvkm_device *, int,
19 bool allow_reclock, struct nvkm_clk *);
20int nvkm_clk_new_(const struct nvkm_clk_func *, struct nvkm_device *, int,
21 bool allow_reclock, struct nvkm_clk **);
22
23int nv04_clk_pll_calc(struct nvkm_clk *, struct nvbios_pll *, int clk,
24 struct nvkm_pll_vals *);
25int nv04_clk_pll_prog(struct nvkm_clk *, u32 reg1, struct nvkm_pll_vals *);
26#endif
This page took 0.071649 seconds and 5 git commands to generate.