1 #ifndef __NVKM_FIFO_PRIV_H__ 2 #define __NVKM_FIFO_PRIV_H__ 3 #define nvkm_fifo(p) container_of((p), struct nvkm_fifo, engine) 4 #include <engine/fifo.h> 5 6 int nvkm_fifo_ctor(const struct nvkm_fifo_func *, struct nvkm_device *, 7 int index, int nr, struct nvkm_fifo *); 8 void nvkm_fifo_uevent(struct nvkm_fifo *); 9 void nvkm_fifo_cevent(struct nvkm_fifo *); 10 void nvkm_fifo_kevent(struct nvkm_fifo *, int chid); 11 void nvkm_fifo_recover_chan(struct nvkm_fifo *, int chid); 12 13 struct nvkm_fifo_chan * 14 nvkm_fifo_chan_inst_locked(struct nvkm_fifo *, u64 inst); 15 16 struct nvkm_fifo_chan_oclass; 17 struct nvkm_fifo_func { 18 void *(*dtor)(struct nvkm_fifo *); 19 int (*oneinit)(struct nvkm_fifo *); 20 void (*init)(struct nvkm_fifo *); 21 void (*fini)(struct nvkm_fifo *); 22 void (*intr)(struct nvkm_fifo *); 23 void (*pause)(struct nvkm_fifo *, unsigned long *); 24 void (*start)(struct nvkm_fifo *, unsigned long *); 25 void (*uevent_init)(struct nvkm_fifo *); 26 void (*uevent_fini)(struct nvkm_fifo *); 27 void (*recover_chan)(struct nvkm_fifo *, int chid); 28 int (*class_get)(struct nvkm_fifo *, int index, 29 const struct nvkm_fifo_chan_oclass **); 30 const struct nvkm_fifo_chan_oclass *chan[]; 31 }; 32 33 void nv04_fifo_intr(struct nvkm_fifo *); 34 void nv04_fifo_pause(struct nvkm_fifo *, unsigned long *); 35 void nv04_fifo_start(struct nvkm_fifo *, unsigned long *); 36 #endif 37