NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvsocsysapi.h File Reference

Go to the source code of this file.

Data Structures

struct  NvSysTegraECIDData
 ECID structure data for 512bit. More...
 

Macros

#define ECID_DATA_ARRAY_SIZE   16U
 Array size of ECID data. More...
 
#define TEGRA_CHIPID_REV_UNKNOWN   0x0
 Identifier for unknown ChipID revision. More...
 
#define TEGRA_PRODUCTION_MODE_UNKNOWN   ~0x0U
 Identifier for unknown Production mode. More...
 

Typedefs

typedef struct NvSysTegraECIDData NvSysTegraECID
 ECID structure data for 512bit. More...
 

Enumerations

enum  NvSocChipId {
  TEGRA_CHIPID_UNKNOWN = 0U,
  TEGRA_CHIPID_TEGRA14 = 0x14U,
  TEGRA_CHIPID_TEGRA2 = 0x20U,
  TEGRA_CHIPID_TEGRA21 = 0x21U,
  TEGRA_CHIPID_TEGRA3 = 0x30U,
  TEGRA_CHIPID_TEGRA11 = 0x35U,
  TEGRA_CHIPID_TEGRA12 = 0x40U,
  TEGRA_CHIPID_TEGRA13 = 0x13U,
  TEGRA_CHIPID_TEGRA18 = 0x18U,
  TEGRA_CHIPID_TEGRA19 = 0x19U,
  TEGRA_CHIPID_TEGRA23 = 0x23U,
  TEGRA_CHIPID_TEGRA26 = 0x26U,
  TEGRA_CHIPID_TEGRA25 = 0x25U
}
 Enumerator of ChipID. More...
 
enum  NvSocRevision {
  TEGRA_REVISION_UNKNOWN = 0U,
  TEGRA_REVISION_A00 = 0x0FU,
  TEGRA_REVISION_A00B = 0x10U,
  TEGRA_REVISION_A00P = 0x11U,
  TEGRA_REVISION_A01 = 0x33U,
  TEGRA_REVISION_A01P = 0x3CU,
  TEGRA_REVISION_A01Q = 0x55U,
  TEGRA_REVISION_A02 = 0x5AU,
  TEGRA_REVISION_A02P = 0x66U,
  TEGRA_REVISION_A02Q = 0x69U,
  TEGRA_REVISION_A03 = 0x96U,
  TEGRA_REVISION_QT = 0xF0U,
  TEGRA_REVISION_SIM = 0xFFU,
  TEGRA_REVISION_MAX = 0x1FFFFFFFU
}
 Enumerator of Chip revision. More...
 
enum  NvSocSysErrCode {
  NvSocSysError = 0x1FFFFFF0U,
  NvSocSysErrUnavailable = 0x1FFFFFFFU,
  NvSocSysSuccess = 0
}
 Error code for reading system info. More...
 
enum  NvSysSocId {
  NvSysSocAutoDetect = 0U,
  NvSysSocT18x = 0x18U,
  NvSysSocInvalid = 0x1FFFFFF0U
}
 SOC types for retrieving info. More...
 
