include/uapi/drm/nouveau_drm.h
Source file repositories/reference/linux-study-clean/include/uapi/drm/nouveau_drm.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/drm/nouveau_drm.h- Extension
.h- Size
- 17038 bytes
- Lines
- 587
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm.h
Detected Declarations
struct drm_nouveau_getparamstruct drm_nouveau_channel_allocstruct drm_nouveau_channel_freestruct drm_nouveau_notifierobj_allocstruct drm_nouveau_gpuobj_freestruct drm_nouveau_gem_infostruct drm_nouveau_gem_newstruct drm_nouveau_gem_pushbuf_bo_presumedstruct drm_nouveau_gem_pushbuf_bostruct drm_nouveau_gem_pushbuf_relocstruct drm_nouveau_gem_pushbuf_pushstruct drm_nouveau_gem_pushbufstruct drm_nouveau_gem_cpu_prepstruct drm_nouveau_gem_cpu_finistruct drm_nouveau_syncstruct drm_nouveau_vm_initstruct drm_nouveau_vm_bind_opstruct drm_nouveau_vm_bindstruct drm_nouveau_exec_pushstruct drm_nouveau_execstruct drm_nouveau_get_zcull_infostruct drm_nouveau_svm_initstruct drm_nouveau_svm_bind
Annotated Snippet
struct drm_nouveau_getparam {
__u64 param;
__u64 value;
};
/*
* Those are used to support selecting the main engine used on Kepler.
* This goes into drm_nouveau_channel_alloc::tt_ctxdma_handle
*/
#define NOUVEAU_FIFO_ENGINE_GR 0x01
#define NOUVEAU_FIFO_ENGINE_VP 0x02
#define NOUVEAU_FIFO_ENGINE_PPP 0x04
#define NOUVEAU_FIFO_ENGINE_BSP 0x08
#define NOUVEAU_FIFO_ENGINE_CE 0x30
struct drm_nouveau_channel_alloc {
__u32 fb_ctxdma_handle;
__u32 tt_ctxdma_handle;
__s32 channel;
__u32 pushbuf_domains;
/* Notifier memory */
__u32 notifier_handle;
/* DRM-enforced subchannel assignments */
struct {
__u32 handle;
__u32 grclass;
} subchan[8];
__u32 nr_subchan;
};
struct drm_nouveau_channel_free {
__s32 channel;
};
struct drm_nouveau_notifierobj_alloc {
__u32 channel;
__u32 handle;
__u32 size;
__u32 offset;
};
struct drm_nouveau_gpuobj_free {
__s32 channel;
__u32 handle;
};
#define NOUVEAU_GEM_DOMAIN_CPU (1 << 0)
#define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1)
#define NOUVEAU_GEM_DOMAIN_GART (1 << 2)
#define NOUVEAU_GEM_DOMAIN_MAPPABLE (1 << 3)
#define NOUVEAU_GEM_DOMAIN_COHERENT (1 << 4)
/* The BO will never be shared via import or export. */
#define NOUVEAU_GEM_DOMAIN_NO_SHARE (1 << 5)
#define NOUVEAU_GEM_TILE_COMP 0x00030000 /* nv50-only */
#define NOUVEAU_GEM_TILE_LAYOUT_MASK 0x0000ff00
#define NOUVEAU_GEM_TILE_16BPP 0x00000001
#define NOUVEAU_GEM_TILE_32BPP 0x00000002
#define NOUVEAU_GEM_TILE_ZETA 0x00000004
#define NOUVEAU_GEM_TILE_NONCONTIG 0x00000008
struct drm_nouveau_gem_info {
__u32 handle;
__u32 domain;
__u64 size;
__u64 offset;
__u64 map_handle;
__u32 tile_mode;
__u32 tile_flags;
};
struct drm_nouveau_gem_new {
struct drm_nouveau_gem_info info;
__u32 channel_hint;
__u32 align;
};
#define NOUVEAU_GEM_MAX_BUFFERS 1024
struct drm_nouveau_gem_pushbuf_bo_presumed {
__u32 valid;
__u32 domain;
__u64 offset;
};
struct drm_nouveau_gem_pushbuf_bo {
__u64 user_priv;
__u32 handle;
Annotation
- Immediate include surface: `drm.h`.
- Detected declarations: `struct drm_nouveau_getparam`, `struct drm_nouveau_channel_alloc`, `struct drm_nouveau_channel_free`, `struct drm_nouveau_notifierobj_alloc`, `struct drm_nouveau_gpuobj_free`, `struct drm_nouveau_gem_info`, `struct drm_nouveau_gem_new`, `struct drm_nouveau_gem_pushbuf_bo_presumed`, `struct drm_nouveau_gem_pushbuf_bo`, `struct drm_nouveau_gem_pushbuf_reloc`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.