![]() |
NVIDIA DRIVE 5.0 Linux SDK API Reference5.0.10.3 Release |
NVIDIA Direct Rendering Manager API
Description: DRM-NVDC is an NVIDIA implementation of DRM (Direct Rendering Manager) for Tegra devices.
Definition in file drm-nvdc-docs.h.
Go to the source code of this file.
Functions | |
int | drmOpen (const char *name, const char *busid) |
Opens a DRM device and creates a file descriptor handle. More... | |
int | drmClose (int fd) |
Closes a DRM device. More... | |
int | drmGetCap (int fd, uint64_t capability, uint64_t *value) |
Gets capabilities of the DRM driver. More... | |
int | drmSetClientCap (int fd, uint64_t capability, uint64_t value) |
Enables or disables DRM features (capabilities). More... | |
int | drmSetMaster (int fd) |
Requests master controls for a DRM device. More... | |
int | drmDropMaster (int fd) |
Releases master controls for a DRM device. More... | |
int | drmGetMagic (int fd, drm_magic_t *magic) |
Retrieves a magic cookie. More... | |
int | drmAuthMagic (int fd, drm_magic_t magic) |
Authenticates a magic cookie. More... | |
drmVersionPtr | drmGetVersion (int fd) |
Retrieves version information for the DRM driver. More... | |
void | drmFreeVersion (drmVersionPtr version) |
Frees a version information structure. More... | |
int | drmHandleEvent (int fd, drmEventContextPtr evctx) |
Polls for an event, specifying a callback function. More... | |
int | drmIoctl (int fd, unsigned long request, void *arg) |
Issues a DRM input/output control (IOCTL). More... | |
int | drmWaitVBlank (int fd, drmVBlankPtr vbl) |
Waits for a vertical blanking interval (vblank). More... | |
int | drmModeAddFB (int fd, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t pitch, uint32_t bo_handle, uint32_t *buf_id) |
Creates a framebuffer. More... | |
int | drmModeAddFB2 (int fd, uint32_t width, uint32_t height, uint32_t pixel_format, const uint32_t bo_handles[4], const uint32_t pitches[4], const uint32_t offsets[4], uint32_t *buf_id, uint32_t flags) |
Creates a framebuffer, specifying format and planes. More... | |
int | drmModeRmFB (int fd, uint32_t fb_id) |
Destroys a framebuffer. More... | |
drmModeConnectorPtr | drmModeGetConnector (int fd, uint32_t connector_id) |
Gets information for a connector. More... | |
void | drmModeFreeConnector (drmModeConnectorPtr ptr) |
Frees a connector. More... | |
int | drmModeConnectorSetProperty (int fd, uint32_t connector_id, uint32_t property_id, uint64_t value) |
Sets a connector property. More... | |
drmModeCrtcPtr | drmModeGetCrtc (int fd, uint32_t crtc_id) |
Gets information for a CRTC. More... | |
void | drmModeFreeCrtc (drmModeCrtcPtr ptr) |
Frees a CRTC. More... | |
int | drmModeSetCrtc (int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t x, uint32_t y, uint32_t *connectors, int count, drmModeModeInfoPtr drm_mode) |
Sets a CRTC configuration. More... | |
int | drmModeCrtcSetGamma (int fd, uint32_t crtc_id, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue) |
Sets the display gamma. More... | |
int | drmModeCrtcGetGamma (int fd, uint32_t crtc_id, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue) |
Gets the current display gamma ramp. More... | |
int | drmModePageFlip (int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data) |
Requests a page flip (framebuffer change) on the specified CRTC. More... | |
int | drmModeSetCursor (int fd, uint32_t crtc_id, uint32_t bo_handle, uint32_t width, uint32_t height) |
Sets a cursor image. More... | |
int | drmModeMoveCursor (int fd, uint32_t crtc_id, int x, int y) |
Moves a cursor. More... | |
drmModeEncoderPtr | drmModeGetEncoder (int fd, uint32_t encoder_id) |
Gets information for an encoder. More... | |
void | drmModeFreeEncoder (drmModeEncoderPtr ptr) |
Frees an encoder. More... | |
drmModePlanePtr | drmModeGetPlane (int fd, uint32_t plane_id) |
Gets information about a plane. More... | |
void | drmModeFreePlane (drmModePlanePtr ptr) |
Frees a plane. More... | |
int | drmModeSetPlane (int fd, uint32_t plane_id, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, int32_t crtc_x, int32_t crtc_y, uint32_t crtc_w, uint32_t crtc_h, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h) |
Changes a plane's framebuffer and position. More... | |
drmModeObjectPropertiesPtr | drmModeObjectGetProperties (int fd, uint32_t object_id, uint32_t object_type) |
Gets all properties of a DRM object. More... | |
void | drmModeFreeObjectProperties (drmModeObjectPropertiesPtr ptr) |
Frees an object properties structure. More... | |
drmModePropertyPtr | drmModeGetProperty (int fd, uint32_t propertyId) |
Gets a property structure that describes a property of a DRM object. More... | |
int | drmModeObjectSetProperty (int fd, uint32_t object_id, uint32_t object_type, uint32_t property_id, uint64_t value) |
Set the current value of an object's property. More... | |
void | drmModeFreeProperty (drmModePropertyPtr ptr) |
Frees a property structure. More... | |
drmModeResPtr | drmModeGetResources (int fd) |
Gets information about a DRM device's CRTCs, encoders, and connectors. More... | |
void | drmModeFreeResources (drmModeResPtr ptr) |
Frees a resource information structure. More... | |
drmModePlaneResPtr | drmModeGetPlaneResources (int fd) |
Gets information about planes. More... | |
void | drmModeFreePlaneResources (drmModePlaneResPtr ptr) |
Frees a plane resource information structure. More... | |
int | drmPrimeFDToHandle (int fd, int prime_fd, uint32_t *handle) |
Imports a dma-buf. More... | |
int | drmPrimeHandleToFD (int fd, uint32_t handle, uint32_t flags, int *prime_fd) drmModeAtomicReqPtr drmModeAtomicAlloc(void) |
Exports a dma-buf. More... | |
int | drmModeAtomicAddProperty (drmModeAtomicReqPtr req, uint32_t object_id, uint32_t property_id, uint64_t value) |
Adds a property to an atomic request. More... | |
int | drmModeAtomicCommit (int fd, drmModeAtomicReqPtr req, uint32_t flags, void *user_data) |
Commits an atomic property change request to hardware. More... | |
void | drmModeAtomicFree (drmModeAtomicReqPtr req) |
Frees an atomic request. More... | |
int | drmSetInterfaceVersion (int fd, drmSetVersion *version) |
Sets the interface version. More... | |
char * | drmGetBusid (int fd) |
Gets the bus ID of a device. More... | |
void | drmFreeBusid (const char *busid) |
Frees bus ID information. More... | |
int | drmModeCreatePropertyBlob (int fd, const void *data, size_t size, uint32_t *id) |
Creates a property blob. More... | |
int | drmModeDestroyPropertyBlob (int fd, uint32_t id) |
Destroys a property blob. More... | |
drmModePropertyBlobPtr | drmModeGetPropertyBlob (int fd, uint32_t blob_id) |
Allocates and retrieves a userspace property blob pointer. More... | |
void | drmModeFreePropertyBlob (drmModePropertyBlobPtr ptr) |
Frees a userspace property blob pointer. More... | |
char * | drmGetDeviceNameFromFd (int fd) |
Gets a DRM device's name string. More... | |
void | drmFree (void *p) |
Frees a block of memory. More... | |
int | drmCommandWriteRead (int fd, unsigned long drmCommandIndex, void *data, unsigned long size) |
Send a device-specific read-write command. More... | |
drmHashEntry * | drmGetEntry (int fd) |
Function stub. More... | |
int | drmRmMap (int fd, drm_handle_t handle) |
Function stub. More... | |
int | drmAvailable (void) |
Function stub. More... | |
int | drmDestroyDrawable (int fd, drm_drawable_t handle) |
Function stub. More... | |
int | drmDestroyContext (int fd, drm_context_t handle) |
Function stub. More... | |
int | drmSetContextFlags (int fd, drm_context_t context, drm_context_tFlags flags) |
Function stub. More... | |
int | drmMap (int fd, drm_handle_t handle, drmSize size, drmAddressPtr address) |
Function stub. More... | |
int | drmUnlock (int fd, drm_context_t context) |
Function stub. More... | |
void | drmFreeReservedContextList (drm_context_t *pt) |
Function stub. More... | |
void | drmSetServerInfo (drmServerInfoPtr info) |
Function stub. More... | |
int | drmAddContextTag (int fd, drm_context_t context, void *tag) |
Function stub. More... | |
int | drmAddMap (int fd, drm_handle_t offset, drmSize size, drmMapType type, drmMapFlags flags, drm_handle_t *handle) |
Function stub. More... | |
int | drmCreateContext (int fd, drm_context_t *handle) |
Function stub. More... | |
int | drmUpdateDrawableInfo (int fd, drm_drawable_t handle, drm_drawable_info_type_t type, unsigned int num, void *data) |
Function stub. More... | |
int | drmCreateDrawable (int fd, drm_drawable_t *handle) |
Function stub. More... | |
void * | drmGetHashTable (void) |
Function stub. More... | |
int | drmDelContextTag (int fd, drm_context_t context) |
Function stub. More... | |
int | drmUnmap (drmAddress address, drmSize size) |
Function stub. More... | |
int | drmSetBusid (int fd, const char *busid) |
Function stub. More... | |
int | drmGetLock (int fd, drm_context_t context, drmLockFlags flags) |
Function stub. More... | |
void * | drmGetContextTag (int fd, drm_context_t context) |
Function stub. More... | |
drm_context_t * | drmGetReservedContextList (int fd, int *count) |
Function stub. More... | |
int | drmHashNext (void *t, unsigned long *key, void **value) |
Function stub. More... | |
int | drmHashFirst (void *t, unsigned long *key, void **value) |
Function stub. More... | |
int | drmModeSetCursor2 (int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height, int32_t hot_x, int32_t hot_y) int drmModeAddFB2WithModifiers(int fd |
Function stub. More... | |
Variables | |
int uint32_t | width |
int uint32_t uint32_t | height |
int uint32_t uint32_t uint32_t | pixel_format |
int uint32_t uint32_t uint32_t const uint32_t | bo_handles [4] |
int uint32_t uint32_t uint32_t const uint32_t const uint32_t | pitches [4] |
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t | offsets [4] |
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t | modifier [4] |
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t * | buf_id |
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t | flags |