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
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2018 NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 
11 
39 int drmOpen(const char* name, const char* busid);
40 
41 
48 int drmClose(int fd);
49 
50 
73 int drmGetCap(int fd, uint64_t capability, uint64_t *value);
74 
75 
88 int drmSetClientCap(int fd, uint64_t capability, uint64_t value);
89 
90 
104 int drmSetMaster(int fd);
105 
106 
115 int drmDropMaster(int fd);
116 
117 
127 int drmGetMagic( int fd, drm_magic_t * magic);
128 
129 
139 int drmAuthMagic(int fd, drm_magic_t magic);
140 
141 
163 drmVersionPtr drmGetVersion(int fd);
164 
165 
173 void drmFreeVersion(drmVersionPtr version);
174 
175 
189 int drmHandleEvent(int fd, drmEventContextPtr evctx);
190 
191 
231 int drmIoctl(int fd, unsigned long request, void *arg);
232 
233 
256 int drmWaitVBlank(int fd, drmVBlankPtr vbl);
257 
258 
282 int drmModeAddFB(int fd,
283  uint32_t width,
284  uint32_t height,
285  uint8_t depth,
286  uint8_t bpp,
287  uint32_t pitch,
288  uint32_t bo_handle,
289  uint32_t *buf_id);
290 
291 
323 int drmModeAddFB2(int fd,
324  uint32_t width,
325  uint32_t height,
326  uint32_t pixel_format,
327  const uint32_t bo_handles[4],
328  const uint32_t pitches[4],
329  const uint32_t offsets[4],
330  uint32_t *buf_id,
331  uint32_t flags);
332 
333 
345 int drmModeRmFB(int fd, uint32_t fb_id);
346 
347 
367 drmModeConnectorPtr drmModeGetConnector(int fd, uint32_t connector_id);
368 
369 
377 void drmModeFreeConnector(drmModeConnectorPtr ptr);
378 
379 
391 int drmModeConnectorSetProperty(int fd,
392  uint32_t connector_id,
393  uint32_t property_id,
394  uint64_t value);
395 
396 
412 drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtc_id);
413 
414 
422 void drmModeFreeCrtc(drmModeCrtcPtr ptr);
423 
424 
463 int drmModeSetCrtc(int fd,
464  uint32_t crtc_id,
465  uint32_t fb_id,
466  uint32_t x,
467  uint32_t y,
468  uint32_t *connectors,
469  int count,
470  drmModeModeInfoPtr drm_mode);
471 
472 
490 int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size,
491  uint16_t *red, uint16_t *green, uint16_t *blue);
492 
493 
509 int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
510  uint16_t *red, uint16_t *green, uint16_t *blue);
511 
512 
538 int drmModePageFlip(int fd,
539  uint32_t crtc_id,
540  uint32_t fb_id,
541  uint32_t flags,
542  void *user_data);
543 
544 
566 int drmModeSetCursor(int fd,
567  uint32_t crtc_id,
568  uint32_t bo_handle,
569  uint32_t width,
570  uint32_t height);
571 
572 
584 int drmModeMoveCursor(int fd, uint32_t crtc_id, int x, int y);
585 
586 
605 drmModeEncoderPtr drmModeGetEncoder(int fd, uint32_t encoder_id);
606 
607 
615 void drmModeFreeEncoder(drmModeEncoderPtr ptr);
616 
617 
638 drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id);
639 
640 
648 void drmModeFreePlane(drmModePlanePtr ptr);
649 
650 
685 int drmModeSetPlane(int fd,
686  uint32_t plane_id,
687  uint32_t crtc_id,
688  uint32_t fb_id,
689  uint32_t flags,
690  int32_t crtc_x,
691  int32_t crtc_y,
692  uint32_t crtc_w,
693  uint32_t crtc_h,
694  uint32_t src_x,
695  uint32_t src_y,
696  uint32_t src_w,
697  uint32_t src_h);
698 
699 
739  drmModeObjectPropertiesPtr drmModeObjectGetProperties(int fd,
740  uint32_t object_id,
741  uint32_t object_type);
742 
743 
752 void drmModeFreeObjectProperties(drmModeObjectPropertiesPtr ptr);
753 
754 
804  * /* Print the property name, which will be "Primary", "Overlay", or "Cursor". */
805  * printf("\tcon_value : %s\n", name);
806  * } else {
807  * /* The specified plane property value does not appear in the DRM properties. */
808  * /* Print the property value for which we were looking. */
809  * printf("\tcon_value : %" PRIu64 "\n", value);
810  * }
811  * @endcode
812  *
813  * @note The zpos value for a plane is initialized with an offset of 10 relative to
814  * the next plane. This is to allow for flexible configuration of heads. For example:
815  * - "Primary" type Plane zpos = 10
816  * - First "Overlay" Plane zpos = 20
817  * - Next "Overlay" Plane zpos = 30
818  * - Etc.
819  *
820  * @note The allowed range for zpos is [0, 255]. Planes with numerically greater values for
821  * zpos occlude planes with numerically lesser values.
822  *
823  * @note The alpha value for a plane causes a plane-wide transparency to be
824  * applied as well as the per-pixel alpha contained in the buffer object. The
825  * allowed range for alpha is [0, 255], where 0 is fully transparent and 255 indicates
826  * that only per-pixel alpha has an effect. For non-alpha pixel formats,
827  * there is no per-pixel alpha, so 255 indicates fully opaque.
828  *
829  * @post If the call is successful, the application must free the property
830  * information structure by calling ::drmModeFreeProperty.
831  *
832  * @param fd The file descriptor of an open DRM device.
833  * @param propertyId Property ID of the property object to be fetched.
834  * @return A @c drmModePropertyPtr if successful, or NULL otherwise.
835  */
836 drmModePropertyPtr drmModeGetProperty(int fd, uint32_t propertyId);
837 
852 int drmModeObjectSetProperty(int fd, uint32_t object_id, uint32_t object_type,
853  uint32_t property_id, uint64_t value);
854 
862 void drmModeFreeProperty(drmModePropertyPtr ptr);
863 
864 
882 drmModeResPtr drmModeGetResources(int fd);
883 
884 
892 void drmModeFreeResources(drmModeResPtr ptr);
893 
894 
916 drmModePlaneResPtr drmModeGetPlaneResources(int fd);
917 
918 
927 void drmModeFreePlaneResources(drmModePlaneResPtr ptr);
928 
929 
940 int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
941 
953 int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd)
954 
955 
969 drmModeAtomicReqPtr drmModeAtomicAlloc(void);
970 
971 
985 int drmModeAtomicAddProperty(drmModeAtomicReqPtr req,
986  uint32_t object_id,
987  uint32_t property_id,
988  uint64_t value);
989 
990 
1016 int drmModeAtomicCommit(int fd,
1017  drmModeAtomicReqPtr req,
1018  uint32_t flags,
1019  void *user_data);
1020 
1021 
1030 void drmModeAtomicFree(drmModeAtomicReqPtr req);
1031 
1032 
1048 int drmSetInterfaceVersion(int fd, drmSetVersion *version);
1049 
1050 
1066 char *drmGetBusid(int fd);
1067 
1068 
1077 void drmFreeBusid(const char *busid);
1078 
1079 
1106 int drmModeCreatePropertyBlob(int fd,
1107  const void *data, size_t size,
1108  uint32_t *id);
1109 
1110 
1121 int drmModeDestroyPropertyBlob(int fd, uint32_t id);
1122 
1123 
1134 drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id);
1135 
1136 
1145 void drmModeFreePropertyBlob(drmModePropertyBlobPtr ptr);
1146 
1147 
1163 char *drmGetDeviceNameFromFd(int fd);
1164 
1165 
1173 void drmFree(void *p);
1174 
1190 int drmCommandWriteRead(int fd,
1191  unsigned long drmCommandIndex,
1192  void *data,
1193  unsigned long size);
1194 
1202 drmHashEntry *drmGetEntry(int fd);
1203 
1204 
1212 int drmRmMap(int fd, drm_handle_t handle);
1213 
1221 int drmAvailable(void);
1222 
1230 int drmDestroyDrawable(int fd, drm_drawable_t handle);
1231 
1239 int drmDestroyContext(int fd, drm_context_t handle);
1240 
1248 int drmSetContextFlags(int fd, drm_context_t context, drm_context_tFlags flags);
1249 
1257 int drmMap(int fd, drm_handle_t handle, drmSize size, drmAddressPtr address);
1258 
1266 int drmUnlock(int fd, drm_context_t context);
1267 
1273 void drmFreeReservedContextList(drm_context_t *pt);
1274 
1280 void drmSetServerInfo(drmServerInfoPtr info);
1281 
1289 int drmAddContextTag(int fd, drm_context_t context, void *tag);
1290 
1298 int drmAddMap(int fd, drm_handle_t offset, drmSize size,
1299  drmMapType type, drmMapFlags flags,
1300  drm_handle_t *handle);
1301 
1309 int drmCreateContext(int fd, drm_context_t *handle);
1310 
1318 int drmUpdateDrawableInfo(int fd, drm_drawable_t handle,
1319  drm_drawable_info_type_t type,
1320  unsigned int num,
1321  void *data);
1322 
1330 int drmCreateDrawable(int fd, drm_drawable_t *handle);
1331 
1339 void *drmGetHashTable(void);
1340 
1348 int drmDelContextTag(int fd, drm_context_t context);
1349 
1357 int drmUnmap(drmAddress address, drmSize size);
1358 
1366 int drmSetBusid(int fd, const char *busid);
1367 
1375 int drmGetLock(int fd, drm_context_t context, drmLockFlags flags);
1376 
1384 void *drmGetContextTag(int fd, drm_context_t context);
1385 
1393 drm_context_t *drmGetReservedContextList(int fd, int *count);
1394 
1402 int drmHashNext(void *t, unsigned long *key, void **value);
1403 
1411 int drmHashFirst(void *t, unsigned long *key, void **value);
1412 
1420 int drmModeSetCursor2(int fd, uint32_t crtcId, uint32_t bo_handle,
1421  uint32_t width, uint32_t height, int32_t hot_x,
1422  int32_t hot_y)
1423 
1424 
1431 int drmModeAddFB2WithModifiers(int fd, uint32_t width,
1432  uint32_t height, uint32_t pixel_format,
1433  const uint32_t bo_handles[4],
1434  const uint32_t pitches[4],
1435  const uint32_t offsets[4],
1436  const uint64_t modifier[4],
1437  uint32_t *buf_id, uint32_t flags);
1438 
1446 int drmOpenWithType(const char *name, const char *busid, int type);
1447 
1455 int drmOpenControl(int minor);
1456 
1464 int drmOpenRender(int minor);
1465 
1473 int drmGetInterruptFromBusID(int fd, int busnum, int devnum, int funcnum);
1474 
1482 int drmGetMap(int fd, int idx, drm_handle_t *offset, drmSize *size, drmMapType *type, drmMapFlags *flags, drm_handle_t *handle, int *mtrr);
1483 
1491 int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, unsigned long *magic, unsigned long *iocs);
1492 
1500 int drmGetStats(int fd, drmStatsT *stats);
1501 
1509 int drmCommandNone(int fd, unsigned long drmCommandIndex);
1510 
1518 int drmCommandRead(int fd, unsigned long drmCommandIndex, void *data, unsigned long size);
1519 
1527 int drmCommandWrite(int fd, unsigned long drmCommandIndex, void *data, unsigned long size);
1528 
1536 int drmAddContextPrivateMapping(int fd, drm_context_t ctx_id, drm_handle_t handle);
1537 
1545 int drmAddBufs(int fd, int count, int size, drmBufDescFlags flags, int agp_offset);
1546 
1554 int drmMarkBufs(int fd, double low, double high);
1555 
1563 int drmGetContextFlags(int fd, drm_context_t context, drm_context_tFlagsPtr flags);
1564 
1572 int drmSwitchToContext(int fd, drm_context_t context);
1573 
1581 int drmCtlInstHandler(int fd, int irq);
1582 
1590 int drmCtlUninstHandler(int fd);
1591 
1599 int drmCrtcGetSequence(int fd, uint32_t crtcId, uint64_t *sequence, uint64_t *ns);
1600 
1608 int drmCrtcQueueSequence(int fd, uint32_t crtcId, uint32_t flags, uint64_t sequence, uint64_t *sequence_queued, uint64_t user_data);
1609 
1617 int drmUnmapBufs(drmBufMapPtr bufs);
1618 
1626 int drmDMA(int fd, drmDMAReqPtr request);
1627 
1635 int drmFreeBufs(int fd, int count, int *list);
1636 
1644 int drmFinish(int fd, int context, drmLockFlags flags);
1645 
1653 int drmGetContextPrivateMapping(int fd, drm_context_t ctx_id, drm_handle_t * handle);
1654 
1662 int drmAgpAcquire(int fd);
1663 
1671 int drmAgpRelease(int fd);
1672 
1680 int drmAgpEnable(int fd, unsigned long mode);
1681 
1689 int drmAgpAlloc(int fd, unsigned long size, unsigned long type, unsigned long *address, drm_handle_t *handle);
1690 
1698 int drmAgpFree(int fd, drm_handle_t handle);
1699 
1707 int drmAgpBind(int fd, drm_handle_t handle, unsigned long offset);
1708 
1716 int drmAgpUnbind(int fd, drm_handle_t handle);
1717 
1725 int drmAgpVersionMajor(int fd);
1726 
1734 int drmAgpVersionMinor(int fd);
1735 
1743 int drmScatterGatherAlloc(int fd, unsigned long size, drm_handle_t *handle);
1744 
1752 int drmScatterGatherFree(int fd, drm_handle_t handle);
1753 
1761 int drmError(int err, const char *label);
1762 
1770 int drmHashDestroy(void *t);
1771 
1779 int drmHashLookup(void *t, unsigned long key, void **value);
1780 
1788 int drmHashInsert(void *t, unsigned long key, void *value);
1789 
1797 int drmHashDelete(void *t, unsigned long key);
1798 
1806 int drmRandomDestroy(void *state);
1807 
1815 int drmSLDestroy(void *l);
1816 
1824 int drmSLLookup(void *l, unsigned long key, void **value);
1825 
1833 int drmSLInsert(void *l, unsigned long key, void *value);
1834 
1842 int drmSLDelete(void *l, unsigned long key);
1843 
1851 int drmSLNext(void *l, unsigned long *key, void **value);
1852 
1860 int drmSLFirst(void *l, unsigned long *key, void **value);
1861 
1869 int drmSLLookupNeighbors(void *l, unsigned long key, unsigned long *prev_key, void **prev_value, unsigned long *next_key, void **next_value);
1870 
1878 int drmOpenOnce(void *unused, const char *BusID, int *newlyopened);
1879 
1887 int drmOpenOnceWithType(const char *BusID, int *newlyopened, int type);
1888 
1896 int drmGetNodeTypeFromFd(int fd);
1897 
1905 int drmGetDevice(int fd, drmDevicePtr *device);
1906 
1914 int drmGetDevices(drmDevicePtr devices[], int max_devices);
1915 
1923 int drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device);
1924 
1932 int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices);
1933 
1941 int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b);
1942 
1950 int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle);
1951 
1959 int drmSyncobjDestroy(int fd, uint32_t handle);
1960 
1968 int drmSyncobjHandleToFD(int fd, uint32_t handle, int *obj_fd);
1969 
1977 int drmSyncobjFDToHandle(int fd, int obj_fd, uint32_t *handle);
1978 
1986 int drmSyncobjImportSyncFile(int fd, uint32_t handle, int sync_file_fd);
1987 
1995 int drmSyncobjExportSyncFile(int fd, uint32_t handle, int *sync_file_fd);
1996 
2004 int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles, int64_t timeout_nsec, unsigned flags, uint32_t *first_signaled);
2005 
2013 int drmSyncobjReset(int fd, const uint32_t *handles, uint32_t handle_count);
2014 
2022 int drmSyncobjSignal(int fd, const uint32_t *handles, uint32_t handle_count);
2023 
2031 unsigned long drmRandom(void *state);
2032 
2040 double drmRandomDouble(void *state);
2041 
2049 unsigned long drmAgpGetMode(int fd);
2050 
2058 unsigned long drmAgpBase(int fd);
2059 
2067 unsigned long drmAgpSize(int fd);
2068 
2076 unsigned long drmAgpMemoryUsed(int fd);
2077 
2085 unsigned long drmAgpMemoryAvail(int fd);
2086 
2094 unsigned int drmAgpVendorId(int fd);
2095 
2103 unsigned int drmAgpDeviceId(int fd);
2104 
2110 void drmSLDump(void *l);
2111 
2117 void drmCloseOnce(int fd);
2118 
2124 void drmFreeDevice(drmDevicePtr *device);
2125 
2131 void drmFreeDevices(drmDevicePtr devices[], int count);
2132 
2140 char *drmGetDeviceNameFromFd2(int fd);
2141 
2149 char *drmGetPrimaryDeviceNameFromFd(int fd);
2150 
2158 char *drmGetRenderDeviceNameFromFd(int fd);
2159 
2167 drmVersionPtr drmGetLibVersion(int fd);
2168 
2176 drmBufInfoPtr drmGetBufInfo(int fd);
2177 
2185 drmBufMapPtr drmMapBufs(int fd);
2186 
2194 void *drmMalloc(int size);
2195 
2203 void *drmRandomCreate(unsigned long seed);
2204 
2212 void *drmHashCreate(void);
2213 
2221 void *drmSLCreate(void);
2222 
2228 void drmModeFreeModeInfo(drmModeModeInfoPtr ptr);
2229 
2235 void drmModeFreeFB(drmModeFBPtr ptr);
2236 
2242 void drmModeAtomicSetCursor(drmModeAtomicReqPtr req, int cursor);
2243 
2251 drmModeFBPtr drmModeGetFB(int fd, uint32_t bufferId);
2252 
2260 drmModeConnectorPtr drmModeGetConnectorCurrent(int fd, uint32_t connector_id);
2261 
2269 drmModeAtomicReqPtr drmModeAtomicDuplicate(drmModeAtomicReqPtr req);
2270 
2278 drmModeLesseeListPtr drmModeListLessees(int fd);
2279 
2287 drmModeObjectListPtr drmModeGetLease(int fd);
2288 
2296 int drmModeDirtyFB(int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips);
2297 {
2298  return -ENOTSUP;
2299 }
2300 
2308 int drmModeAttachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
2309 
2317 int drmModeDetachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
2318 
2326 int drmCheckModesettingSupported(const char *busid);
2327 
2335 int drmModePageFlipTarget(int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data, uint32_t target_vblank);
2336 
2344 int drmModeAtomicMerge(drmModeAtomicReqPtr base, drmModeAtomicReqPtr augment);
2345 
2353 int drmModeAtomicGetCursor(drmModeAtomicReqPtr req);
2354 
2362 int drmModeRevokeLease(int fd, uint32_t lessee_id);
2363 
2371 int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects, int flags, uint32_t *lessee_id);
2372 
2379 void drmMsg(const char *format, ...)
2380 
2381 
int drmAddContextPrivateMapping(int fd, drm_context_t ctx_id, drm_handle_t handle)
Function stub.
drmModeEncoderPtr drmModeGetEncoder(int fd, uint32_t encoder_id)
Gets information for an encoder.
int drmSLFirst(void *l, unsigned long *key, void **value)
Function stub.
unsigned long drmRandom(void *state)
Function stub.
int drmMarkBufs(int fd, double low, double high)
Function stub.
int drmSetContextFlags(int fd, drm_context_t context, drm_context_tFlags flags)
Function stub.
void drmModeFreePlaneResources(drmModePlaneResPtr ptr)
Frees a plane resource information structure.
int drmHashFirst(void *t, unsigned long *key, void **value)
Function stub.
int drmCreateDrawable(int fd, drm_drawable_t *handle)
Function stub.
int drmAgpEnable(int fd, unsigned long mode)
Function stub.
int drmSyncobjDestroy(int fd, uint32_t handle)
Function stub.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t modifier[4]
int drmModeAttachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info)
Function stub.
void drmModeFreeObjectProperties(drmModeObjectPropertiesPtr ptr)
Frees an object properties structure.
int drmSLNext(void *l, unsigned long *key, void **value)
Function stub.
int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, unsigned long *magic, unsigned long *iocs)
Function stub.
int uint32_t width
int drmUnmap(drmAddress address, drmSize size)
Function stub.
unsigned long drmAgpMemoryUsed(int fd)
Function stub.
void drmModeFreeModeInfo(drmModeModeInfoPtr ptr)
Function stub.
int drmFreeBufs(int fd, int count, int *list)
Function stub.
drmModeObjectPropertiesPtr drmModeObjectGetProperties(int fd, uint32_t object_id, uint32_t object_type)
Gets all properties of a DRM object.
int drmAgpAcquire(int fd)
Function stub.
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.
drmBufInfoPtr drmGetBufInfo(int fd)
Function stub.
int drmAddBufs(int fd, int count, int size, drmBufDescFlags flags, int agp_offset)
Function stub.
drmModeObjectListPtr drmModeGetLease(int fd)
Function stub.
int drmSyncobjReset(int fd, const uint32_t *handles, uint32_t handle_count)
Function stub.
unsigned long drmAgpMemoryAvail(int fd)
Function stub.
drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id)
Allocates and retrieves a userspace property blob pointer.
int drmCommandRead(int fd, unsigned long drmCommandIndex, void *data, unsigned long size)
Function stub.
unsigned int drmAgpVendorId(int fd)
Function stub.
int drmSetClientCap(int fd, uint64_t capability, uint64_t value)
Enables or disables DRM features (capabilities).
int drmCtlUninstHandler(int fd)
Function stub.
int drmModeAtomicGetCursor(drmModeAtomicReqPtr req)
Function stub.
int drmDelContextTag(int fd, drm_context_t context)
Function stub.
int drmSyncobjSignal(int fd, const uint32_t *handles, uint32_t handle_count)
Function stub.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t offsets[4]
void * drmHashCreate(void)
Function stub.
int drmWaitVBlank(int fd, drmVBlankPtr vbl)
Waits for a vertical blanking interval (vblank).
int drmCommandNone(int fd, unsigned long drmCommandIndex)
Function stub.
int drmSLLookup(void *l, unsigned long key, void **value)
Function stub.
int drmCtlInstHandler(int fd, int irq)
Function stub.
int drmDestroyContext(int fd, drm_context_t handle)
Function stub.
int drmModeDestroyPropertyBlob(int fd, uint32_t id)
Destroys a property blob.
int drmMap(int fd, drm_handle_t handle, drmSize size, drmAddressPtr address)
Function stub.
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.
int drmCommandWriteRead(int fd, unsigned long drmCommandIndex, void *data, unsigned long size)
Send a device-specific read-write command.
void drmSLDump(void *l)
Function stub.
drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtc_id)
Gets information for a CRTC.
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.
int drmGetCap(int fd, uint64_t capability, uint64_t *value)
Gets capabilities of the DRM driver.
int drmModeRevokeLease(int fd, uint32_t lessee_id)
Function stub.
int drmAgpAlloc(int fd, unsigned long size, unsigned long type, unsigned long *address, drm_handle_t *handle)
Function stub.
int drmDropMaster(int fd)
Releases master controls for a DRM device.
int drmAgpUnbind(int fd, drm_handle_t handle)
Function stub.
int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles, int64_t timeout_nsec, unsigned flags, uint32_t *first_signaled)
Function stub.
int drmModeSetCursor(int fd, uint32_t crtc_id, uint32_t bo_handle, uint32_t width, uint32_t height)
Sets a cursor image.
int drmModeConnectorSetProperty(int fd, uint32_t connector_id, uint32_t property_id, uint64_t value)
Sets a connector property.
int drmOpenOnceWithType(const char *BusID, int *newlyopened, int type)
Function stub.
int drmAgpFree(int fd, drm_handle_t handle)
Function stub.
int drmModeAtomicCommit(int fd, drmModeAtomicReqPtr req, uint32_t flags, void *user_data)
Commits an atomic property change request to hardware.
void drmModeFreeConnector(drmModeConnectorPtr ptr)
Frees a connector.
int drmModeDirtyFB(int fd, uint32_t bufferId, drmModeClipPtr clips, uint32_t num_clips)
Function stub.
int drmHashInsert(void *t, unsigned long key, void *value)
Function stub.
char * drmGetBusid(int fd)
Gets the bus ID of a device.
void drmSetServerInfo(drmServerInfoPtr info)
Function stub.
int drmGetContextFlags(int fd, drm_context_t context, drm_context_tFlagsPtr flags)
Function stub.
int drmGetDevices(drmDevicePtr devices[], int max_devices)
Function stub.
int drmModeAtomicMerge(drmModeAtomicReqPtr base, drmModeAtomicReqPtr augment)
Function stub.
int drmCreateContext(int fd, drm_context_t *handle)
Function stub.
void drmModeFreeProperty(drmModePropertyPtr ptr)
Frees a property structure.
void drmModeFreePlane(drmModePlanePtr ptr)
Frees a plane.
double drmRandomDouble(void *state)
Function stub.
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.
int drmModeCreatePropertyBlob(int fd, const void *data, size_t size, uint32_t *id)
Creates a property blob.
int uint32_t uint32_t uint32_t const uint32_t bo_handles[4]
drmModeLesseeListPtr drmModeListLessees(int fd)
Function stub.
int drmHashNext(void *t, unsigned long *key, void **value)
Function stub.
int drmRandomDestroy(void *state)
Function stub.
int drmSwitchToContext(int fd, drm_context_t context)
Function stub.
int drmOpenWithType(const char *name, const char *busid, int type)
Function stub.
int drmAddMap(int fd, drm_handle_t offset, drmSize size, drmMapType type, drmMapFlags flags, drm_handle_t *handle)
Function stub.
int drmAgpBind(int fd, drm_handle_t handle, unsigned long offset)
Function stub.
void drmFreeBusid(const char *busid)
Frees bus ID information.
int drmSLLookupNeighbors(void *l, unsigned long key, unsigned long *prev_key, void **prev_value, unsigned long *next_key, void **next_value)
Function stub.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t flags
int uint32_t uint32_t height
void * drmRandomCreate(unsigned long seed)
Function stub.
void drmModeAtomicFree(drmModeAtomicReqPtr req)
Frees an atomic request.
drmModeAtomicReqPtr drmModeAtomicDuplicate(drmModeAtomicReqPtr req)
Function stub.
void drmModeFreePropertyBlob(drmModePropertyBlobPtr ptr)
Frees a userspace property blob pointer.
int drmHashDestroy(void *t)
Function stub.
void * drmMalloc(int size)
Function stub.
int drmAgpRelease(int fd)
Function stub.
drmModeConnectorPtr drmModeGetConnector(int fd, uint32_t connector_id)
Gets information for a connector.
int drmDMA(int fd, drmDMAReqPtr request)
Function stub.
int drmModeAtomicAddProperty(drmModeAtomicReqPtr req, uint32_t object_id, uint32_t property_id, uint64_t value)
Adds a property to an atomic request.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t pitches[4]
int drmIoctl(int fd, unsigned long request, void *arg)
Issues a DRM input/output control (IOCTL).
drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id)
Gets information about a plane.
int drmSLInsert(void *l, unsigned long key, void *value)
Function stub.
int drmAuthMagic(int fd, drm_magic_t magic)
Authenticates a magic cookie.
int drmDestroyDrawable(int fd, drm_drawable_t handle)
Function stub.
int drmScatterGatherAlloc(int fd, unsigned long size, drm_handle_t *handle)
Function stub.
int drmSyncobjImportSyncFile(int fd, uint32_t handle, int sync_file_fd)
Function stub.
int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle)
Imports a dma-buf.
int drmFinish(int fd, int context, drmLockFlags flags)
Function stub.
int drmSyncobjFDToHandle(int fd, int obj_fd, uint32_t *handle)
Function stub.
unsigned long drmAgpBase(int fd)
Function stub.
void drmFreeDevice(drmDevicePtr *device)
Function stub.
int drmAgpVersionMinor(int fd)
Function stub.
int drmAddContextTag(int fd, drm_context_t context, void *tag)
Function stub.
int drmModeDetachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info)
Function stub.
int drmError(int err, const char *label)
Function stub.
drmModeResPtr drmModeGetResources(int fd)
Gets information about a DRM device's CRTCs, encoders, and connectors.
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.
int drmGetMagic(int fd, drm_magic_t *magic)
Retrieves a magic cookie.
char * drmGetDeviceNameFromFd2(int fd)
Function stub.
int drmGetInterruptFromBusID(int fd, int busnum, int devnum, int funcnum)
Function stub.
drmVersionPtr drmGetVersion(int fd)
Retrieves version information for the DRM driver.
void drmModeFreeCrtc(drmModeCrtcPtr ptr)
Frees a CRTC.
int drmHandleEvent(int fd, drmEventContextPtr evctx)
Polls for an event, specifying a callback function.
int drmSetInterfaceVersion(int fd, drmSetVersion *version)
Sets the interface version.
int drmAvailable(void)
Function stub.
int drmGetNodeTypeFromFd(int fd)
Function stub.
int drmModePageFlipTarget(int fd, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, void *user_data, uint32_t target_vblank)
Function stub.
int drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device)
Function stub.
int drmGetMap(int fd, int idx, drm_handle_t *offset, drmSize *size, drmMapType *type, drmMapFlags *flags, drm_handle_t *handle, int *mtrr)
Function stub.
drmModeFBPtr drmModeGetFB(int fd, uint32_t bufferId)
Function stub.
drmModePropertyPtr drmModeGetProperty(int fd, uint32_t propertyId)
Gets a property structure that describes a property of a DRM object.
void drmCloseOnce(int fd)
Function stub.
char * drmGetPrimaryDeviceNameFromFd(int fd)
Function stub.
drm_context_t * drmGetReservedContextList(int fd, int *count)
Function stub.
void drmFreeDevices(drmDevicePtr devices[], int count)
Function stub.
drmVersionPtr drmGetLibVersion(int fd)
Function stub.
int drmHashLookup(void *t, unsigned long key, void **value)
Function stub.
int drmUnmapBufs(drmBufMapPtr bufs)
Function stub.
int drmHashDelete(void *t, unsigned long key)
Function stub.
void drmModeFreeFB(drmModeFBPtr ptr)
Function stub.
int drmSyncobjExportSyncFile(int fd, uint32_t handle, int *sync_file_fd)
Function stub.
int drmCrtcGetSequence(int fd, uint32_t crtcId, uint64_t *sequence, uint64_t *ns)
Function stub.
int drmUpdateDrawableInfo(int fd, drm_drawable_t handle, drm_drawable_info_type_t type, unsigned int num, void *data)
Function stub.
int drmModeMoveCursor(int fd, uint32_t crtc_id, int x, int y)
Moves a cursor.
int drmCrtcQueueSequence(int fd, uint32_t crtcId, uint32_t flags, uint64_t sequence, uint64_t *sequence_queued, uint64_t user_data)
Function stub.
char * drmGetRenderDeviceNameFromFd(int fd)
Function stub.
drmHashEntry * drmGetEntry(int fd)
Function stub.
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.
int drmClose(int fd)
Closes a DRM device.
unsigned long drmAgpSize(int fd)
Function stub.
int drmOpenOnce(void *unused, const char *BusID, int *newlyopened)
Function stub.
int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle)
Function stub.
int drmSetBusid(int fd, const char *busid)
Function stub.
int drmGetLock(int fd, drm_context_t context, drmLockFlags flags)
Function stub.
int drmSLDestroy(void *l)
Function stub.
void * drmGetHashTable(void)
Function stub.
int drmCheckModesettingSupported(const char *busid)
Function stub.
drmModePlaneResPtr drmModeGetPlaneResources(int fd)
Gets information about planes.
int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects, int flags, uint32_t *lessee_id)
Function stub.
int drmCommandWrite(int fd, unsigned long drmCommandIndex, void *data, unsigned long size)
Function stub.
int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size, uint16_t *red, uint16_t *green, uint16_t *blue)
Sets the display gamma.
int drmOpenRender(int minor)
Function stub.
int drmSLDelete(void *l, unsigned long key)
Function stub.
int drmGetStats(int fd, drmStatsT *stats)
Function stub.
void * drmGetContextTag(int fd, drm_context_t context)
Function stub.
drmModeConnectorPtr drmModeGetConnectorCurrent(int fd, uint32_t connector_id)
Function stub.
int drmScatterGatherFree(int fd, drm_handle_t handle)
Function stub.
drmBufMapPtr drmMapBufs(int fd)
Function stub.
int drmOpenControl(int minor)
Function stub.
int uint32_t uint32_t uint32_t pixel_format
int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices)
Function stub.
unsigned int drmAgpDeviceId(int fd)
Function stub.
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.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t * buf_id
char * drmGetDeviceNameFromFd(int fd)
Gets a DRM device's name string.
void drmModeFreeEncoder(drmModeEncoderPtr ptr)
Frees an encoder.
int drmUnlock(int fd, drm_context_t context)
Function stub.
int drmGetDevice(int fd, drmDevicePtr *device)
Function stub.
void drmModeAtomicSetCursor(drmModeAtomicReqPtr req, int cursor)
Function stub.
int drmGetContextPrivateMapping(int fd, drm_context_t ctx_id, drm_handle_t *handle)
Function stub.
void * drmSLCreate(void)
Function stub.
int drmSetMaster(int fd)
Requests master controls for a DRM device.
int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd) drmModeAtomicReqPtr drmModeAtomicAlloc(void)
Exports a dma-buf.
int drmAgpVersionMajor(int fd)
Function stub.
void drmFreeReservedContextList(drm_context_t *pt)
Function stub.
void drmFreeVersion(drmVersionPtr version)
Frees a version information structure.
int drmOpen(const char *name, const char *busid)
Opens a DRM device and creates a file descriptor handle.
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.
void drmModeFreeResources(drmModeResPtr ptr)
Frees a resource information structure.
int drmRmMap(int fd, drm_handle_t handle)
Function stub.
int drmSyncobjHandleToFD(int fd, uint32_t handle, int *obj_fd)
Function stub.
int drmModeRmFB(int fd, uint32_t fb_id)
Destroys a framebuffer.
int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b)
Function stub.
void drmFree(void *p)
Frees a block of memory.
unsigned long drmAgpGetMode(int fd)
Function stub.