This source file includes following definitions.
- g84_disp_core_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 "channv50.h"
25
26 const struct nv50_disp_mthd_list
27 g84_disp_core_mthd_dac = {
28 .mthd = 0x0080,
29 .addr = 0x000008,
30 .data = {
31 { 0x0400, 0x610b58 },
32 { 0x0404, 0x610bdc },
33 { 0x0420, 0x610bc4 },
34 {}
35 }
36 };
37
38 const struct nv50_disp_mthd_list
39 g84_disp_core_mthd_head = {
40 .mthd = 0x0400,
41 .addr = 0x000540,
42 .data = {
43 { 0x0800, 0x610ad8 },
44 { 0x0804, 0x610ad0 },
45 { 0x0808, 0x610a48 },
46 { 0x080c, 0x610a78 },
47 { 0x0810, 0x610ac0 },
48 { 0x0814, 0x610af8 },
49 { 0x0818, 0x610b00 },
50 { 0x081c, 0x610ae8 },
51 { 0x0820, 0x610af0 },
52 { 0x0824, 0x610b08 },
53 { 0x0828, 0x610b10 },
54 { 0x082c, 0x610a68 },
55 { 0x0830, 0x610a60 },
56 { 0x0834, 0x000000 },
57 { 0x0838, 0x610a40 },
58 { 0x0840, 0x610a24 },
59 { 0x0844, 0x610a2c },
60 { 0x0848, 0x610aa8 },
61 { 0x084c, 0x610ab0 },
62 { 0x085c, 0x610c5c },
63 { 0x0860, 0x610a84 },
64 { 0x0864, 0x610a90 },
65 { 0x0868, 0x610b18 },
66 { 0x086c, 0x610b20 },
67 { 0x0870, 0x610ac8 },
68 { 0x0874, 0x610a38 },
69 { 0x0878, 0x610c50 },
70 { 0x0880, 0x610a58 },
71 { 0x0884, 0x610a9c },
72 { 0x089c, 0x610c68 },
73 { 0x08a0, 0x610a70 },
74 { 0x08a4, 0x610a50 },
75 { 0x08a8, 0x610ae0 },
76 { 0x08c0, 0x610b28 },
77 { 0x08c4, 0x610b30 },
78 { 0x08c8, 0x610b40 },
79 { 0x08d4, 0x610b38 },
80 { 0x08d8, 0x610b48 },
81 { 0x08dc, 0x610b50 },
82 { 0x0900, 0x610a18 },
83 { 0x0904, 0x610ab8 },
84 { 0x0910, 0x610c70 },
85 { 0x0914, 0x610c78 },
86 {}
87 }
88 };
89
90 const struct nv50_disp_chan_mthd
91 g84_disp_core_mthd = {
92 .name = "Core",
93 .addr = 0x000000,
94 .prev = 0x000004,
95 .data = {
96 { "Global", 1, &nv50_disp_core_mthd_base },
97 { "DAC", 3, &g84_disp_core_mthd_dac },
98 { "SOR", 2, &nv50_disp_core_mthd_sor },
99 { "PIOR", 3, &nv50_disp_core_mthd_pior },
100 { "HEAD", 2, &g84_disp_core_mthd_head },
101 {}
102 }
103 };
104
105 int
106 g84_disp_core_new(const struct nvkm_oclass *oclass, void *argv, u32 argc,
107 struct nv50_disp *disp, struct nvkm_object **pobject)
108 {
109 return nv50_disp_core_new_(&nv50_disp_core_func, &g84_disp_core_mthd,
110 disp, 0, oclass, argv, argc, pobject);
111 }