xref: /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/dispnv50/handles.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: MIT */
2*4882a593Smuzhiyun #ifndef __NV50_KMS_HANDLES_H__
3*4882a593Smuzhiyun #define __NV50_KMS_HANDLES_H__
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * Various hard-coded object handles that nouveau uses. These are made-up by
7*4882a593Smuzhiyun  * nouveau developers, not Nvidia. The only significance of the handles chosen
8*4882a593Smuzhiyun  * is that they must all be unique.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #define NV50_DISP_HANDLE_SYNCBUF                                        0xf0000000
11*4882a593Smuzhiyun #define NV50_DISP_HANDLE_VRAM                                           0xf0000001
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #define NV50_DISP_HANDLE_WNDW_CTX(kind)                        (0xfb000000 | kind)
14*4882a593Smuzhiyun #define NV50_DISP_HANDLE_CRC_CTX(head, i) (0xfc000000 | head->base.index << 1 | i)
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif /* !__NV50_KMS_HANDLES_H__ */
17