xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.h (revision e9f0878c4b2004ac19581274c1ae4c61ae3ca70e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NV50_DEVINIT_H__
3 #define __NV50_DEVINIT_H__
4 #define nv50_devinit(p) container_of((p), struct nv50_devinit, base)
5 #include "priv.h"
6 
7 struct nv50_devinit {
8 	struct nvkm_devinit base;
9 	u32 r001540;
10 };
11 
12 int nv50_devinit_new_(const struct nvkm_devinit_func *, struct nvkm_device *,
13 		      int, struct nvkm_devinit **);
14 void nv50_devinit_preinit(struct nvkm_devinit *);
15 void nv50_devinit_init(struct nvkm_devinit *);
16 int  nv50_devinit_pll_set(struct nvkm_devinit *, u32, u32);
17 
18 int  gt215_devinit_pll_set(struct nvkm_devinit *, u32, u32);
19 
20 int  gf100_devinit_ctor(struct nvkm_object *, struct nvkm_object *,
21 			struct nvkm_oclass *, void *, u32,
22 			struct nvkm_object **);
23 int  gf100_devinit_pll_set(struct nvkm_devinit *, u32, u32);
24 void gf100_devinit_preinit(struct nvkm_devinit *);
25 
26 u64  gm107_devinit_disable(struct nvkm_devinit *);
27 
28 int gm200_devinit_post(struct nvkm_devinit *, bool);
29 #endif
30