1 #ifndef __NVKM_DEVINIT_PRIV_H__
2 #define __NVKM_DEVINIT_PRIV_H__
3 #define nvkm_devinit(p) container_of((p), struct nvkm_devinit, subdev)
4 #include <subdev/devinit.h>
5 
6 struct nvkm_devinit_func {
7 	void *(*dtor)(struct nvkm_devinit *);
8 	void (*preinit)(struct nvkm_devinit *);
9 	void (*init)(struct nvkm_devinit *);
10 	int  (*post)(struct nvkm_devinit *, bool post);
11 	u32  (*mmio)(struct nvkm_devinit *, u32);
12 	void (*meminit)(struct nvkm_devinit *);
13 	int  (*pll_set)(struct nvkm_devinit *, u32 type, u32 freq);
14 	u64  (*disable)(struct nvkm_devinit *);
15 };
16 
17 void nvkm_devinit_ctor(const struct nvkm_devinit_func *, struct nvkm_device *,
18 		       int index, struct nvkm_devinit *);
19 
20 int nv04_devinit_post(struct nvkm_devinit *, bool);
21 #endif
22