NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
drm-nvdc-docs.h File Reference

Detailed Description

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...
 
int drmOpenWithType (const char *name, const char *busid, int type)
 Function stub. More...
 
int drmOpenControl (int minor)
 Function stub. More...
 
int drmOpenRender (int minor)
 Function stub. More...
 
int drmGetInterruptFromBusID (int fd, int busnum, int devnum, int funcnum)
 Function stub. More...
 
int drmGetMap (int fd, int idx, drm_handle_t *offset, drmSize *size, drmMapType *type, drmMapFlags *flags, drm_handle_t *handle, int *mtrr)
 Function stub. More...
 
int drmGetClient (int fd, int idx, int *auth, int *pid, int *uid, unsigned long *magic, unsigned long *iocs)
 Function stub. More...
 
int drmGetStats (int fd, drmStatsT *stats)
 Function stub. More...
 
int drmCommandNone (int fd, unsigned long drmCommandIndex)
 Function stub. More...
 
int drmCommandRead (int fd, unsigned long drmCommandIndex, void *data, unsigned long size)
 Function stub. More...
 
int drmCommandWrite (int fd, unsigned long drmCommandIndex, void *data, unsigned long size)
 Function stub. More...
 
int drmAddContextPrivateMapping (int fd, drm_context_t ctx_id, drm_handle_t handle)
 Function stub. More...
 
int drmAddBufs (int fd, int count, int size, drmBufDescFlags flags, int agp_offset)
 Function stub. More...
 
int drmMarkBufs (int fd, double low, double high)
 Function stub. More...
 
int drmGetContextFlags (int fd, drm_context_t context, drm_context_tFlagsPtr flags)
 Function stub. More...
 
int drmSwitchToContext (int fd, drm_context_t context)
 Function stub. More...
 
int drmCtlInstHandler (int fd, int irq)
 Function stub. More...
 
int drmCtlUninstHandler (int fd)
 Function stub. More...
 
int drmCrtcGetSequence (int fd, uint32_t crtcId, uint64_t *sequence, uint64_t *ns)
 Function stub. More...
 
int drmCrtcQueueSequence (int fd, uint32_t crtcId, uint32_t flags, uint64_t sequence, uint64_t *sequence_queued, uint64_t user_data)
 Function stub. More...
 
int drmUnmapBufs (drmBufMapPtr bufs)
 Function stub. More...
 
int drmDMA (int fd, drmDMAReqPtr request)
 Function stub. More...
 
int drmFreeBufs (int fd, int count, int *list)
 Function stub. More...
 
int drmFinish (int fd, int context, drmLockFlags flags)
 Function stub. More...
 
int drmGetContextPrivateMapping (int fd, drm_context_t ctx_id, drm_handle_t *handle)
 Function stub. More...
 
int drmAgpAcquire (int fd)
 Function stub. More...
 
int drmAgpRelease (int fd)
 Function stub. More...
 
int drmAgpEnable (int fd, unsigned long mode)
 Function stub. More...
 
int drmAgpAlloc (int fd, unsigned long size, unsigned long type, unsigned long *address, drm_handle_t *handle)
 Function stub. More...
 
int drmAgpFree (int fd, drm_handle_t handle)
 Function stub. More...
 
int drmAgpBind (int fd, drm_handle_t handle, unsigned long offset)
 Function stub. More...
 
int drmAgpUnbind (int fd, drm_handle_t handle)
 Function stub. More...
 
int drmAgpVersionMajor (int fd)
 Function stub. More...
 
int drmAgpVersionMinor (int fd)
 Function stub. More...
 
int drmScatterGatherAlloc (int fd, unsigned long size, drm_handle_t *handle)
 Function stub. More...
 
int drmScatterGatherFree (int fd, drm_handle_t handle)
 Function stub. More...
 
int drmError (int err, const char *label)
 Function stub. More...
 
int drmHashDestroy (void *t)
 Function stub. More...
 
int drmHashLookup (void *t, unsigned long key, void **value)
 Function stub. More...
 
int drmHashInsert (void *t, unsigned long key, void *value)
 Function stub. More...
 
int drmHashDelete (void *t, unsigned long key)
 Function stub. More...
 
int drmRandomDestroy (void *state)
 Function stub. More...
 
int drmSLDestroy (void *l)
 Function stub. More...
 
int drmSLLookup (void *l, unsigned long key, void **value)
 Function stub. More...
 
int drmSLInsert (void *l, unsigned long key, void *value)
 Function stub. More...
 
int drmSLDelete (void *l, unsigned long key)
 Function stub. More...
 
int drmSLNext (void *l, unsigned long *key, void **value)
 Function stub. More...
 
int drmSLFirst (void *l, unsigned long *key, void **value)
 Function stub. More...
 
int drmSLLookupNeighbors (void *l, unsigned long key, unsigned long *prev_key, void **prev_value, unsigned long *next_key, void **next_value)
 Function stub. More...
 
int drmOpenOnce (void *unused, const char *BusID, int *newlyopened)
 Function stub. More...
 
int drmOpenOnceWithType (const char *BusID, int *newlyopened, int type)
 Function stub. More...
 
int drmGetNodeTypeFromFd (int fd)
 Function stub. More...
 
