This source file includes following definitions.
- base827c_image_set
- base827c_new
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "base.h"
23
24 static void
25 base827c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
26 {
27 u32 *push;
28 if ((push = evo_wait(&wndw->wndw, 13))) {
29 evo_mthd(push, 0x0084, 1);
30 evo_data(push, asyw->image.mode << 8 |
31 asyw->image.interval << 4);
32 evo_mthd(push, 0x00c0, 1);
33 evo_data(push, asyw->image.handle[0]);
34 if (asyw->image.format == 0xca) {
35 evo_mthd(push, 0x0110, 2);
36 evo_data(push, 1);
37 evo_data(push, 0x6400);
38 } else {
39 evo_mthd(push, 0x0110, 2);
40 evo_data(push, 0);
41 evo_data(push, 0);
42 }
43 evo_mthd(push, 0x0800, 5);
44 evo_data(push, asyw->image.offset[0] >> 8);
45 evo_data(push, 0x00000000);
46 evo_data(push, asyw->image.h << 16 | asyw->image.w);
47 evo_data(push, asyw->image.layout << 20 |
48 (asyw->image.pitch[0] >> 8) << 8 |
49 asyw->image.blocks[0] << 8 |
50 asyw->image.blockh);
51 evo_data(push, asyw->image.format << 8);
52 evo_kick(push, &wndw->wndw);
53 }
54 }
55
56 static const struct nv50_wndw_func
57 base827c = {
58 .acquire = base507c_acquire,
59 .release = base507c_release,
60 .sema_set = base507c_sema_set,
61 .sema_clr = base507c_sema_clr,
62 .ntfy_reset = base507c_ntfy_reset,
63 .ntfy_set = base507c_ntfy_set,
64 .ntfy_clr = base507c_ntfy_clr,
65 .ntfy_wait_begun = base507c_ntfy_wait_begun,
66 .olut_core = 1,
67 .xlut_set = base507c_xlut_set,
68 .xlut_clr = base507c_xlut_clr,
69 .image_set = base827c_image_set,
70 .image_clr = base507c_image_clr,
71 .update = base507c_update,
72 };
73
74 int
75 base827c_new(struct nouveau_drm *drm, int head, s32 oclass,
76 struct nv50_wndw **pwndw)
77 {
78 return base507c_new_(&base827c, base507c_format, drm, head, oclass,
79 0x00000002 << (head * 8), pwndw);
80 }