xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/devinit.h (revision 8e07e0e3964ca4e23ce7b68e2096fe660a888942)
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_DEVINIT_H__
3 #define __NVKM_DEVINIT_H__
4 #include <core/subdev.h>
5 struct nvkm_devinit;
6 
7 struct nvkm_devinit {
8 	const struct nvkm_devinit_func *func;
9 	struct nvkm_subdev subdev;
10 	bool post;
11 	bool force_post;
12 };
13 
14 u32 nvkm_devinit_mmio(struct nvkm_devinit *, u32 addr);
15 int nvkm_devinit_pll_set(struct nvkm_devinit *, u32 type, u32 khz);
16 void nvkm_devinit_meminit(struct nvkm_devinit *);
17 int nvkm_devinit_post(struct nvkm_devinit *);
18 
19 int nv04_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
20 int nv05_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
21 int nv10_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
22 int nv1a_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
23 int nv20_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
24 int nv50_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
25 int g84_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
26 int g98_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
27 int gt215_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
28 int mcp89_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
29 int gf100_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
30 int gm107_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
31 int gm200_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
32 int gv100_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
33 int tu102_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
34 int ga100_devinit_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_devinit **);
35 #endif
36