18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: MIT */ 28c2ecf20Sopenharmony_ci#ifndef __NV50_KMS_HANDLES_H__ 38c2ecf20Sopenharmony_ci#define __NV50_KMS_HANDLES_H__ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * Various hard-coded object handles that nouveau uses. These are made-up by 78c2ecf20Sopenharmony_ci * nouveau developers, not Nvidia. The only significance of the handles chosen 88c2ecf20Sopenharmony_ci * is that they must all be unique. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#define NV50_DISP_HANDLE_SYNCBUF 0xf0000000 118c2ecf20Sopenharmony_ci#define NV50_DISP_HANDLE_VRAM 0xf0000001 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define NV50_DISP_HANDLE_WNDW_CTX(kind) (0xfb000000 | kind) 148c2ecf20Sopenharmony_ci#define NV50_DISP_HANDLE_CRC_CTX(head, i) (0xfc000000 | head->base.index << 1 | i) 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#endif /* !__NV50_KMS_HANDLES_H__ */ 17