enum  NvSocFuseOPTInfo {
  TEGRA_FUSE_OPT_INVALID = 0U,
  TEGRA_FUSE_OPT_CCPLEX_CLUSTER_DISABLE = 0x0FU,
  TEGRA_FUSE_OPT_DLA_DISABLE = 0x33U,
  TEGRA_FUSE_OPT_EMC_DISABLE = 0x3CU,
  TEGRA_FUSE_OPT_FBP_DISABLE = 0x55U,
  TEGRA_FUSE_OPT_FSI_DISABLE = 0x5AU,
  TEGRA_FUSE_OPT_GPC_DISABLE = 0x66U,
  TEGRA_FUSE_OPT_NVDEC_DISABLE = 0x69U,
  TEGRA_FUSE_OPT_NVENC_DISABLE = 0x96U,
  TEGRA_FUSE_OPT_PVA_DISABLE = 0x99U,
  TEGRA_FUSE_OPT_TPC_DISABLE = 0xA5U,
  TEGRA_FUSE_FUSE_SECURITY_MODE = 0x303U,
  TEGRA_FUSE_FUSE_FA = 0x30CU,
  TEGRA_FUSE_OPT_UCF_CLUSTER_DISABLE = 0x34FU,
  TEGRA_FUSE_OPT_AUDIO_DISABLE = 0x350U,
  TEGRA_FUSE_OPT_ISP_DISABLE = 0x35FU,
  TEGRA_FUSE_OPT_VIC_DISABLE = 0x3C6U,
  TEGRA_FUSE_OPT_DISPLAY_DISABLE = 0x3C9U,
  TEGRA_FUSE_OPT_MSS_DISABLE = 0x359U,
  TEGRA_FUSE_OPT_PCIE_DISABLE = 0x365U,
  TEGRA_FUSE_OPT_MGBE_DISABLE = 0x36AU,
  TEGRA_FUSE_BOOT_SECURITY_INFO = 0x395U,
  TEGRA_FUSE_REVOKE_P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K_H1_15 = 0x6A3U,
  TEGRA_FUSE_PK_H2_0 = 0x6ACU,
  TEGRA_FUSE_PK_H2_1 = 0x6C5U,
  TEGRA_FUSE_PK_H2_2 = 0x6CAU,
  TEGRA_FUSE_PK_H2_3 = 0x6F6U,
  TEGRA_FUSE_PK_H2_4 = 0x6F9U,
  TEGRA_FUSE_PK_H2_5 = 0x906U,
  TEGRA_FUSE_PK_H2_6 = 0x909U,
  TEGRA_FUSE_PK_H2_7 = 0x935U,
  TEGRA_FUSE_PK_H2_8 = 0x93AU,
  TEGRA_FUSE_PK_H2_9 = 0x953U,
  TEGRA_FUSE_PK_H2_10 = 0x95CU,
  TEGRA_FUSE_PK_H2_11 = 0x960U,
  TEGRA_FUSE_PK_H2_12 = 0x96FU,
  TEGRA_FUSE_PK_H2_13 = 0x990U,
  TEGRA_FUSE_PK_H2_14 = 0x99FU,
  TEGRA_FUSE_PK_H2_15 = 0x9A3U,
  TEGRA_FUSE_OPT_HWPM_DISABLE = 0x9ACU
}
 Enumerator of FUSE bit info. More...
 

Functions

NvSocSysErrCode NvTegraSysGetVerboseLevel (NvS32 *VerbLevel)
 Identifier for unknown Production mode. More...
 
NvSocSysErrCode NvTegraSysSetVerboseLevel (NvS32 VerbLevel)
 
NvSocChipId NvTegraSysGetChipId (void)
 Read the Tegra chip ID from chipid registers. More...
 
NvSocSysErrCode NvTegraSysGetSkuInfo (NvU32 *sku)
 Read the Tegra chip SKU information from eFuse registers. More...
 
NvSocSysErrCode NvTegraSysGetReservedProduction (NvU32 *resproduction)
 Read the Tegra chip Reserved Production information from eFuse registers. More...
 
NvSocSysErrCode NvTegraSysGetPackageInfo (NvU32 *package)
 Read the Tegra chip Package information from eFuse registers. More...
 
NvU32 NvTegraSysGetProductionMode (void)
 Read the Tegra chip Production mode information from eFuse registers. More...
 
NvSocRevision NvTegraSysGetChipRevision (void)
 Read the Tegra chip Revision information from eFuse registers. More...
 
NvU32 NvTegraSysGetChipIdRev (void)
 Read the Tegra chip Id Rev value. More...
 
NvSocSysErrCode NvTegraSysGetFuseVP9Disable (NvU32 *vp9disable)
 Check whether VP9 (Video Encode/Decode) is disabled or not. More...
 
NvSocSysErrCode NvTegraSysGetFuseVP9DecDisable (NvU32 *vp9decdisable)
 Check whether VP9 Decoder is disabled or not. More...
 
NvSocSysErrCode NvTegraSysGetFuseVP9EncDisable (NvU32 *vp9encdisable)
 Check whether VP9 Encoder is disabled or not. More...
 
const char * NvTegraSysGetPlatform (void)
 Get Platform Name. More...
 
const char * NvTegraSysGetCpuType (void)
 Get CPU Type. More...
 
NvSocSysErrCode NvTegraSysGetFuseOPT_info (NvSocFuseOPTInfo FuseOPT, NvU32 *FuseOPT_info)
 Get FUSE OPT register data following. More...
 
NvSocSysErrCode NvTegraSysGetFuseHashedECID (NvSysTegraECID *ecid)
 Get Hashed ECID info with 512bits. More...
 
NvSocSysErrCode NvTegraSysGetFuseODMData (NvU32 *ODMID_0, NvU32 *ODMID_1, NvU32 *ODMInfo)
 Get ODM data. More...
 
const char * NvTegraSysGetSOCVendor (void)
 Get SOC Vendor Name. More...
 
NvSocSysErrCode NvTegraSysGetFuseDLADisable (NvU32 *dladisable)
 Check whether DLA is disabled or not. More...
 
NvSocSysErrCode NvTegraSysInit (NvSysSocId SocId)
 Initialize NvSocSys library to be able to read chip information. More...
 
NvSocSysErrCode NvTegraSysDeInit (void)
 De-initialize NvSocSys library and perform cleanup. More...