1 #ifndef __NVIF_PUSH906F_H__ 2 #define __NVIF_PUSH906F_H__ 3 #include <nvif/push.h> 4 5 #include <nvhw/class/cl906f.h> 6 7 #ifndef PUSH906F_SUBC 8 // Host methods 9 #define PUSH906F_SUBC_NV906F 0 10 11 // Twod 12 #define PUSH906F_SUBC_NV902D 3 13 14 // MemoryToMemoryFormat 15 #define PUSH906F_SUBC_NV9039 4 16 17 // DmaCopy 18 #define PUSH906F_SUBC_NV90B5 4 19 #define PUSH906F_SUBC_NVA0B5 4 20 #endif 21 22 #define PUSH_HDR(p,o,n,f,s,m,c) do { \ 23 PUSH_ASSERT(!((s) & ~DRF_MASK(NV906F_DMA_METHOD_SUBCHANNEL)), "subc"); \ 24 PUSH_ASSERT(!((m) & ~(DRF_MASK(NV906F_DMA_METHOD_ADDRESS) << 2)), "mthd"); \ 25 PUSH_ASSERT(!((c) & ~DRF_MASK(NV906F_DMA_METHOD_COUNT)), "count/immd"); \ 26 PUSH_DATA__((p), NVVAL(NV906F, DMA, METHOD_ADDRESS, (m) >> 2) | \ 27 NVVAL(NV906F, DMA, METHOD_SUBCHANNEL, (s)) | \ 28 NVVAL(NV906F, DMA, METHOD_COUNT, (c)) | \ 29 NVDEF(NV906F, DMA, SEC_OP, o), \ 30 " "n" subc %d mthd 0x%04x "f" - %s", \ 31 (u32)(s), (u32)(m), (u32)(c), __func__); \ 32 } while(0) 33 34 #define PUSH_MTHD_INC 4:4 35 #define PUSH_MTHD_HDR(p,c,m,n) \ 36 PUSH_HDR(p, INC_METHOD, "incr", "size %d", PUSH906F_SUBC_##c, m, n) 37 38 #define PUSH_NINC_INC 0:0 39 #define PUSH_NINC_HDR(p,c,m,n) \ 40 PUSH_HDR(p, NON_INC_METHOD, "ninc", "size %d", PUSH906F_SUBC_##c, m, n) 41 42 #define PUSH_IMMD_HDR(p,c,m,n) \ 43 PUSH_HDR(p, IMMD_DATA_METHOD, "immd", "data 0x%04x", PUSH906F_SUBC_##c, m, n) 44 45 #define PUSH_1INC_INC 4:0 46 #define PUSH_1INC_HDR(p,c,m,n) \ 47 PUSH_HDR(p, ONE_INC, "oinc", "size %d", PUSH906F_SUBC_##c, m, n) 48 #endif 49