This source file includes following definitions.
- gm200_ltc_oneinit
- gm200_ltc_init
- gm200_ltc_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 #include <subdev/fb.h>
27 #include <subdev/timer.h>
28
29 static int
30 gm200_ltc_oneinit(struct nvkm_ltc *ltc)
31 {
32 struct nvkm_device *device = ltc->subdev.device;
33
34 ltc->ltc_nr = nvkm_rd32(device, 0x12006c);
35 ltc->lts_nr = nvkm_rd32(device, 0x17e280) >> 28;
36
37 return gf100_ltc_oneinit_tag_ram(ltc);
38 }
39 static void
40 gm200_ltc_init(struct nvkm_ltc *ltc)
41 {
42 nvkm_wr32(ltc->subdev.device, 0x17e278, ltc->tag_base);
43 }
44
45 static const struct nvkm_ltc_func
46 gm200_ltc = {
47 .oneinit = gm200_ltc_oneinit,
48 .init = gm200_ltc_init,
49 .intr = gm107_ltc_intr,
50 .cbc_clear = gm107_ltc_cbc_clear,
51 .cbc_wait = gm107_ltc_cbc_wait,
52 .zbc = 16,
53 .zbc_clear_color = gm107_ltc_zbc_clear_color,
54 .zbc_clear_depth = gm107_ltc_zbc_clear_depth,
55 .invalidate = gf100_ltc_invalidate,
56 .flush = gf100_ltc_flush,
57 };
58
59 int
60 gm200_ltc_new(struct nvkm_device *device, int index, struct nvkm_ltc **pltc)
61 {
62 return nvkm_ltc_new_(&gm200_ltc, device, index, pltc);
63 }