Back to index

libdrm  2.4.37
Classes | Defines | Enumerations
nouveau_drm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  drm_nouveau_channel_alloc
struct  drm_nouveau_channel_free
struct  drm_nouveau_grobj_alloc
struct  drm_nouveau_notifierobj_alloc
struct  drm_nouveau_gpuobj_free
struct  drm_nouveau_getparam
struct  drm_nouveau_setparam
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
struct  drm_nouveau_gem_pushbuf_push
struct  drm_nouveau_gem_pushbuf
struct  drm_nouveau_gem_cpu_prep
struct  drm_nouveau_gem_cpu_fini
struct  drm_nouveau_sarea
struct  drm_nouveau_channel_alloc.subchan

Defines

#define NOUVEAU_DRM_HEADER_PATCHLEVEL   16
#define NOUVEAU_GETPARAM_PCI_VENDOR   3
#define NOUVEAU_GETPARAM_PCI_DEVICE   4
#define NOUVEAU_GETPARAM_BUS_TYPE   5
#define NOUVEAU_GETPARAM_FB_PHYSICAL   6
#define NOUVEAU_GETPARAM_AGP_PHYSICAL   7
#define NOUVEAU_GETPARAM_FB_SIZE   8
#define NOUVEAU_GETPARAM_AGP_SIZE   9
#define NOUVEAU_GETPARAM_PCI_PHYSICAL   10
#define NOUVEAU_GETPARAM_CHIPSET_ID   11
#define NOUVEAU_GETPARAM_VM_VRAM_BASE   12
#define NOUVEAU_GETPARAM_GRAPH_UNITS   13
#define NOUVEAU_GETPARAM_PTIMER_TIME   14
#define NOUVEAU_GETPARAM_HAS_BO_USAGE   15
#define NOUVEAU_GETPARAM_HAS_PAGEFLIP   16
#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_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
#define NOUVEAU_GEM_MAX_BUFFERS   1024
#define NOUVEAU_GEM_RELOC_LOW   (1 << 0)
#define NOUVEAU_GEM_RELOC_HIGH   (1 << 1)
#define NOUVEAU_GEM_RELOC_OR   (1 << 2)
#define NOUVEAU_GEM_MAX_RELOCS   1024
#define NOUVEAU_GEM_MAX_PUSH   512
#define NOUVEAU_GEM_CPU_PREP_NOWAIT   0x00000001
#define NOUVEAU_GEM_CPU_PREP_NOBLOCK   0x00000002
#define NOUVEAU_GEM_CPU_PREP_WRITE   0x00000004
#define DRM_NOUVEAU_GETPARAM   0x00
#define DRM_NOUVEAU_SETPARAM   0x01
#define DRM_NOUVEAU_CHANNEL_ALLOC   0x02
#define DRM_NOUVEAU_CHANNEL_FREE   0x03
#define DRM_NOUVEAU_GROBJ_ALLOC   0x04
#define DRM_NOUVEAU_NOTIFIEROBJ_ALLOC   0x05
#define DRM_NOUVEAU_GPUOBJ_FREE   0x06
#define DRM_NOUVEAU_GEM_NEW   0x40
#define DRM_NOUVEAU_GEM_PUSHBUF   0x41
#define DRM_NOUVEAU_GEM_CPU_PREP   0x42
#define DRM_NOUVEAU_GEM_CPU_FINI   0x43
#define DRM_NOUVEAU_GEM_INFO   0x44

Enumerations

enum  nouveau_bus_type { NV_AGP = 0, NV_PCI = 1, NV_PCIE = 2 }

Class Documentation

struct drm_nouveau_channel_alloc

Definition at line 30 of file nouveau_drm.h.

Class Members
int channel
uint32_t fb_ctxdma_handle
uint32_t notifier_handle
uint32_t nr_subchan
uint32_t pushbuf_domains
struct drm_nouveau_channel_alloc subchan
uint32_t tt_ctxdma_handle
struct drm_nouveau_channel_free

Definition at line 48 of file nouveau_drm.h.

Class Members
int channel
struct drm_nouveau_grobj_alloc

