Blame view

kernel/linux-rt-4.4.41/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h 878 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  #ifndef __NV20_GR_H__
  #define __NV20_GR_H__
  #define nv20_gr(p) container_of((p), struct nv20_gr, base)
  #include "priv.h"
  
  struct nv20_gr {
  	struct nvkm_gr base;
  	struct nvkm_memory *ctxtab;
  };
  
  int nv20_gr_new_(const struct nvkm_gr_func *, struct nvkm_device *,
  		 int, struct nvkm_gr **);
  void *nv20_gr_dtor(struct nvkm_gr *);
  int nv20_gr_oneinit(struct nvkm_gr *);
  int nv20_gr_init(struct nvkm_gr *);
  void nv20_gr_intr(struct nvkm_gr *);
  void nv20_gr_tile(struct nvkm_gr *, int, struct nvkm_fb_tile *);
  
  int nv30_gr_init(struct nvkm_gr *);
  
  #define nv20_gr_chan(p) container_of((p), struct nv20_gr_chan, object)
  
  struct nv20_gr_chan {
  	struct nvkm_object object;
  	struct nv20_gr *gr;
  	int chid;
  	struct nvkm_memory *inst;
  };
  
  void *nv20_gr_chan_dtor(struct nvkm_object *);
  int nv20_gr_chan_init(struct nvkm_object *);
  int nv20_gr_chan_fini(struct nvkm_object *, bool);
  #endif