18c2ecf20Sopenharmony_ci#ifndef __NVIF_PUSH906F_H__ 28c2ecf20Sopenharmony_ci#define __NVIF_PUSH906F_H__ 38c2ecf20Sopenharmony_ci#include <nvif/push.h> 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <nvhw/class/cl906f.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef PUSH906F_SUBC 88c2ecf20Sopenharmony_ci// Host methods 98c2ecf20Sopenharmony_ci#define PUSH906F_SUBC_NV906F 0 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci// Twod 128c2ecf20Sopenharmony_ci#define PUSH906F_SUBC_NV902D 3 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci// MemoryToMemoryFormat 158c2ecf20Sopenharmony_ci#define PUSH906F_SUBC_NV9039 4 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci// DmaCopy 188c2ecf20Sopenharmony_ci#define PUSH906F_SUBC_NV90B5 4 198c2ecf20Sopenharmony_ci#define PUSH906F_SUBC_NVA0B5 4 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#define PUSH_HDR(p,o,n,f,s,m,c) do { \ 238c2ecf20Sopenharmony_ci PUSH_ASSERT(!((s) & ~DRF_MASK(NV906F_DMA_METHOD_SUBCHANNEL)), "subc"); \ 248c2ecf20Sopenharmony_ci PUSH_ASSERT(!((m) & ~(DRF_MASK(NV906F_DMA_METHOD_ADDRESS) << 2)), "mthd"); \ 258c2ecf20Sopenharmony_ci PUSH_ASSERT(!((c) & ~DRF_MASK(NV906F_DMA_METHOD_COUNT)), "count/immd"); \ 268c2ecf20Sopenharmony_ci PUSH_DATA__((p), NVVAL(NV906F, DMA, METHOD_ADDRESS, (m) >> 2) | \ 278c2ecf20Sopenharmony_ci NVVAL(NV906F, DMA, METHOD_SUBCHANNEL, (s)) | \ 288c2ecf20Sopenharmony_ci NVVAL(NV906F, DMA, METHOD_COUNT, (c)) | \ 298c2ecf20Sopenharmony_ci NVDEF(NV906F, DMA, SEC_OP, o), \ 308c2ecf20Sopenharmony_ci " "n" subc %d mthd 0x%04x "f" - %s", \ 318c2ecf20Sopenharmony_ci (u32)(s), (u32)(m), (u32)(c), __func__); \ 328c2ecf20Sopenharmony_ci} while(0) 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#define PUSH_MTHD_INC 4:4 358c2ecf20Sopenharmony_ci#define PUSH_MTHD_HDR(p,c,m,n) \ 368c2ecf20Sopenharmony_ci PUSH_HDR(p, INC_METHOD, "incr", "size %d", PUSH906F_SUBC_##c, m, n) 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#define PUSH_NINC_INC 0:0 398c2ecf20Sopenharmony_ci#define PUSH_NINC_HDR(p,c,m,n) \ 408c2ecf20Sopenharmony_ci PUSH_HDR(p, NON_INC_METHOD, "ninc", "size %d", PUSH906F_SUBC_##c, m, n) 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci#define PUSH_IMMD_HDR(p,c,m,n) \ 438c2ecf20Sopenharmony_ci PUSH_HDR(p, IMMD_DATA_METHOD, "immd", "data 0x%04x", PUSH906F_SUBC_##c, m, n) 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#define PUSH_1INC_INC 4:0 468c2ecf20Sopenharmony_ci#define PUSH_1INC_HDR(p,c,m,n) \ 478c2ecf20Sopenharmony_ci PUSH_HDR(p, ONE_INC, "oinc", "size %d", PUSH906F_SUBC_##c, m, n) 488c2ecf20Sopenharmony_ci#endif 49