Definition at line 52 of file nouveau_drm.h.

Class Members
int channel
int class
uint32_t handle
struct drm_nouveau_notifierobj_alloc

Definition at line 58 of file nouveau_drm.h.

Class Members
uint32_t channel
uint32_t handle
uint32_t offset
uint32_t size
struct drm_nouveau_gpuobj_free

Definition at line 65 of file nouveau_drm.h.

Class Members
int channel
uint32_t handle
struct drm_nouveau_getparam

Definition at line 85 of file nouveau_drm.h.

Class Members
uint64_t param
uint64_t value
struct drm_nouveau_setparam

Definition at line 90 of file nouveau_drm.h.

Class Members
uint64_t param
uint64_t value
struct drm_nouveau_gem_info

Definition at line 106 of file nouveau_drm.h.

Class Members
uint32_t domain
uint32_t handle
uint64_t map_handle
uint64_t offset
uint64_t size
uint32_t tile_flags
uint32_t tile_mode
struct drm_nouveau_gem_new

Definition at line 116 of file nouveau_drm.h.

Class Members
uint32_t align
uint32_t channel_hint
struct drm_nouveau_gem_pushbuf_bo_presumed

Definition at line 123 of file nouveau_drm.h.

Class Members
uint32_t domain
uint64_t offset
uint32_t valid
struct drm_nouveau_gem_pushbuf_bo

Definition at line 129 of file nouveau_drm.h.

Class Members
uint32_t handle
uint32_t read_domains
uint64_t user_priv
uint32_t valid_domains
uint32_t write_domains
struct drm_nouveau_gem_pushbuf_reloc

Definition at line 142 of file nouveau_drm.h.

Class Members
uint32_t bo_index
uint32_t data
uint32_t flags
uint32_t reloc_bo_index
uint32_t reloc_bo_offset
uint32_t tor
uint32_t vor
struct drm_nouveau_gem_pushbuf_push

Definition at line 153 of file nouveau_drm.h.

Class Members
uint32_t bo_index
uint64_t length
uint64_t offset
uint32_t pad
struct drm_nouveau_gem_pushbuf

Definition at line 160 of file nouveau_drm.h.

Class Members
uint64_t buffers
uint32_t channel
uint64_t gart_available
uint32_t nr_buffers
uint32_t nr_push
uint32_t nr_relocs
uint64_t push
uint64_t relocs
uint32_t suffix0
uint32_t suffix1
uint64_t vram_available
struct drm_nouveau_gem_cpu_prep

Definition at line 177 of file nouveau_drm.h.

Class Members
uint32_t flags
uint32_t handle
struct drm_nouveau_gem_cpu_fini

Definition at line 182 of file nouveau_drm.h.

Class Members
uint32_t handle
struct drm_nouveau_sarea

Definition at line 192 of file nouveau_drm.h.

struct drm_nouveau_channel_alloc.subchan

Definition at line 41 of file nouveau_drm.h.

Class Members
uint32_t grclass
uint32_t handle

Define Documentation

#define DRM_NOUVEAU_CHANNEL_ALLOC   0x02

Definition at line 197 of file nouveau_drm.h.

#define DRM_NOUVEAU_CHANNEL_FREE   0x03

Definition at line 198 of file nouveau_drm.h.

#define DRM_NOUVEAU_GEM_CPU_FINI   0x43

Definition at line 205 of file nouveau_drm.h.

#define DRM_NOUVEAU_GEM_CPU_PREP   0x42

Definition at line 204 of file nouveau_drm.h.

#define DRM_NOUVEAU_GEM_INFO   0x44

Definition at line 206 of file nouveau_drm.h.

#define DRM_NOUVEAU_GEM_NEW   0x40

Definition at line 202 of file nouveau_drm.h.

#define DRM_NOUVEAU_GEM_PUSHBUF   0x41

Definition at line 203 of file nouveau_drm.h.

#define DRM_NOUVEAU_GETPARAM   0x00

Definition at line 195 of file nouveau_drm.h.

#define DRM_NOUVEAU_GPUOBJ_FREE   0x06

Definition at line 201 of file nouveau_drm.h.

