Blame view

kernel/linux-rt-4.4.41/drivers/gpu/drm/nouveau/nvkm/engine/sw/chan.h 752 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
  #ifndef __NVKM_SW_CHAN_H__
  #define __NVKM_SW_CHAN_H__
  #define nvkm_sw_chan(p) container_of((p), struct nvkm_sw_chan, object)
  #include "priv.h"
  #include <core/event.h>
  
  struct nvkm_sw_chan {
  	const struct nvkm_sw_chan_func *func;
  	struct nvkm_object object;
  	struct nvkm_sw *sw;
  	struct nvkm_fifo_chan *fifo;
  	struct list_head head;
  
  	struct nvkm_event event;
  };
  
  struct nvkm_sw_chan_func {
  	void *(*dtor)(struct nvkm_sw_chan *);
  	bool (*mthd)(struct nvkm_sw_chan *, int subc, u32 mthd, u32 data);
  };
  
  int nvkm_sw_chan_ctor(const struct nvkm_sw_chan_func *, struct nvkm_sw *,
  		      struct nvkm_fifo_chan *, const struct nvkm_oclass *,
  		      struct nvkm_sw_chan *);
  bool nvkm_sw_chan_mthd(struct nvkm_sw_chan *, int subc, u32 mthd, u32 data);
  #endif