#ifndef __NVKM_GRCTX_H__
#define __NVKM_GRCTX_H__
#include <core/gpuobj.h>
struct nvkm_grctx { … };
static inline void
cp_out(struct nvkm_grctx *ctx, u32 inst)
{ … }
static inline void
cp_lsr(struct nvkm_grctx *ctx, u32 val)
{ … }
static inline void
cp_ctx(struct nvkm_grctx *ctx, u32 reg, u32 length)
{ … }
static inline void
cp_name(struct nvkm_grctx *ctx, int name)
{ … }
static inline void
_cp_bra(struct nvkm_grctx *ctx, u32 mod, int flag, int state, int name)
{ … }
#define cp_bra(c, f, s, n) …
#define cp_cal(c, f, s, n) …
#define cp_ret(c, f, s) …
static inline void
_cp_wait(struct nvkm_grctx *ctx, int flag, int state)
{ … }
#define cp_wait(c, f, s) …
static inline void
_cp_set(struct nvkm_grctx *ctx, int flag, int state)
{ … }
#define cp_set(c, f, s) …
static inline void
cp_pos(struct nvkm_grctx *ctx, int offset)
{ … }
static inline void
gr_def(struct nvkm_grctx *ctx, u32 reg, u32 val)
{ … }
#endif