xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1 #ifndef __NVKM_FBRAM_SEQ_H__
2 #define __NVKM_FBRAM_SEQ_H__
3 #include <subdev/bus/hwsq.h>
4 
5 #define ram_init(s,p)       hwsq_init(&(s)->base, (p))
6 #define ram_exec(s,e)       hwsq_exec(&(s)->base, (e))
7 #define ram_have(s,r)       ((s)->r_##r.addr != 0x000000)
8 #define ram_rd32(s,r)       hwsq_rd32(&(s)->base, &(s)->r_##r)
9 #define ram_wr32(s,r,d)     hwsq_wr32(&(s)->base, &(s)->r_##r, (d))
10 #define ram_nuke(s,r)       hwsq_nuke(&(s)->base, &(s)->r_##r)
11 #define ram_mask(s,r,m,d)   hwsq_mask(&(s)->base, &(s)->r_##r, (m), (d))
12 #define ram_setf(s,f,d)     hwsq_setf(&(s)->base, (f), (d))
13 #define ram_wait(s,f,d)     hwsq_wait(&(s)->base, (f), (d))
14 #define ram_nsec(s,n)       hwsq_nsec(&(s)->base, (n))
15 #endif
16