10bc8ffe0SLyude Paul /* SPDX-License-Identifier: MIT */ 20bc8ffe0SLyude Paul #ifndef __NV50_KMS_HANDLES_H__ 30bc8ffe0SLyude Paul #define __NV50_KMS_HANDLES_H__ 40bc8ffe0SLyude Paul 50bc8ffe0SLyude Paul /* 60bc8ffe0SLyude Paul * Various hard-coded object handles that nouveau uses. These are made-up by 70bc8ffe0SLyude Paul * nouveau developers, not Nvidia. The only significance of the handles chosen 80bc8ffe0SLyude Paul * is that they must all be unique. 90bc8ffe0SLyude Paul */ 100bc8ffe0SLyude Paul #define NV50_DISP_HANDLE_SYNCBUF 0xf0000000 110bc8ffe0SLyude Paul #define NV50_DISP_HANDLE_VRAM 0xf0000001 120bc8ffe0SLyude Paul 130bc8ffe0SLyude Paul #define NV50_DISP_HANDLE_WNDW_CTX(kind) (0xfb000000 | kind) 14*12885ecbSLyude Paul #define NV50_DISP_HANDLE_CRC_CTX(head, i) (0xfc000000 | head->base.index << 1 | i) 150bc8ffe0SLyude Paul 160bc8ffe0SLyude Paul #endif /* !__NV50_KMS_HANDLES_H__ */ 17