int drmGetDevice (int fd, drmDevicePtr *device)
 Function stub. More...
 
int drmGetDevices (drmDevicePtr devices[], int max_devices)
 Function stub. More...
 
int drmGetDevice2 (int fd, uint32_t flags, drmDevicePtr *device)
 Function stub. More...
 
int drmGetDevices2 (uint32_t flags, drmDevicePtr devices[], int max_devices)
 Function stub. More...
 
int drmDevicesEqual (drmDevicePtr a, drmDevicePtr b)
 Function stub. More...
 
int drmSyncobjCreate (int fd, uint32_t flags, uint32_t *handle)
 Function stub. More...
 
int drmSyncobjDestroy (int fd, uint32_t handle)
 Function stub. More...
 
int drmSyncobjHandleToFD (int fd, uint32_t handle, int *obj_fd)
 Function stub. More...
 
int drmSyncobjFDToHandle (int fd, int obj_fd, uint32_t *handle)
 Function stub. More...
 
int drmSyncobjImportSyncFile (int fd, uint32_t handle, int sync_file_fd)
 Function stub. More...
 
int drmSyncobjExportSyncFile (int fd, uint32_t handle, int *sync_file_fd)
 Function stub. More...
 
int drmSyncobjWait (int fd, uint32_t *handles, unsigned num_handles, int64_t timeout_nsec, unsigned flags, uint32_t *first_signaled)
 Function stub. More...
 
int drmSyncobjReset (int fd, const uint32_t *handles, uint32_t handle_count)
 Function stub. More...
 
int drmSyncobjSignal (int fd, const uint32_t *handles, uint32_t handle_count)
 Function stub. More...
 
unsigned long drmRandom (void *state)
 Function stub. More...
 
double drmRandomDouble (void *state)
 Function stub. More...
 
unsigned long drmAgpGetMode (int fd)
 Function stub. More...
 
unsigned long drmAgpBase (int fd)
 Function stub. More...
 
unsigned long drmAgpSize (int fd)
 Function stub. More...
 
unsigned long drmAgpMemoryUsed (int fd)
 Function stub. More...
 
unsigned long drmAgpMemoryAvail (int fd)
 Function stub. More...
 
unsigned int drmAgpVendorId (int fd)
 Function stub. More...
 
unsigned int drmAgpDeviceId (int fd)
 Function stub. More...
 
void drmSLDump (void *l)
 Function stub. More...
 
void drmCloseOnce (int fd)
 Function stub. More...
 
void drmFreeDevice (drmDevicePtr *device)
 Function stub. More...
 
void drmFreeDevices (drmDevicePtr devices[], int count)
 Function stub. More...
 
char * drmGetDeviceNameFromFd2 (int fd)
 Function stub. More...
 
char * drmGetPrimaryDeviceNameFromFd (int fd)
 Function stub. More...
 
char * drmGetRenderDeviceNameFromFd (int fd)
 Function stub. More...
 
drmVersionPtr drmGetLibVersion (int fd)
 Function stub. More...
 
drmBufInfoPtr drmGetBufInfo (int fd)
 Function stub. More...
 
drmBufMapPtr drmMapBufs (int fd)
 Function stub. More...
 
void * drmMalloc (int size)
 Function stub. More...
 
void * drmRandomCreate (unsigned long seed)
 Function stub. More...
 
void * drmHashCreate (void)
 Function stub. More...
 
void * drmSLCreate (void)
 Function stub. More...
 
void drmModeFreeModeInfo (drmModeModeInfoPtr ptr)
 Function stub. More...
 
void drmModeFreeFB (drmModeFBPtr ptr)
 Function stub. More...
 
void drmModeAtomicSetCursor (drmModeAtomicReqPtr req, int cursor)
 Function stub. More...
 
drmModeFBPtr drmModeGetFB (int fd, uint32_t bufferId)
 Function stub. More...
 
drmModeConnectorPtr drmModeGetConnectorCurrent (int fd, uint32_t connector_id)
 Function stub. More...
 
drmModeAtomicReqPtr drmModeAtomicDuplicate (drmModeAtomicReqPtr req)
 Function stub. More...
 
drmModeLesseeListPtr drmModeListLessees (int fd)
 Function stub. More...
 
drmModeObjectListPtr drmModeGetLease (int fd)
 Function stub. More...
 
int drmModeDirtyFB (int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips)
 Function stub. More...
 
int drmModeAttachMode (int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info)
 Function stub. More...
 
int drmModeDetachMode (int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info)
 Function stub. More...
 
int drmCheckModesettingSupported (const char *busid)
 Function stub. More...
 
int drmModePageFlipTarget (int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data, uint32_t target_vblank)
 Function stub. More...
 
int drmModeAtomicMerge (drmModeAtomicReqPtr base, drmModeAtomicReqPtr augment)
 Function stub. More...
 
int drmModeAtomicGetCursor (drmModeAtomicReqPtr req)
 Function stub. More...
 
int drmModeRevokeLease (int fd, uint32_t lessee_id)
 Function stub. More...
 
int drmModeCreateLease (int fd, const uint32_t *objects, int num_objects, int flags, uint32_t *lessee_id)
 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