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 10 struct nvkm_fifo_func { 11 void *(*dtor)(struct nvkm_fifo *); 12 int (*oneinit)(struct nvkm_fifo *); 13 void (*init)(struct nvkm_fifo *); 14 void (*fini)(struct nvkm_fifo *); 15 void (*intr)(struct nvkm_fifo *); 16 void (*pause)(struct nvkm_fifo *, unsigned long *); 17 void (*start)(struct nvkm_fifo *, unsigned long *); 18 void (*uevent_init)(struct nvkm_fifo *); 19 void (*uevent_fini)(struct nvkm_fifo *); 20 const struct nvkm_fifo_chan_oclass *chan[]; 21 }; 22 23 void nv04_fifo_intr(struct nvkm_fifo *); 24 void nv04_fifo_pause(struct nvkm_fifo *, unsigned long *); 25 void nv04_fifo_start(struct nvkm_fifo *, unsigned long *); 26 #endif 27