This source file includes following definitions.
- nv50_mc_init
- nv50_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 static const struct nvkm_mc_map
27 nv50_mc_intr[] = {
28 { 0x04000000, NVKM_ENGINE_DISP },
29 { 0x00001000, NVKM_ENGINE_GR },
30 { 0x00000100, NVKM_ENGINE_FIFO },
31 { 0x00000001, NVKM_ENGINE_MPEG },
32 { 0x00001101, NVKM_SUBDEV_FB },
33 { 0x10000000, NVKM_SUBDEV_BUS },
34 { 0x00200000, NVKM_SUBDEV_GPIO },
35 { 0x00200000, NVKM_SUBDEV_I2C },
36 { 0x00100000, NVKM_SUBDEV_TIMER },
37 {},
38 };
39
40 void
41 nv50_mc_init(struct nvkm_mc *mc)
42 {
43 struct nvkm_device *device = mc->subdev.device;
44 nvkm_wr32(device, 0x000200, 0xffffffff);
45 }
46
47 static const struct nvkm_mc_func
48 nv50_mc = {
49 .init = nv50_mc_init,
50 .intr = nv50_mc_intr,
51 .intr_unarm = nv04_mc_intr_unarm,
52 .intr_rearm = nv04_mc_intr_rearm,
53 .intr_stat = nv04_mc_intr_stat,
54 .reset = nv17_mc_reset,
55 };
56
57 int
58 nv50_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc)
59 {
60 return nvkm_mc_new_(&nv50_mc, device, index, pmc);
61 }