XenevaOS
Loading...
Searching...
No Matches
nova_drm.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: MIT */
2
3#ifndef __NOVA_DRM_H__
4#define __NOVA_DRM_H__
5
6#include "drm.h"
7
8/* DISCLAIMER: Do not use, this is not a stable uAPI.
9 *
10 * This uAPI serves only testing purposes as long as this driver is still in
11 * development. It is required to implement and test infrastructure which is
12 * upstreamed in the context of this driver. See also [1].
13 *
14 * [1] https://lore.kernel.org/dri-devel/Zfsj0_tb-0-tNrJy@cassiopeiae/T/#u
15 */
16
17#if defined(__cplusplus)
18extern "C" {
19#endif
20
21/*
22 * NOVA_GETPARAM_VRAM_BAR_SIZE
23 *
24 * Query the VRAM BAR size in bytes.
25 */
26#define NOVA_GETPARAM_VRAM_BAR_SIZE 0x1
27
42
62
82
83#define DRM_NOVA_GETPARAM 0x00
84#define DRM_NOVA_GEM_CREATE 0x01
85#define DRM_NOVA_GEM_INFO 0x02
86
87/* Note: this is an enum so that it can be resolved by Rust bindgen. */
88enum {
95};
96
97#if defined(__cplusplus)
98}
99#endif
100
101#endif /* __NOVA_DRM_H__ */
uint32_t __u32
Definition drm.h:42
#define DRM_IOWR(nr, type)
Definition drm.h:1080
#define DRM_COMMAND_BASE
Definition drm.h:1363
uint64_t __u64
Definition drm.h:44
#define DRM_NOVA_GETPARAM
Definition nova_drm.h:83
#define DRM_NOVA_GEM_INFO
Definition nova_drm.h:85
@ DRM_IOCTL_NOVA_GETPARAM
Definition nova_drm.h:89
@ DRM_IOCTL_NOVA_GEM_INFO
Definition nova_drm.h:93
@ DRM_IOCTL_NOVA_GEM_CREATE
Definition nova_drm.h:91
#define DRM_NOVA_GEM_CREATE
Definition nova_drm.h:84
Definition nova_drm.h:46
__u32 pad
Definition nova_drm.h:55
__u64 size
Definition nova_drm.h:60
__u32 handle
Definition nova_drm.h:50
Definition nova_drm.h:66
__u32 handle
Definition nova_drm.h:70
__u64 size
Definition nova_drm.h:80
__u32 pad
Definition nova_drm.h:75
Definition nova_drm.h:31
__u64 value
Definition nova_drm.h:40
__u64 param
Definition nova_drm.h:35