File: handles.h

package info (click to toggle)
linux 6.17.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,734,408 kB
  • sloc: ansic: 26,679,265; asm: 271,207; sh: 147,319; python: 75,916; makefile: 57,295; perl: 36,942; xml: 19,562; cpp: 5,899; yacc: 4,909; lex: 2,943; awk: 1,556; sed: 29; ruby: 25
file content (16 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (30)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: MIT */
#ifndef __NV50_KMS_HANDLES_H__
#define __NV50_KMS_HANDLES_H__

/*
 * Various hard-coded object handles that nouveau uses. These are made-up by
 * nouveau developers, not Nvidia. The only significance of the handles chosen
 * is that they must all be unique.
 */
#define NV50_DISP_HANDLE_SYNCBUF                                        0xf0000000
#define NV50_DISP_HANDLE_VRAM                                           0xf0000001

#define NV50_DISP_HANDLE_WNDW_CTX(kind)                        (0xfb000000 | kind)
#define NV50_DISP_HANDLE_CRC_CTX(head, i) (0xfc000000 | head->base.index << 1 | i)

#endif /* !__NV50_KMS_HANDLES_H__ */