1*bea8395cSBen Skeggs #ifndef __NVIF_PUSHC37B_H__ 2*bea8395cSBen Skeggs #define __NVIF_PUSHC37B_H__ 3*bea8395cSBen Skeggs #include <nvif/push.h> 4*bea8395cSBen Skeggs 5*bea8395cSBen Skeggs #include <nvhw/class/clc37b.h> 6*bea8395cSBen Skeggs 7*bea8395cSBen Skeggs #define PUSH_HDR(p,m,c) do { \ 8*bea8395cSBen Skeggs PUSH_ASSERT(!((m) & ~DRF_SMASK(NVC37B_DMA_METHOD_OFFSET)), "mthd"); \ 9*bea8395cSBen Skeggs PUSH_ASSERT(!((c) & ~DRF_MASK(NVC37B_DMA_METHOD_COUNT)), "size"); \ 10*bea8395cSBen Skeggs PUSH_DATA__((p), NVDEF(NVC37B, DMA, OPCODE, METHOD) | \ 11*bea8395cSBen Skeggs NVVAL(NVC37B, DMA, METHOD_COUNT, (c)) | \ 12*bea8395cSBen Skeggs NVVAL(NVC37B, DMA, METHOD_OFFSET, (m) >> 2), \ 13*bea8395cSBen Skeggs " mthd 0x%04x size %d - %s", (u32)(m), (u32)(c), __func__); \ 14*bea8395cSBen Skeggs } while(0) 15*bea8395cSBen Skeggs 16*bea8395cSBen Skeggs #define PUSH_MTHD_HDR(p,s,m,c) PUSH_HDR(p,m,c) 17*bea8395cSBen Skeggs #define PUSH_MTHD_INC 4:4 18*bea8395cSBen Skeggs #endif 19