1 #ifndef __NVKM_DEVINIT_H__ 2 #define __NVKM_DEVINIT_H__ 3 #include <core/subdev.h> 4 struct nvkm_devinit; 5 6 struct nvkm_devinit { 7 const struct nvkm_devinit_func *func; 8 struct nvkm_subdev subdev; 9 bool post; 10 }; 11 12 u32 nvkm_devinit_mmio(struct nvkm_devinit *, u32 addr); 13 int nvkm_devinit_pll_set(struct nvkm_devinit *, u32 type, u32 khz); 14 void nvkm_devinit_meminit(struct nvkm_devinit *); 15 u64 nvkm_devinit_disable(struct nvkm_devinit *); 16 int nvkm_devinit_post(struct nvkm_devinit *, u64 *disable); 17 18 int nv04_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 19 int nv05_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 20 int nv10_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 21 int nv1a_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 22 int nv20_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 23 int nv50_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 24 int g84_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 25 int g98_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 26 int gt215_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 27 int mcp89_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 28 int gf100_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 29 int gm107_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 30 int gm204_devinit_new(struct nvkm_device *, int, struct nvkm_devinit **); 31 #endif 32