#define DRM_NOUVEAU_GROBJ_ALLOC   0x04

Definition at line 199 of file nouveau_drm.h.

#define DRM_NOUVEAU_NOTIFIEROBJ_ALLOC   0x05

Definition at line 200 of file nouveau_drm.h.

#define DRM_NOUVEAU_SETPARAM   0x01

Definition at line 196 of file nouveau_drm.h.

Definition at line 28 of file nouveau_drm.h.

#define NOUVEAU_GEM_CPU_PREP_NOBLOCK   0x00000002

Definition at line 175 of file nouveau_drm.h.

#define NOUVEAU_GEM_CPU_PREP_NOWAIT   0x00000001

Definition at line 174 of file nouveau_drm.h.

#define NOUVEAU_GEM_CPU_PREP_WRITE   0x00000004

Definition at line 176 of file nouveau_drm.h.

#define NOUVEAU_GEM_DOMAIN_CPU   (1 << 0)

Definition at line 95 of file nouveau_drm.h.

#define NOUVEAU_GEM_DOMAIN_GART   (1 << 2)

Definition at line 97 of file nouveau_drm.h.

#define NOUVEAU_GEM_DOMAIN_MAPPABLE   (1 << 3)

Definition at line 98 of file nouveau_drm.h.

#define NOUVEAU_GEM_DOMAIN_VRAM   (1 << 1)

Definition at line 96 of file nouveau_drm.h.

#define NOUVEAU_GEM_MAX_BUFFERS   1024

Definition at line 122 of file nouveau_drm.h.

#define NOUVEAU_GEM_MAX_PUSH   512

Definition at line 152 of file nouveau_drm.h.

#define NOUVEAU_GEM_MAX_RELOCS   1024

Definition at line 141 of file nouveau_drm.h.

#define NOUVEAU_GEM_RELOC_HIGH   (1 << 1)

Definition at line 139 of file nouveau_drm.h.

#define NOUVEAU_GEM_RELOC_LOW   (1 << 0)

Definition at line 138 of file nouveau_drm.h.

#define NOUVEAU_GEM_RELOC_OR   (1 << 2)

Definition at line 140 of file nouveau_drm.h.

#define NOUVEAU_GEM_TILE_16BPP   0x00000001

Definition at line 101 of file nouveau_drm.h.

#define NOUVEAU_GEM_TILE_32BPP   0x00000002

Definition at line 102 of file nouveau_drm.h.

#define NOUVEAU_GEM_TILE_LAYOUT_MASK   0x0000ff00

Definition at line 100 of file nouveau_drm.h.

#define NOUVEAU_GEM_TILE_NONCONTIG   0x00000008

Definition at line 104 of file nouveau_drm.h.

#define NOUVEAU_GEM_TILE_ZETA   0x00000004

Definition at line 103 of file nouveau_drm.h.

Definition at line 75 of file nouveau_drm.h.

#define NOUVEAU_GETPARAM_AGP_SIZE   9

Definition at line 77 of file nouveau_drm.h.

#define NOUVEAU_GETPARAM_BUS_TYPE   5

Definition at line 73 of file nouveau_drm.h.

#define NOUVEAU_GETPARAM_CHIPSET_ID   11

Definition at line 79 of file nouveau_drm.h.

Definition at line 74 of file nouveau_drm.h.

#define NOUVEAU_GETPARAM_FB_SIZE   8

Definition at line 76 of file nouveau_drm.h.

Definition at line 81 of file nouveau_drm.h.

Definition at line 83 of file nouveau_drm.h.

Definition at line 84 of file nouveau_drm.h.

Definition at line 72 of file nouveau_drm.h.

Definition at line 78 of file nouveau_drm.h.

Definition at line 71 of file nouveau_drm.h.

Definition at line 82 of file nouveau_drm.h.

Definition at line 80 of file nouveau_drm.h.


Enumeration Type Documentation

Enumerator:
NV_AGP 
NV_PCI 
NV_PCIE 

Definition at line 186 of file nouveau_drm.h.

                      {
       NV_AGP     = 0,
       NV_PCI     = 1,
       NV_PCIE    = 2,
};