Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.6 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    nvrm_gpu.h
    Go to the documentation of this file.
    1 /*
    2  * Copyright (c) 2014-2022 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 #ifndef INCLUDED_nvrm_gpu_H
    12 #define INCLUDED_nvrm_gpu_H
    13 
    14 #include <stdbool.h>
    15 #include <stdint.h>
    16 #include <stddef.h>
    17 
    18 #include "nvcommon.h"
    19 #include "nverror.h"
    20 
    21 #if defined(__cplusplus)
    22 extern "C"
    23 {
    24 #endif
    25 
    26 #if defined(NVRM_GPU_BUILD_VARIANT)
    27 namespace nvrm_gpu
    28 {
    29 #endif
    30 
    215 
    216 // -------------------------------------------------
    217 // --------------- API Groups ----------------------
    218 // -------------------------------------------------
    219 
    221 
    226 
    230 
    235 
    239 
    240 // -------------------------------------------------
    241 // --------------- Handles -------------------------
    242 // -------------------------------------------------
    243 
    251 typedef struct NvRmGpuLibRec NvRmGpuLib;
    252 
    260 typedef struct NvRmGpuDeviceRec NvRmGpuDevice;
    261 
    267 typedef struct NvRmGpuDeviceEventSessionRec NvRmGpuDeviceEventSession;
    268 
    269 
    270 // -------------------------------------------------
    271 // --------------- Library functions ---------------
    272 // -------------------------------------------------
    273 
    280 {
    284  uint32_t major;
    285 
    289  uint32_t minor;
    290 
    294  uint32_t patch;
    295 
    306  const char *suffix;
    307 
    309 
    336 
    354 typedef struct NvRmGpuLibOpenAttrRec
    355 {
    357  uint32_t reserved;
    358 
    360 
    367 #define NVRM_GPU_DEFINE_LIB_OPEN_ATTR(x) NvRmGpuLibOpenAttr x = { 0U }
    368 
    440 
    477 
    484 typedef enum
    485 {
    488 
    491 
    495 
    497 
    498 
    505 {
    508 
    513 
    523  const char *name;
    525 
    560 const NvRmGpuLibDeviceListEntry *NvRmGpuLibListDevices(NvRmGpuLib *hLib, size_t *pNumDevices);
    561 
    562 
    563 
    573 #define NVRM_GPU_DEVICE_INDEX_DEFAULT (-1)
    574 
    613 typedef enum
    614 {
    623 
    626 
    630 
    631 
    641 {
    655 
    668 
    677 #define NVRM_GPU_DEFINE_DEVICE_OPEN_ATTR(x) \
    678  NvRmGpuDeviceOpenAttr x = { NvRmGpuSyncType_Default, false }
    679 
    680 
    718 NvError NvRmGpuDeviceOpen(NvRmGpuLib *hLib, int deviceIndex, const NvRmGpuDeviceOpenAttr *attr,
    719  NvRmGpuDevice **phDevice);
    720 
    758 
    759 
    760 #if NVOS_IS_LINUX || NVOS_IS_QNX
    761 
    766 #define NVRM_GPU_CLOCK_ASYNC_REQ_HANDLE_PRIFMT "d"
    767 
    772 #define NVRM_GPU_CLOCK_ASYNC_REQ_INVALID_HANDLE (-1)
    773 
    785 typedef int NvRmGpuClockAsyncReqHandle;
    786 #else
    787 
    792 #define NVRM_GPU_CLOCK_ASYNC_REQ_HANDLE_PRIFMT "p"
    793 
    798 #define NVRM_GPU_CLOCK_ASYNC_REQ_INVALID_HANDLE (NULL)
    799 
    821 #endif
    822 
    830 typedef enum
    831 {
    834 
    837 
    841 
    846 typedef enum NvRmGpuClockType
    847 {
    853 
    859 
    863 
    864 
    870 {
    876 
    882 
    887  uint64_t freqHz;
    888 
    890 
    896 {
    899 
    901  uint64_t freqHz;
    903 
    908 typedef struct NvRmGpuClockRangeRec
    909 {
    910  uint64_t minHz;
    911  uint64_t maxHz;
    913 
    918 typedef struct NvRmGpuClockPointRec
    919 {
    920  uint64_t freqHz;
    922 
    928 {
    931 
    934 
    937  size_t maxVfPoints;
    938 
    940 
    986  const NvRmGpuClockDomainInfo **infos,
    987  size_t *pNumDomains);
    988 
    1034  NvRmGpuClockDomain domain,
    1035  NvRmGpuClockPoint *pClkPoints,
    1036  size_t *pNumPoints);
    1037 
    1156  const NvRmGpuClockSetEntry *pClkSetEntries,
    1157  size_t numEntries,
    1159 
    1205  const NvRmGpuClockAsyncReqHandle *phReqs,
    1206  size_t numEntries,
    1207  uint32_t timeoutMs);
    1208 
    1209 
    1247 
    1248 
    1268  uint32_t timeoutMs);
    1269 
    1270 
    1322  NvRmGpuClockGetEntry *pClkGetEntries,
    1323  size_t numEntries);
    1324 
    1327 typedef enum
    1328 {
    1331 
    1334 
    1338 
    1373  const NvRmGpuDeviceVoltage **pSensors,
    1374  size_t *pNumSensors);
    1375 
    1376 
    1414  NvRmGpuDeviceVoltage which,
    1415  uint64_t *pVoltageMicroVolt);
    1416 
    1419 typedef enum
    1420 {
    1424 
    1425 
    1461  const NvRmGpuDeviceCurrent **pSensors,
    1462  size_t *pNumSensors);
    1463 
    1500  NvRmGpuDeviceCurrent which,
    1501  uint64_t *pCurrentMicroAmpere);
    1502 
    1505 typedef enum
    1506 {
    1510 
    1545  const NvRmGpuDevicePower **pSensors,
    1546  size_t *pNumSensors);
    1547 
    1584  NvRmGpuDevicePower which,
    1585  uint64_t *pPowerMicroWatt);
    1586 
    1587 
    1590 typedef enum
    1591 {
    1595 
    1631  const NvRmGpuDeviceTemperature **pSensors,
    1632  size_t *pNumSensors);
    1633 
    1673  int32_t *pTemperatureMilliCelsius);
    1674 
    1708  int32_t temperature_mC);
    1709 
    1710 
    1715 typedef enum
    1716 {
    1717  // @brief Frequency change event
    1726 
    1732 
    1739 
    1745 
    1753 
    1762 
    1769 
    1780 
    1783 
    1785 
    1796 {
    1802 
    1805 
    1807 
    1815 #define NVRM_GPU_DEFINE_DEVICE_EVENT_SESSION_ATTR(x) \
    1816  NvRmGpuDeviceEventSessionOpenAttr x = { NULL, 0 }
    1817 
    1842 {
    1843  static const NvRmGpuDeviceEventId allEvents[] =
    1844  {
    1853  };
    1854  attr->filterList = allEvents;
    1855  attr->filterListSize = NV_ARRAY_SIZE(allEvents);
    1856 }
    1857 
    1894  NvRmGpuDeviceEventSession **phSession);
    1895 
    1905 {
    1908 
    1919  uint64_t timeNs;
    1920 
    1922 
    1964  NvRmGpuDeviceEventInfo *pEventInfo,
    1965  uint32_t timeoutMs);
    1966 
    1998 
    1999 #if defined(NVRM_GPU_BUILD_VARIANT)
    2000 } // namespace nvrm_gpu
    2001 #endif
    2002 
    2003 #if defined(__cplusplus)
    2004 }
    2005 #endif
    2006 
    2007 #if !defined(NV_SDK_BUILD)
    2008 #include "nvrm_gpu_priv.h"
    2009 #endif
    2010 
    2011 #endif
    NvRmGpuClockSetEntryRec::freqHz
    uint64_t freqHz
    Frequency for clock request.
    Definition: nvrm_gpu.h:901
    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:937
    NvRmGpuLibOpenAttrRec
    Extensible attribute structure for NvRmGpuLibOpen()
    Definition: nvrm_gpu.h:354
    NvRmGpuClockDomain_Count
    @ NvRmGpuClockDomain_Count
    Number of clock domains.
    Definition: nvrm_gpu.h:839
    NvRmGpuLibDeviceListEntryRec::deviceState
    NvRmGpuLibDeviceState deviceState
    Device attachment state.
    Definition: nvrm_gpu.h:512
    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:279
    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:1752
    NvRmGpuLibDeviceState_Attached
    @ NvRmGpuLibDeviceState_Attached
    Device is attached and may be opened with NvRmGpuDeviceOpen()
    Definition: nvrm_gpu.h:487
    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:1801
    NvRmGpuDeviceEventSession
    struct NvRmGpuDeviceEventSessionRec NvRmGpuDeviceEventSession
    Device event session handle.
    Definition: nvrm_gpu.h:267
    NvRmGpuDeviceEventId
    NvRmGpuDeviceEventId
    Definition: nvrm_gpu.h:1715
    NvRmGpuDeviceEventId_Count
    @ NvRmGpuDeviceEventId_Count
    Number of events.
    Definition: nvrm_gpu.h:1782
    NvRmGpuDeviceEventId_AlarmLocalTargetVfNotPossible
    @ NvRmGpuDeviceEventId_AlarmLocalTargetVfNotPossible
    A clock domain frequency is below local target frequency requested by a session.
    Definition: nvrm_gpu.h:1738
    NvRmGpuDeviceVoltage_SRAM
    @ NvRmGpuDeviceVoltage_SRAM
    SRAM voltage.
    Definition: nvrm_gpu.h:1333
    NvRmGpuDeviceEventId_AlarmTargetVfNotPossible
    @ NvRmGpuDeviceEventId_AlarmTargetVfNotPossible
    A clock domain frequency is below target.
    Definition: nvrm_gpu.h:1731
    NvRmGpuLibVersionInfoRec::patch
    uint32_t patch
    The library patch level.
    Definition: nvrm_gpu.h:294
    NvRmGpuLib
    struct NvRmGpuLibRec NvRmGpuLib
    Library handle.
    Definition: nvrm_gpu.h:251
    NvRmGpuClockDomainInfoRec::range
    NvRmGpuClockRange range
    Frequency range of the clock domain.
    Definition: nvrm_gpu.h:933
    NvRmGpuClockAsyncNotImplemented
    OS-specific type of asynchronous clock request handle (unimplemented).
    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:1725
    NvRmGpuDeviceVoltage
    NvRmGpuDeviceVoltage
    Voltage sensors.
    Definition: nvrm_gpu.h:1327
    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:1841
    NvRmGpuClockDomain_GPCCLK
    @ NvRmGpuClockDomain_GPCCLK
    Main graphics core clock.
    Definition: nvrm_gpu.h:836
    NvRmGpuLibDeviceListEntryRec::deviceIndex
    int deviceIndex
    Internal device index. Used in NvRmGpuDeviceOpen()
    Definition: nvrm_gpu.h:507
    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:504
    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:1904
    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:898
    NvRmGpuClockDomainInfoRec
    Clock domain info.
    Definition: nvrm_gpu.h:927
    NvRmGpuLibVersionInfoRec::major
    uint32_t major
    The library major version.
    Definition: nvrm_gpu.h:284
    NvRmGpuSyncType_Syncpoint
    @ NvRmGpuSyncType_Syncpoint
    Synchronization type is Tegra HOST1X syncpoint.
    Definition: nvrm_gpu.h:628
    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:895
    NvRmGpuClockDomain_MCLK
    @ NvRmGpuClockDomain_MCLK
    Memory clock.
    Definition: nvrm_gpu.h:833
    NvRmGpuClockPointRec::freqHz
    uint64_t freqHz
    Definition: nvrm_gpu.h:920
    NvRmGpuClockGetEntryRec
    Entry for clock get request.
    Definition: nvrm_gpu.h:869
    NvRmGpuDeviceVoltage_Core
    @ NvRmGpuDeviceVoltage_Core
    Core GPU voltage.
    Definition: nvrm_gpu.h:1330
    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:1761
    NvRmGpuDevicePower
    NvRmGpuDevicePower
    Electric power sensors.
    Definition: nvrm_gpu.h:1505
    NvRmGpuDeviceEventId_AlarmGpuLost
    @ NvRmGpuDeviceEventId_AlarmGpuLost
    Device lost.
    Definition: nvrm_gpu.h:1779
    NvRmGpuDeviceVoltage_Bus
    @ NvRmGpuDeviceVoltage_Bus
    Bus voltage.
    Definition: nvrm_gpu.h:1336
    NvRmGpuDeviceEventSessionOpenAttrRec::filterListSize
    size_t filterListSize
    Number of entries in the event list.
    Definition: nvrm_gpu.h:1804
    NvRmGpuClockGetEntryRec::type
    NvRmGpuClockType type
    (IN) Request type
    Definition: nvrm_gpu.h:881
    NvRmGpuClockAsyncReqHandle
    struct NvRmGpuClockAsyncNotImplemented * NvRmGpuClockAsyncReqHandle
    OS-specific type of asynchronous clock request handle.
    Definition: nvrm_gpu.h:820
    NvRmGpuDeviceEventSessionOpenAttr
    struct NvRmGpuDeviceEventSessionOpenAttrRec NvRmGpuDeviceEventSessionOpenAttr
    Extensible attribute structure for NvRmGpuDeviceEventSessionOpen().
    NvRmGpuSyncType_SyncFd
    @ NvRmGpuSyncType_SyncFd
    Synchronization type is Android/Linux sync fd.
    Definition: nvrm_gpu.h:625
    NvRmGpuDeviceTemperature
    NvRmGpuDeviceTemperature
    Temperature sensors.
    Definition: nvrm_gpu.h:1590
    NvRmGpuClockGetEntryRec::domain
    NvRmGpuClockDomain domain
    (IN) Domain for the clock request
    Definition: nvrm_gpu.h:875
    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:613
    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:1919
    NvRmGpuDeviceEventId_AlarmPowerAboveThreshold
    @ NvRmGpuDeviceEventId_AlarmPowerAboveThreshold
    Power above threshold.
    Definition: nvrm_gpu.h:1768
    NvRmGpuLibVersionInfoRec::suffix
    const char * suffix
    Version string suffix (always non-NULL)
    Definition: nvrm_gpu.h:306
    NvRmGpuClockDomainInfoRec::domain
    NvRmGpuClockDomain domain
    Clock domain.
    Definition: nvrm_gpu.h:930
    NvRmGpuDeviceOpenAttrRec::sandboxFriendlyChannels
    bool sandboxFriendlyChannels
    Ignored field.
    Definition: nvrm_gpu.h:666
    NvRmGpuClockGetEntryRec::freqHz
    uint64_t freqHz
    (OUT) Frequency in Hz
    Definition: nvrm_gpu.h:887
    NvRmGpuLibVersionInfoRec::minor
    uint32_t minor
    The library minor version.
    Definition: nvrm_gpu.h:289
    NvRmGpuClockType_Effective
    @ NvRmGpuClockType_Effective
    Effective clock as measured from hardware.
    Definition: nvrm_gpu.h:861
    NvRmGpuClockGetEntry
    struct NvRmGpuClockGetEntryRec NvRmGpuClockGetEntry
    Entry for clock get request.
    NvRmGpuLibDeviceState_Unknown
    @ NvRmGpuLibDeviceState_Unknown
    Device state is not known.
    Definition: nvrm_gpu.h:494
    NvRmGpuClockRangeRec::maxHz
    uint64_t maxHz
    Definition: nvrm_gpu.h:911
    NvRmGpuDeviceThermalAlertSetLimit
    NvError NvRmGpuDeviceThermalAlertSetLimit(NvRmGpuDevice *hDevice, int32_t temperature_mC)
    Sets the thermal alert limit.
    NvRmGpuClockDomain
    NvRmGpuClockDomain
    Clock domains.
    Definition: nvrm_gpu.h:830
    NvRmGpuLibOpenAttrRec::reserved
    uint32_t reserved
    Dummy field for C/C++ ABI compatibility.
    Definition: nvrm_gpu.h:357
    NvRmGpuClockPointRec
    Clock voltage/frequency point.
    Definition: nvrm_gpu.h:918
    NvRmGpuLibDeviceState_InsufficientPrivileges
    @ NvRmGpuLibDeviceState_InsufficientPrivileges
    Device exists, but not enough privileges to access.
    Definition: nvrm_gpu.h:490
    NvRmGpuDeviceCurrent
    NvRmGpuDeviceCurrent
    Electric current sensors.
    Definition: nvrm_gpu.h:1419
    NvRmGpuLibDeviceState
    NvRmGpuLibDeviceState
    Device attachment state.
    Definition: nvrm_gpu.h:484
    NvRmGpuClockRangeRec::minHz
    uint64_t minHz
    Definition: nvrm_gpu.h:910
    NvRmGpuDeviceOpenAttrRec
    Extensible attribute structure for NvRmGpuDeviceOpen()
    Definition: nvrm_gpu.h:640
    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:858
    NvRmGpuClockPoint
    struct NvRmGpuClockPointRec NvRmGpuClockPoint
    Clock voltage/frequency point.
    NvRmGpuClockType
    NvRmGpuClockType
    Request type for clock get.
    Definition: nvrm_gpu.h:846
    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:1744
    NvRmGpuDeviceCurrent_Bus
    @ NvRmGpuDeviceCurrent_Bus
    Bus current.
    Definition: nvrm_gpu.h:1422
    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:260
    NvRmGpuClockRange
    struct NvRmGpuClockRangeRec NvRmGpuClockRange
    Frequency range for clock domain.
    NvRmGpuDeviceTemperature_InternalSensor
    @ NvRmGpuDeviceTemperature_InternalSensor
    The internal GPU temperature sensor.
    Definition: nvrm_gpu.h:1593
    NvRmGpuDeviceOpenAttrRec::syncType
    NvRmGpuSyncType syncType
    The default sync type for this device.
    Definition: nvrm_gpu.h:654
    NvError
    NvError
    The NvError enumeration contains ALL return / error codes.
    Definition: nverror.h:32
    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:622
    NV_ARRAY_SIZE
    #define NV_ARRAY_SIZE(x)
    Macro for determining the size of an array.
    Definition: nvcommon.h:145
    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:1907
    NvRmGpuDeviceEventSessionOpenAttrRec
    Extensible attribute structure for NvRmGpuDeviceEventSessionOpen().
    Definition: nvrm_gpu.h:1795
    NvRmGpuClockRangeRec
    Frequency range for clock domain.
    Definition: nvrm_gpu.h:908
    NvRmGpuDevicePower_Bus
    @ NvRmGpuDevicePower_Bus
    Power consumed at the regulator.
    Definition: nvrm_gpu.h:1508
    NvRmGpuClockType_Target
    @ NvRmGpuClockType_Target
    Target clock frequency requested by the user.
    Definition: nvrm_gpu.h:852
    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:523
    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()
    人人超碰97caoporen国产