This source file includes following definitions.
- gk104_mc_new
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #include "priv.h"
25
26 const struct nvkm_mc_map
27 gk104_mc_reset[] = {
28 { 0x00000100, NVKM_ENGINE_FIFO },
29 { 0x00002000, NVKM_SUBDEV_PMU, true },
30 {}
31 };
32
33 const struct nvkm_mc_map
34 gk104_mc_intr[] = {
35 { 0x04000000, NVKM_ENGINE_DISP },
36 { 0x00000100, NVKM_ENGINE_FIFO },
37 { 0x40000000, NVKM_SUBDEV_IBUS },
38 { 0x10000000, NVKM_SUBDEV_BUS },
39 { 0x08000000, NVKM_SUBDEV_FB },
40 { 0x02000000, NVKM_SUBDEV_LTC },
41 { 0x01000000, NVKM_SUBDEV_PMU },
42 { 0x00200000, NVKM_SUBDEV_GPIO },
43 { 0x00200000, NVKM_SUBDEV_I2C },
44 { 0x00100000, NVKM_SUBDEV_TIMER },
45 { 0x00040000, NVKM_SUBDEV_THERM },
46 { 0x00002000, NVKM_SUBDEV_FB },
47 {},
48 };
49
50 static const struct nvkm_mc_func
51 gk104_mc = {
52 .init = nv50_mc_init,
53 .intr = gk104_mc_intr,
54 .intr_unarm = gf100_mc_intr_unarm,
55 .intr_rearm = gf100_mc_intr_rearm,
56 .intr_mask = gf100_mc_intr_mask,
57 .intr_stat = gf100_mc_intr_stat,
58 .reset = gk104_mc_reset,
59 .unk260 = gf100_mc_unk260,
60 };
61
62 int
63 gk104_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc)
64 {
65 return nvkm_mc_new_(&gk104_mc, device, index, pmc);
66 }