Back to home page

OSCL-LXR

 
 

    


0001 #ifndef __NVIF_FIFO_H__
0002 #define __NVIF_FIFO_H__
0003 #include <nvif/device.h>
0004 
0005 /* Returns mask of runlists that support a NV_DEVICE_INFO_RUNLIST_ENGINES_* type. */
0006 u64 nvif_fifo_runlist(struct nvif_device *, u64 engine);
0007 
0008 /* CE-supporting runlists (excluding GRCE, if others exist). */
0009 static inline u64
0010 nvif_fifo_runlist_ce(struct nvif_device *device)
0011 {
0012     u64 runmgr = nvif_fifo_runlist(device, NV_DEVICE_HOST_RUNLIST_ENGINES_GR);
0013     u64 runmce = nvif_fifo_runlist(device, NV_DEVICE_HOST_RUNLIST_ENGINES_CE);
0014     if (runmce && !(runmce &= ~runmgr))
0015         runmce = runmgr;
0016     return runmce;
0017 }
0018 #endif