|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
11 #ifndef INCLUDED_nvrm_module_H
12 #define INCLUDED_nvrm_module_H
14 #if !defined(__DEPRECATED__)
15 #if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)
21 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
22 #define __DEPRECATED__ __attribute__ ((deprecated))
24 #define __DEPRECATED__
26 #define __NVRM_UNDEF_DEPRECATED__
29 #if defined(__cplusplus)
474 #define NvRmPrivModuleID_Num NvRmModuleID_Num
484 #define NVRM_MODULE_0 (0x0)
485 #define NVRM_MODULE_0_ID_RANGE 15:0
486 #define NVRM_MODULE_0_INSTANCE_RANGE 23:16
487 #define NVRM_MODULE_0_BAR_RANGE 27:24
492 #define NVRM_MODULE_ID( id, instance ) \
494 NV_DRF_NUM( NVRM, MODULE, ID, (id) ) \
495 | NV_DRF_NUM( NVRM, MODULE, INSTANCE, (instance) ) )
500 #define NVRM_MODULE_ID_MODULE( id ) \
501 NV_DRF_VAL( NVRM, MODULE, ID, (id) )
506 #define NVRM_MODULE_ID_INSTANCE( id ) \
507 NV_DRF_VAL( NVRM, MODULE, INSTANCE, (id) )
512 #define NVRM_MODULE_ID_BAR( id ) \
513 NV_DRF_VAL( NVRM, MODULE, BAR, (id) )
637 #define NV_RM_CAPS_API_MODULE_PLATFORM (1)
787 #define NV_REGR(rm, aperture, offset) \
788 NvRegr((rm),(aperture),(offset))
806 #define NV_REGW(rm, aperture, offset, data) \
807 NvRegw((rm),(aperture),(offset),(data))
836 #define NV_REGR_MULT(rm, aperture, num, offsets, values) \
837 NvRegrm((rm),(aperture),(num),(offsets),(values))
853 #define NV_REGW_MULT(rm, aperture, num, offsets, values) \
854 NvRegwm((rm),(aperture),(num),(offsets),(values))
870 #define NV_REGW_BLOCK(rm, aperture, num, offset, values) \
871 NvRegwb((rm),(aperture),(num),(offset),(values))
887 #define NV_REGR_BLOCK(rm, aperture, num, offset, values) \
888 NvRegrb((rm),(aperture),(num),(offset),(values))
894 const NvU32 * offsets,
901 const NvU32 * offsets,
902 const NvU32 * values );
909 const NvU32 * values );
920 #if defined(__cplusplus)
924 #if defined(__NVRM_UNDEF_DEPRECATED__)
925 #undef __DEPRECATED__
926 #undef __NVRM_UNDEF_DEPRECATED__
void NvRegwb(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, NvU32 offset, const NvU32 *values)
@ NvRmModuleID_Kbc
Specifies keyboard controller.
@ NvRmPrivModuleID_Pl310
Specifies PL310.
@ NvRmModuleID_TSEC
Specifies security module (TSEC)
@ NvRmModuleID_Xio
Specifies the eXtended I/O controller.
@ NvRmModuleID_Pwm
Specifies the Pulse Width Modulator controller.
@ NvRmModuleID_Spdif
Specifies the Sony Phillips Digital Interface Format controller.
@ NvRmModuleID_Sdio
Specifies the SDIO controller.
@ NvRmModuleID_BseA
Specifies the Audio Bit Stream Engine.
@ NvRmModuleID_TimerUs
Specifies the timer controller microsecond counter.
@ NvRmModuleID_VG
Specifies VG graphics controller.
@ NvRmPrivModuleID_ProcId
Specifies processor ID.
NvError
The NvError enumeration contains ALL return / error codes.
@ NvRmPrivModuleID_Ahb_Arb_Ctrl
Specifies AHB arbitration control.
@ NvRmModuleID_ArbPriority
Specifies arbitration priority.
NvError NvRmCheckValidSecureState(NvRmDeviceHandle hRmDeviceHandle)
Returns whether system is a valid SecureOS state.
@ NvRmModuleID_Hdmi
Specifies High definition Multimedia Interface.
@ NvRmModuleID_3D
Specifies 3D graphics controller.
void NvRmModuleGetBaseAddress(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module, NvRmPhysAddr *pBaseAddress, NvU32 *pSize) __DEPRECATED__
Returns a physical address associated with a hardware module.
@ NvRmModuleID_Vfir
Specifies very fast infra-red controller.
struct NvRmModuleIdRec * NvRmModuleIdHandle
@ NvRmModuleID_Timer
Specifies the timer controller.
@ NvRmPrivModuleID_ApbDmaChannel
Specifies APB DMA channel.
@ NvRmModuleID_BootStrap
Specifies boot strap controller.
@ NvRmPrivModuleID_Gpio
Specifies GPIO controller.
struct NvRmModuleInfoRec NvRmModuleInfo
Holds the module information.
struct NvRmModuleCapabilityRec NvRmModuleCapability
Holds DDK capability encapsualtion.
@ NvRmPrivModuleID_InterruptArbGnt
Specifies interrupt controller arbitration semaphore grant registers.
@ NvRmPrivModuleID_ArmPerif
Specifies one module ID for all peripherals, which includes cache controller, SCU,...
@ NvRmModuleID_2D
Specifies 2D graphics controller.
@ NvRmModuleID_Rtc
Specifies the realtime clock controller.
@ NvRmModuleID_Ac97
Specifies the Audio Codec 97 controller.
@ NvRmModuleID_Tvo
Specifies TV out controller.
@ NvRmModuleID_Epp
Specifies NVIDIA encoder pre-processor (EPP).
@ NvRmModuleID_Mio
Specifies EthernetMIO controller.
@ NvRmModuleID_Dsi
Specifies serial display.
@ NvRmPrivModuleID_ApbDma
Specifies APB DMA controller.
@ NvRmModuleID_SyncNor
Specifies sync NOR controller.
NvRmModulePlatform Platform
@ NvRmModuleID_CBUS_Floor
@ NvRmModuleID_FlowCtrl
Specifies flow controller.
@ NvRmModuleID_I2s
Specifies the I2S controller.
@ NvRmModuleID_EventCtrl
Specifies event controller.
@ NvRmModuleID_GraphicsHost
Specifies the graphics host.
@ NvRmModuleID_Ide
Specifies the IDE controller.
@ NvRmModuleID_Mpe
Specifies video encoder (Motion Picture Encoder).
void NvRegw(NvRmDeviceHandle hDeviceHandle, NvRmModuleID aperture, NvU32 offset, NvU32 data)
@ NvRmModuleID_Invalid
Specifies an invalid module ID.
NvError NvRmFindModule(NvRmDeviceHandle hRmDeviceHandle, NvU32 Address, NvRmModuleIdHandle *phModuleId)
Find a module given its physical register address.
@ NvRmModuleID_Ucq
Specifies Unified Command Queue.
void NvRmModuleReset(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module)
Resets the module controller hardware.
NvU32 NvRmModuleGetNumInstances(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module)
Returns the number of instances of a particular hardware module.
@ NvRmPrivModuleID_PmuExt
NvError NvRmGetRandomBytes(NvRmDeviceHandle hRmDeviceHandle, NvU32 NumBytes, void *pBytes)
Returns random bytes using hardware sources of entropy.
@ NvRmModulePlatform_Force32
@ NvRmModuleID_SysStatMonitor
Specifies system statistics monitor controllerl.
@ NvRmModulePlatform_Silicon
@ NvRmModuleID_Usb2Otg
Specifies the USB2 OTG controller.
@ NvRmPrivModuleID_MemoryController
Specifies memory controller (internal memory and memory arbitration).
@ NvRmPrivModuleID_Mselect
Specifies memory configuation.
@ NvRmModuleID_Twc
Specifies the Three Wire controller.
Holds the module information.
@ NvRmModuleID_Fuse
Specifies FUSE controller.
@ NvRmModuleID_OneWire
Specifies one-wire interface controller.
NvError NvRmQueryChipUniqueId(NvRmDeviceHandle hDevHandle, NvU32 IdSize, void *pId)
Queries for the device unique ID.
@ NvRmModuleID_Isp
Specifies NVIDIA image signal processor (ISP).
@ NvRmPrivModuleID_ExternalMemory
Specifies external memory.
@ NvRmPrivModuleID_Gart
Specifies GART.
@ NvRmModuleID_Hdcp
Specifies High-Bandwidth Digital Content Protection interface.
NvRmModuleID
Defines SOC hardware controller class identifiers.
NvError NvRmCheckValidNVSIState(NvRmDeviceHandle hRmDeviceHandle)
Returns whether system is in a valid NVSI state.
@ NvRmPrivModuleID_Afi
Specifies the PCIE Root Port internally is made up of 3 major blocks.
@ NvRmModuleID_Hsmmc
Specifies the HSMMC controller.
@ NvRmPrivModuleID_InternalMemory
Specifies internal memory.
@ NvRmModuleID_Avp
Specifies the audio/video processor.
@ NvRmPrivModuleID_Interrupt
Specifies interrupt controller.
@ NvRmModuleID_Sor
Specifies SOR.
@ NvRmPrivModuleID_Iram
Specifies IRAM.
@ NvRmModuleID_Dvc
Specifies Dynamic Voltage Controller.
@ NvRmPrivModuleID_InterruptDrq
Specifies interrupt controller DMA Tx/Rx DRQ registers.
@ NvRmPrivModuleID_ExternalMemory_MMIO
@ NvRmModuleID_AvpUcq
Specifies AVP UCQ module.
@ NvRmPrivModuleID_PcieXclk
@ NvRmModuleID_Mipi
Specifies MIPI baseband controller.
@ NvRmModuleID_Vde
Specifies video decoder.
@ NvRmModuleID_Csi
Specifies the Camera Serial Interface.
struct NvRmDeviceRec * NvRmDeviceHandle
@ NvRmModuleID_MSENC
Specifies video encoder (MSENC)
@ NvRmModuleID_EMC_Shared
@ NvRmModulePlatform_Quickturn
@ NvRmModuleID_Vcp
Specifies the vector co-processor.
@ NvRmModuleID_Slink
Specifies SLink controller.
@ NvRmModuleID_Uart
Specifies the UART controller.
Holds DDK capability encapsualtion.
@ NvRmModulePlatform_Emulation
@ NvRmPrivModuleID_System
Specifies entire system (used for system reset).
@ NvRmPrivModuleID_ExternalMemoryController
Specifies external memory (DDR RAM, etc.).
@ NvRmModuleID_CacheMemCtrl
Specifies cache memory controller.
@ NvRmPrivModuleID_ClockAndReset
Specifies clock and reset controller.
@ NvRmModuleID_Vi
Specifies NVIDIA video input.
@ NvRmModuleID_Spi
Specifies the SPI controller.
@ NvRmModuleID_I2c
Specifies the I2C controller.
NvU32 NvRmPhysAddr
This is deprecated and shouldn't be used.
@ NvRmModuleID_ExceptionVector
Specifies exception vector.
@ NvRmPrivModuleID_Tcram
Specifies TCRAM.
@ NvRmModuleID_ExtPeriphClk
@ NvRmModuleID_Display
Specifies the display controller.
@ NvRmModuleID_Nor
Specifies NOR memory aperture.
@ NvRmModuleID_Cdev
Specifies system.
@ NvRmPrivModuleID_ArmInterruptctrl
void NvRegwm(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, const NvU32 *offsets, const NvU32 *values)
NvRmModulePlatform
Defines platform of operation.
void NvRegrb(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, NvU32 offset, NvU32 *values)
@ NvRmModuleID_Misc
Specifies a miscellaneous module ID that contains registers for pinmux/DAP control,...
@ NvRmPrivModuleID_PinMux
Specifies pin-mux controller.
void NvRmModuleResetWithHold(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module, NvBool bHold)
Resets the controller with an option to hold the controller in the reset.
NvU32 NvRegr(NvRmDeviceHandle hDeviceHandle, NvRmModuleID aperture, NvU32 offset)
@ NvRmModuleID_KFuse
Specifies KFUSE controller.
@ NvRmModuleID_ArbitrationSema
Specifies arbitration semaphore.
@ NvRmModuleID_Nand
Specifies the NAND controller.
@ NvRmModuleID_PcieDevice
Specifies a PCIE Device attached to AP20.
@ NvRmModuleID_Pmif
Specifies PMIF controller.
@ NvRmPrivModuleID_InterruptSw
Specifies interrupt controller special SW interrupt.
@ NvRmModuleID_Cpu
Specifies the application processor.
@ NvRmPrivModuleID_Ahb_Gizmo_Ctrl
Specifies AHB gizmo control.
NvError NvRmModuleGetCapabilities(NvRmDeviceHandle hDeviceHandle, NvRmModuleID Module, NvRmModuleCapability *pCaps, NvU32 NumCaps, void **Capability) __DEPRECATED__
Returns a pointer to a class-specific capabilities structure.
@ NvRmPrivModuleID_Mio_Exio
MIO/EXIO.
@ NvRmModuleID_ResourceSema
Specifies resource semaphore.
NvError NvRmModuleGetModuleInfo(NvRmDeviceHandle hDevice, NvRmModuleID module, NvU32 *pNum, NvRmModuleInfo *pModuleInfo)
Returns a list of available module instances and their information.
@ NvRmModuleID_ClDvfs
Specifies CL DVFS.
@ NvRmModuleID_HDA
Specifies HD-Audio blocks.
@ NvRmPrivModuleID_AhbRemap
Specifies AHB re-map aperture seen from AVP.
@ NvRmModulePlatform_Simulation
@ NvRmPrivModuleID_InterruptCpu
Specifies interrupt controller special CPU interrupt.
void NvRegrm(NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, const NvU32 *offsets, NvU32 *values)