NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvrm_gpu.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2014-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA Corporation and its licensors retain all intellectual property
6  * and proprietary rights in and to this software, related documentation
7  * and any modifications thereto. Any use, reproduction, disclosure or
8  * distribution of this software and related documentation without an express
9  * license agreement from NVIDIA Corporation is strictly prohibited.
10  */
11 
12 #ifndef INCLUDED_nvrm_gpu_H
13 #define INCLUDED_nvrm_gpu_H
14 
15 #include <stdbool.h>
16 #include <stdint.h>
17 #include <stddef.h>
18 
19 #include "nvcommon.h"
20 #include "nverror.h"
21 
22 #if defined(__cplusplus)
23 extern "C"
24 {
25 #endif
26 
27 #if defined(NVRM_GPU_BUILD_VARIANT)
28 namespace nvrm_gpu
29 {
30 #endif
31 
302 
303 // -------------------------------------------------
304 // --------------- API Groups ----------------------
305 // -------------------------------------------------
306 
309 
314 
318 
323 
327 
328 // -------------------------------------------------
329 // --------------- Handles -------------------------
330 // -------------------------------------------------
331 
339 typedef struct NvRmGpuLibRec NvRmGpuLib;
340 
348 typedef struct NvRmGpuDeviceRec NvRmGpuDevice;
349 
355 typedef struct NvRmGpuDeviceEventSessionRec NvRmGpuDeviceEventSession;
356 
357 
358 // -------------------------------------------------
359 // --------------- Library functions ---------------
360 // -------------------------------------------------
361 
368 {
372  uint32_t major;
373 
377  uint32_t minor;
378 
382  uint32_t patch;
383 
394  const char *suffix;
395 
397 
432 
450 typedef struct NvRmGpuLibOpenAttrRec
451 {
453  uint32_t reserved;
454 
456 
463 #define NVRM_GPU_DEFINE_LIB_OPEN_ATTR(x) NvRmGpuLibOpenAttr x = { 0U }
464 
547 
594 
601 typedef enum
602 {
605 
608 
612 
614 
615 
622 {
625 
630 
640  const char *name;
642 
687 const NvRmGpuLibDeviceListEntry *NvRmGpuLibListDevices(NvRmGpuLib *hLib, size_t *pNumDevices);
688 
689 
690 
700 #define NVRM_GPU_DEVICE_INDEX_DEFAULT (-1)
701 
740 typedef enum
741 {
750 
753 
757 
758 
768 {
782 
795 
804 #define NVRM_GPU_DEFINE_DEVICE_OPEN_ATTR(x) \
805  NvRmGpuDeviceOpenAttr x = { NvRmGpuSyncType_Default, false }
806 
807 
858 NvError NvRmGpuDeviceOpen(NvRmGpuLib *hLib, int deviceIndex, const NvRmGpuDeviceOpenAttr *attr,
859  NvRmGpuDevice **phDevice);
860 
907 
908 
909 #if NVOS_IS_LINUX || NVOS_IS_QNX
910 
915 #define NVRM_GPU_CLOCK_ASYNC_REQ_HANDLE_PRIFMT "d"
916 
921 #define NVRM_GPU_CLOCK_ASYNC_REQ_INVALID_HANDLE (-1)
922 
935 #else
936 
941 #define NVRM_GPU_CLOCK_ASYNC_REQ_HANDLE_PRIFMT "p"
942 
947 #define NVRM_GPU_CLOCK_ASYNC_REQ_INVALID_HANDLE (NULL)
948 
969 typedef struct NvRmGpuClockAsyncNotImplemented *NvRmGpuClockAsyncReqHandle;
970 #endif
971 
979 typedef enum
980 {
983 
986 
990 
995 typedef enum NvRmGpuClockType
996 {
1002 
1008 
1012 
1013 
1019 {
1025 
1031 
1036  uint64_t freqHz;
1037 
1039 
1045 {
1048 
1050  uint64_t freqHz;
1052 
1057 typedef struct NvRmGpuClockRangeRec
1058 {
1059  uint64_t minHz;
1060  uint64_t maxHz;
1062 
1067 typedef struct NvRmGpuClockPointRec
1068 {
1069  uint64_t freqHz;
1071 
1077 {
1080 
1083 
1086  size_t maxVfPoints;
1087 
1089 
1140  const NvRmGpuClockDomainInfo **infos,
1141  size_t *pNumDomains);
1142 
1193  NvRmGpuClockDomain domain,
1194  NvRmGpuClockPoint *pClkPoints,
1195  size_t *pNumPoints);
1196 
1320  const NvRmGpuClockSetEntry *pClkSetEntries,
1321  size_t numEntries,
1323 
1374  const NvRmGpuClockAsyncReqHandle *phReqs,
1375  size_t numEntries,
1376  uint32_t timeoutMs);
1377 
1378 
1421 
1422 
1447  uint32_t timeoutMs);
1448 
1449 
1506  NvRmGpuClockGetEntry *pClkGetEntries,
1507  size_t numEntries);
1508 
1511 typedef enum
1512 {
1515 
1518 
1522 
1562  const NvRmGpuDeviceVoltage **pSensors,
1563  size_t *pNumSensors);
1564 
1565 
1608  NvRmGpuDeviceVoltage which,
1609  uint64_t *pVoltageMicroVolt);
1610 
1613 typedef enum
1614 {
1618 
1619 
1660  const NvRmGpuDeviceCurrent **pSensors,
1661  size_t *pNumSensors);
1662 
1704  NvRmGpuDeviceCurrent which,
1705  uint64_t *pCurrentMicroAmpere);
1706 
1709 typedef enum
1710 {
1714 
1754  const NvRmGpuDevicePower **pSensors,
1755  size_t *pNumSensors);
1756 
1799  NvRmGpuDevicePower which,
1800  uint64_t *pPowerMicroWatt);
1801 
1802 
1805 typedef enum
1806 {
1810 
1851  const NvRmGpuDeviceTemperature **pSensors,
1852  size_t *pNumSensors);
1853 
1898  int32_t *pTemperatureMilliCelsius);
1899 
1938  int32_t temperature_mC);
1939 
1940 
1945 typedef enum
1946 {
1947  // @brief Frequency change event
1956 
1962 
1969 
1975 
1983 
1992 
1999 
2010 
2013 
2015 
2026 {
2032 
2035 
2037 
2045 #define NVRM_GPU_DEFINE_DEVICE_EVENT_SESSION_ATTR(x) \
2046  NvRmGpuDeviceEventSessionOpenAttr x = { NULL, 0 }
2047 
2077 {
2078  static const NvRmGpuDeviceEventId allEvents[] =
2079  {
2088  };
2089  attr->filterList = allEvents;
2090  attr->filterListSize = NV_ARRAY_SIZE(allEvents);
2091 }
2092 
2134  NvRmGpuDeviceEventSession **phSession);
2135 
2145 {
2148 
2159  uint64_t timeNs;
2160 
2162 
2209  NvRmGpuDeviceEventInfo *pEventInfo,
2210  uint32_t timeoutMs);
2211 
2248 
2249 #if defined(NVRM_GPU_BUILD_VARIANT)
2250 } // namespace nvrm_gpu
2251 #endif
2252 
2253 #if defined(__cplusplus)
2254 }
2255 #endif
2256 
2257 #if !defined(NV_SDK_BUILD)
2258 #include "nvrm_gpu_priv.h"
2259 #endif
2260 
2261 #endif
NvRmGpuClockSetEntryRec::freqHz
uint64_t freqHz
Frequency for clock request.
Definition: nvrm_gpu.h:1050
NvRmGpuLibOpen
NvRmGpuLib * NvRmGpuLibOpen(const NvRmGpuLibOpenAttr *attr)
Opens a new instance of the nvrm_gpu library.
NvRmGpuClockDomainInfoRec::maxVfPoints
size_t maxVfPoints
Maximum number of voltage/frequency points returned by NvRmGpuClockGetPoints()
Definition: nvrm_gpu.h:1086
NvRmGpuLibOpenAttrRec
Extensible attribute structure for NvRmGpuLibOpen()
Definition: nvrm_gpu.h:450
NvRmGpuClockDomain_Count
@ NvRmGpuClockDomain_Count
Number of clock domains.
Definition: nvrm_gpu.h:988
NvRmGpuLibDeviceListEntryRec::deviceState
NvRmGpuLibDeviceState deviceState
Device attachment state.
Definition: nvrm_gpu.h:629
NvRmGpuDeviceGetVoltage
NvError NvRmGpuDeviceGetVoltage(NvRmGpuDevice *hDevice, NvRmGpuDeviceVoltage which, uint64_t *pVoltageMicroVolt)
Retrieves the voltage sensor reading.
NvRmGpuLibVersionInfoRec
The version information structure returned by NvRmGpuLibGetVersionInfo().
Definition: nvrm_gpu.h:367
NvRmGpuDeviceListVoltageSensors
NvError NvRmGpuDeviceListVoltageSensors(NvRmGpuDevice *hDevice, const NvRmGpuDeviceVoltage **pSensors, size_t *pNumSensors)
Returns the list of available voltage sensors for the device.
NvRmGpuDeviceEventId_AlarmVfTableUpdateFailed
@ NvRmGpuDeviceEventId_AlarmVfTableUpdateFailed
VF table update failed.
Definition: nvrm_gpu.h:1982
NvRmGpuLibDeviceState_Attached
@ NvRmGpuLibDeviceState_Attached
Device is attached and may be opened with NvRmGpuDeviceOpen()
Definition: nvrm_gpu.h:604
NvRmGpuClockWaitAsyncReq
NvError NvRmGpuClockWaitAsyncReq(NvRmGpuDevice *hDevice, const NvRmGpuClockAsyncReqHandle *phReqs, size_t numEntries, uint32_t timeoutMs)
Waits for the completion of one or more asynchronous clock requests.
NvRmGpuDeviceEventSessionOpenAttrRec::filterList
const NvRmGpuDeviceEventId * filterList
List of events to listen.
Definition: nvrm_gpu.h:2031
NvRmGpuDeviceEventSession
struct NvRmGpuDeviceEventSessionRec NvRmGpuDeviceEventSession
Device event session handle.
Definition: nvrm_gpu.h:355
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition: nverror.h:43
NvRmGpuDeviceEventId
NvRmGpuDeviceEventId
Definition: nvrm_gpu.h:1945
NvRmGpuDeviceEventId_Count
@ NvRmGpuDeviceEventId_Count
Number of events.
Definition: nvrm_gpu.h:2012
NvRmGpuDeviceEventId_AlarmLocalTargetVfNotPossible
@ NvRmGpuDeviceEventId_AlarmLocalTargetVfNotPossible
A clock domain frequency is below local target frequency requested by a session.
Definition: nvrm_gpu.h:1968
NvRmGpuDeviceVoltage_SRAM
@ NvRmGpuDeviceVoltage_SRAM
SRAM voltage.
Definition: nvrm_gpu.h:1517
NvRmGpuDeviceEventId_AlarmTargetVfNotPossible
@ NvRmGpuDeviceEventId_AlarmTargetVfNotPossible
A clock domain frequency is below target.
Definition: nvrm_gpu.h:1961
NvRmGpuLibVersionInfoRec::patch
uint32_t patch
The library patch level.
Definition: nvrm_gpu.h:382
NvRmGpuLib
struct NvRmGpuLibRec NvRmGpuLib
Library handle.
Definition: nvrm_gpu.h:339
NvRmGpuClockDomainInfoRec::range
NvRmGpuClockRange range
Frequency range of the clock domain.
Definition: nvrm_gpu.h:1082
NvRmGpuClockDomainInfo
struct NvRmGpuClockDomainInfoRec NvRmGpuClockDomainInfo
Clock domain info.
nverror.h
NvRmGpuDeviceEventId_VfUpdate
@ NvRmGpuDeviceEventId_VfUpdate
Voltage/frequency update occurred for a clock domain.
Definition: nvrm_gpu.h:1955
NvRmGpuDeviceVoltage
NvRmGpuDeviceVoltage
Voltage sensors.
Definition: nvrm_gpu.h:1511
NvRmGpuClockCloseAsyncReq
NvError NvRmGpuClockCloseAsyncReq(NvRmGpuDevice *hDevice, NvRmGpuClockAsyncReqHandle hReq)
Closes an asynchronous clock request handle.
NvRmGpuDeviceEventSessionOpenAttrSetAllEvents
static void NvRmGpuDeviceEventSessionOpenAttrSetAllEvents(NvRmGpuDeviceEventSessionOpenAttr *attr)
Assigns device events attribute structure with a list of all events to listen to.
Definition: nvrm_gpu.h:2076
NvRmGpuClockDomain_GPCCLK
@ NvRmGpuClockDomain_GPCCLK
Main graphics core clock.
Definition: nvrm_gpu.h:985
NvRmGpuLibDeviceListEntryRec::deviceIndex
int deviceIndex
Internal device index. Used in NvRmGpuDeviceOpen()
Definition: nvrm_gpu.h:624
NvRmGpuDeviceListPowerSensors
NvError NvRmGpuDeviceListPowerSensors(NvRmGpuDevice *hDevice, const NvRmGpuDevicePower **pSensors, size_t *pNumSensors)
Returns the list of available power sensors for the device.
NvRmGpuLibDeviceListEntryRec
Device list entry.
Definition: nvrm_gpu.h:621
NvRmGpuClockGetPoints
NvError NvRmGpuClockGetPoints(NvRmGpuDevice *hDevice, NvRmGpuClockDomain domain, NvRmGpuClockPoint *pClkPoints, size_t *pNumPoints)
Retrieves voltage/frequency (VF) points for a given clock domain. For information about VF points,...
NvRmGpuDeviceEventInfoRec
GPU device event.
Definition: nvrm_gpu.h:2144
NvRmGpuDeviceEventInfo
struct NvRmGpuDeviceEventInfoRec NvRmGpuDeviceEventInfo
GPU device event.
NvRmGpuClockSetEntry
struct NvRmGpuClockSetEntryRec NvRmGpuClockSetEntry
Entry for clock set request.
nvcommon.h
NvRmGpuClockSetEntryRec::domain
NvRmGpuClockDomain domain
Domain for clock request.
Definition: nvrm_gpu.h:1047
NvRmGpuClockDomainInfoRec
Clock domain info.
Definition: nvrm_gpu.h:1076
NvRmGpuLibVersionInfoRec::major
uint32_t major
The library major version.
Definition: nvrm_gpu.h:372
NvRmGpuSyncType_Syncpoint
@ NvRmGpuSyncType_Syncpoint
Synchronization type is Tegra HOST1X syncpoint.
Definition: nvrm_gpu.h:755
NvRmGpuLibClose
NvError NvRmGpuLibClose(NvRmGpuLib *hLib)
Closes the library and releases all resources.
NvRmGpuClockGetDomains
NvError NvRmGpuClockGetDomains(NvRmGpuDevice *hDevice, const NvRmGpuClockDomainInfo **infos, size_t *pNumDomains)
Returns available GPU clock domains for the device.
NvRmGpuClockSetEntryRec
Entry for clock set request.
Definition: nvrm_gpu.h:1044
NvRmGpuClockDomain_MCLK
@ NvRmGpuClockDomain_MCLK
Memory clock.
Definition: nvrm_gpu.h:982
NvRmGpuClockPointRec::freqHz
uint64_t freqHz
Definition: nvrm_gpu.h:1069
NvRmGpuClockGetEntryRec
Entry for clock get request.
Definition: nvrm_gpu.h:1018
NvRmGpuDeviceVoltage_Core
@ NvRmGpuDeviceVoltage_Core
Core GPU voltage.
Definition: nvrm_gpu.h:1514
NvRmGpuClockWaitAnyEvent
NvError NvRmGpuClockWaitAnyEvent(NvRmGpuDevice *hDevice, uint32_t timeoutMs)
This function is not implemented and it should be deleted.
NvRmGpuDeviceGetCurrent
NvError NvRmGpuDeviceGetCurrent(NvRmGpuDevice *hDevice, NvRmGpuDeviceCurrent which, uint64_t *pCurrentMicroAmpere)
Retrieves the electric current reading.
NvRmGpuLibListDevices
const NvRmGpuLibDeviceListEntry * NvRmGpuLibListDevices(NvRmGpuLib *hLib, size_t *pNumDevices)
Returns the list of probed GPUs.
NvRmGpuDeviceEventId_AlarmThermalAboveThreshold
@ NvRmGpuDeviceEventId_AlarmThermalAboveThreshold
Temperature above threshold.
Definition: nvrm_gpu.h:1991
NvRmGpuDevicePower
NvRmGpuDevicePower
Electric power sensors.
Definition: nvrm_gpu.h:1709
NvRmGpuDeviceEventId_AlarmGpuLost
@ NvRmGpuDeviceEventId_AlarmGpuLost
Device lost.
Definition: nvrm_gpu.h:2009
NvRmGpuDeviceVoltage_Bus
@ NvRmGpuDeviceVoltage_Bus
Bus voltage.
Definition: nvrm_gpu.h:1520
NvRmGpuDeviceEventSessionOpenAttrRec::filterListSize
size_t filterListSize
Number of entries in the event list.
Definition: nvrm_gpu.h:2034
NvRmGpuClockGetEntryRec::type
NvRmGpuClockType type
(IN) Request type
Definition: nvrm_gpu.h:1030
NvRmGpuClockAsyncReqHandle
int NvRmGpuClockAsyncReqHandle
OS-specific type of asynchronous clock request handle.
Definition: nvrm_gpu.h:934
NvRmGpuDeviceEventSessionOpenAttr
struct NvRmGpuDeviceEventSessionOpenAttrRec NvRmGpuDeviceEventSessionOpenAttr
Extensible attribute structure for NvRmGpuDeviceEventSessionOpen().
NvRmGpuSyncType_SyncFd
@ NvRmGpuSyncType_SyncFd
Synchronization type is Android/Linux sync fd.
Definition: nvrm_gpu.h:752
NvRmGpuDeviceTemperature
NvRmGpuDeviceTemperature
Temperature sensors.
Definition: nvrm_gpu.h:1805
NvRmGpuClockGetEntryRec::domain
NvRmGpuClockDomain domain
(IN) Domain for the clock request
Definition: nvrm_gpu.h:1024
NvRmGpuDeviceListCurrentSensors
NvError NvRmGpuDeviceListCurrentSensors(NvRmGpuDevice *hDevice, const NvRmGpuDeviceCurrent **pSensors, size_t *pNumSensors)
Returns the list of available electric current sensors for the device.
NvRmGpuDeviceOpen
NvError NvRmGpuDeviceOpen(NvRmGpuLib *hLib, int deviceIndex, const NvRmGpuDeviceOpenAttr *attr, NvRmGpuDevice **phDevice)
Opens a GPU device.
NvRmGpuDeviceClose
NvError NvRmGpuDeviceClose(NvRmGpuDevice *hDevice)
Closes the GPU device.
NvRmGpuSyncType
NvRmGpuSyncType
Inter-engine synchronization type for GPU jobs.
Definition: nvrm_gpu.h:740
NvRmGpuDeviceEventSessionClose
NvError NvRmGpuDeviceEventSessionClose(NvRmGpuDeviceEventSession *hSession)
Closes the device event session.
NvRmGpuDeviceEventSessionRead
NvError NvRmGpuDeviceEventSessionRead(NvRmGpuDeviceEventSession *hSession, NvRmGpuDeviceEventInfo *pEventInfo, uint32_t timeoutMs)
Read next device event.
NvRmGpuDeviceEventInfoRec::timeNs
uint64_t timeNs
GPU time (in nanoseconds)
Definition: nvrm_gpu.h:2159
NvRmGpuDeviceEventId_AlarmPowerAboveThreshold
@ NvRmGpuDeviceEventId_AlarmPowerAboveThreshold
Power above threshold.
Definition: nvrm_gpu.h:1998
NvRmGpuLibVersionInfoRec::suffix
const char * suffix
Version string suffix (always non-NULL)
Definition: nvrm_gpu.h:394
NvRmGpuClockDomainInfoRec::domain
NvRmGpuClockDomain domain
Clock domain.
Definition: nvrm_gpu.h:1079
NvRmGpuDeviceOpenAttrRec::sandboxFriendlyChannels
bool sandboxFriendlyChannels
Ignored field.
Definition: nvrm_gpu.h:793
NvRmGpuClockGetEntryRec::freqHz
uint64_t freqHz
(OUT) Frequency in Hz
Definition: nvrm_gpu.h:1036
NvRmGpuLibVersionInfoRec::minor
uint32_t minor
The library minor version.
Definition: nvrm_gpu.h:377
NvRmGpuClockType_Effective
@ NvRmGpuClockType_Effective
Effective clock as measured from hardware.
Definition: nvrm_gpu.h:1010
NvRmGpuClockGetEntry
struct NvRmGpuClockGetEntryRec NvRmGpuClockGetEntry
Entry for clock get request.
NvRmGpuLibDeviceState_Unknown
@ NvRmGpuLibDeviceState_Unknown
Device state is not known.
Definition: nvrm_gpu.h:611
NvRmGpuClockRangeRec::maxHz
uint64_t maxHz
Definition: nvrm_gpu.h:1060
NvRmGpuDeviceThermalAlertSetLimit
NvError NvRmGpuDeviceThermalAlertSetLimit(NvRmGpuDevice *hDevice, int32_t temperature_mC)
Sets the thermal alert limit.
NvRmGpuClockDomain
NvRmGpuClockDomain
Clock domains.
Definition: nvrm_gpu.h:979
NvRmGpuLibOpenAttrRec::reserved
uint32_t reserved
Dummy field for C/C++ ABI compatibility.
Definition: nvrm_gpu.h:453
NvRmGpuClockPointRec
Clock voltage/frequency point.
Definition: nvrm_gpu.h:1067
NvRmGpuLibDeviceState_InsufficientPrivileges
@ NvRmGpuLibDeviceState_InsufficientPrivileges
Device exists, but not enough privileges to access.
Definition: nvrm_gpu.h:607
NvRmGpuDeviceCurrent
NvRmGpuDeviceCurrent
Electric current sensors.
Definition: nvrm_gpu.h:1613
NvRmGpuLibDeviceState
NvRmGpuLibDeviceState
Device attachment state.
Definition: nvrm_gpu.h:601
NvRmGpuClockRangeRec::minHz
uint64_t minHz
Definition: nvrm_gpu.h:1059
NvRmGpuDeviceOpenAttrRec
Extensible attribute structure for NvRmGpuDeviceOpen()
Definition: nvrm_gpu.h:767
NvRmGpuClockGet
NvError NvRmGpuClockGet(NvRmGpuDevice *hDevice, NvRmGpuClockGetEntry *pClkGetEntries, size_t numEntries)
Request one or more clock domain frequency state.
NvRmGpuClockType_Actual
@ NvRmGpuClockType_Actual
Clock frequency programmed to the HW (including PLL constraints).
Definition: nvrm_gpu.h:1007
NvRmGpuClockPoint
struct NvRmGpuClockPointRec NvRmGpuClockPoint
Clock voltage/frequency point.
NvRmGpuClockType
NvRmGpuClockType
Request type for clock get.
Definition: nvrm_gpu.h:995
NvRmGpuDeviceGetTemperature
NvError NvRmGpuDeviceGetTemperature(NvRmGpuDevice *hDevice, NvRmGpuDeviceTemperature which, int32_t *pTemperatureMilliCelsius)
Retrieves the temperature sensor reading.
NvRmGpuDeviceEventId_AlarmClockArbiterFailed
@ NvRmGpuDeviceEventId_AlarmClockArbiterFailed
The clock arbiter has failed.
Definition: nvrm_gpu.h:1974
NvRmGpuDeviceCurrent_Bus
@ NvRmGpuDeviceCurrent_Bus
Bus current.
Definition: nvrm_gpu.h:1616
NvRmGpuClockSet
NvError NvRmGpuClockSet(NvRmGpuDevice *hDevice, const NvRmGpuClockSetEntry *pClkSetEntries, size_t numEntries, NvRmGpuClockAsyncReqHandle *phReq)
Requests minimum clocks for one or more clock domains.
NvRmGpuDevice
struct NvRmGpuDeviceRec NvRmGpuDevice
Device handle.
Definition: nvrm_gpu.h:348
NvRmGpuClockRange
struct NvRmGpuClockRangeRec NvRmGpuClockRange
Frequency range for clock domain.
NvRmGpuDeviceTemperature_InternalSensor
@ NvRmGpuDeviceTemperature_InternalSensor
The internal GPU temperature sensor.
Definition: nvrm_gpu.h:1808
NvRmGpuDeviceOpenAttrRec::syncType
NvRmGpuSyncType syncType
The default sync type for this device.
Definition: nvrm_gpu.h:781
NvRmGpuLibVersionInfo
struct NvRmGpuLibVersionInfoRec NvRmGpuLibVersionInfo
The version information structure returned by NvRmGpuLibGetVersionInfo().
NvRmGpuDeviceEventSessionOpen
NvError NvRmGpuDeviceEventSessionOpen(NvRmGpuDevice *hDevice, const NvRmGpuDeviceEventSessionOpenAttr *attr, NvRmGpuDeviceEventSession **phSession)
Opens a session to monitor device events.
NvRmGpuSyncType_Default
@ NvRmGpuSyncType_Default
Default sync type.
Definition: nvrm_gpu.h:749
NV_ARRAY_SIZE
#define NV_ARRAY_SIZE(x)
Macro for determining the size of an array.
Definition: nvcommon.h:146
NvRmGpuDeviceGetPower
NvError NvRmGpuDeviceGetPower(NvRmGpuDevice *hDevice, NvRmGpuDevicePower which, uint64_t *pPowerMicroWatt)
Retrieves the power sensor reading.
NvRmGpuLibDeviceListEntry
struct NvRmGpuLibDeviceListEntryRec NvRmGpuLibDeviceListEntry
Device list entry.
NvRmGpuDeviceEventInfoRec::eventId
NvRmGpuDeviceEventId eventId
Event type.
Definition: nvrm_gpu.h:2147
NvRmGpuDeviceEventSessionOpenAttrRec
Extensible attribute structure for NvRmGpuDeviceEventSessionOpen().
Definition: nvrm_gpu.h:2025
NvRmGpuClockRangeRec
Frequency range for clock domain.
Definition: nvrm_gpu.h:1057
NvRmGpuDevicePower_Bus
@ NvRmGpuDevicePower_Bus
Power consumed at the regulator.
Definition: nvrm_gpu.h:1712
NvRmGpuClockType_Target
@ NvRmGpuClockType_Target
Target clock frequency requested by the user.
Definition: nvrm_gpu.h:1001
NvRmGpuLibGetVersionInfo
const NvRmGpuLibVersionInfo * NvRmGpuLibGetVersionInfo(void)
Returns the library version information.
NvRmGpuDeviceOpenAttr
struct NvRmGpuDeviceOpenAttrRec NvRmGpuDeviceOpenAttr
Extensible attribute structure for NvRmGpuDeviceOpen()
NvRmGpuLibDeviceListEntryRec::name
const char * name
Informative device name.
Definition: nvrm_gpu.h:640
NvRmGpuDeviceListTemperatureSensors
NvError NvRmGpuDeviceListTemperatureSensors(NvRmGpuDevice *hDevice, const NvRmGpuDeviceTemperature **pSensors, size_t *pNumSensors)
Returns the list of available temperature sensors for the device.
NvRmGpuLibOpenAttr
struct NvRmGpuLibOpenAttrRec NvRmGpuLibOpenAttr
Extensible attribute structure for NvRmGpuLibOpen()