NVIDIA Driver Development Kit: Resource Manager Module Control APIs
Description: Declares module information and control APIs.
Definition in file nvrm_module.h.
Go to the source code of this file.
Data Structures | |
| struct | NvRmModuleInfoRec |
| Holds the module information. More... | |
| struct | NvRmModuleCapabilityRec |
| Holds DDK capability encapsualtion. More... | |
Macros | |
| #define | __DEPRECATED__ |
| #define | __NVRM_UNDEF_DEPRECATED__ |
| #define | NvRmPrivModuleID_Num NvRmModuleID_Num |
| #define | NVRM_MODULE_0 (0x0) |
| Module bitfields that are compatible with the NV_DRF macros. More... | |
| #define | NVRM_MODULE_0_ID_RANGE 15:0 |
| #define | NVRM_MODULE_0_INSTANCE_RANGE 23:16 |
| #define | NVRM_MODULE_0_BAR_RANGE 27:24 |
| #define | NVRM_MODULE_ID(id, instance) |
| Creates a module ID with a given instance. More... | |
| #define | NVRM_MODULE_ID_MODULE(id) NV_DRF_VAL( NVRM, MODULE, ID, (id) ) |
| Gets the actual module ID. More... | |
| #define | NVRM_MODULE_ID_INSTANCE(id) NV_DRF_VAL( NVRM, MODULE, INSTANCE, (id) ) |
| Gets the instance number of the module ID. More... | |
| #define | NVRM_MODULE_ID_BAR(id) NV_DRF_VAL( NVRM, MODULE, BAR, (id) ) |
| Gets the bar number for the module. More... | |
| #define | NV_RM_CAPS_API_MODULE_PLATFORM (1) |
| Module Capability API tracking API changes. More... | |
| #define | NV_REGR(rm, aperture, offset) NvRegr((rm),(aperture),(offset)) |
| Registers read from hardware. More... | |
| #define | NV_REGW(rm, aperture, offset, data) NvRegw((rm),(aperture),(offset),(data)) |
| Register write to hardware. More... | |
| #define | NV_REGR_MULT(rm, aperture, num, offsets, values) NvRegrm((rm),(aperture),(num),(offsets),(values)) |
| Reads multiple registers from hardware. More... | |
| #define | NV_REGW_MULT(rm, aperture, num, offsets, values) NvRegwm((rm),(aperture),(num),(offsets),(values)) |
| Write multiple registers from hardware. More... | |
| #define | NV_REGW_BLOCK(rm, aperture, num, offset, values) NvRegwb((rm),(aperture),(num),(offset),(values)) |
| Writes a block of registers to hardware. More... | |
| #define | NV_REGR_BLOCK(rm, aperture, num, offset, values) NvRegrb((rm),(aperture),(num),(offset),(values)) |
| Reads a block of registers from hardware. More... | |
Typedefs | |
| typedef struct NvRmModuleIdRec * | NvRmModuleIdHandle |
| typedef struct NvRmModuleInfoRec | NvRmModuleInfo |
| Holds the module information. More... | |
| typedef struct NvRmModuleCapabilityRec | NvRmModuleCapability |
| Holds DDK capability encapsualtion. More... | |
Functions | |
| NvError | NvRmModuleGetModuleInfo (NvRmDeviceHandle hDevice, NvRmModuleID module, NvU32 *pNum, NvRmModuleInfo *pModuleInfo) |
| Returns a list of available module instances and their information. More... | |
| void | NvRmModuleGetBaseAddress (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module, NvRmPhysAddr *pBaseAddress, NvU32 *pSize) __DEPRECATED__ |
| Returns a physical address associated with a hardware module. More... | |
| NvError | NvRmFindModule (NvRmDeviceHandle hRmDeviceHandle, NvU32 Address, NvRmModuleIdHandle *phModuleId) |
| Find a module given its physical register address. More... | |
| NvU32 | NvRmModuleGetNumInstances (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module) |
| Returns the number of instances of a particular hardware module. More... | |
| void | NvRmModuleReset (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module) |
| Resets the module controller hardware. More... | |
| void | NvRmModuleResetWithHold (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID Module, NvBool bHold) |
| Resets the controller with an option to hold the controller in the reset. More... | |
| NvError | NvRmModuleGetCapabilities (NvRmDeviceHandle hDeviceHandle, NvRmModuleID Module, NvRmModuleCapability *pCaps, NvU32 NumCaps, void **Capability) __DEPRECATED__ |
| Returns a pointer to a class-specific capabilities structure. More... | |
| NvError | NvRmQueryChipUniqueId (NvRmDeviceHandle hDevHandle, NvU32 IdSize, void *pId) |
| Queries for the device unique ID. More... | |
| NvError | NvRmGetRandomBytes (NvRmDeviceHandle hRmDeviceHandle, NvU32 NumBytes, void *pBytes) |
| Returns random bytes using hardware sources of entropy. More... | |
| NvError | NvRmCheckValidSecureState (NvRmDeviceHandle hRmDeviceHandle) |
| Returns whether system is a valid SecureOS state. More... | |
| NvError | NvRmCheckValidNVSIState (NvRmDeviceHandle hRmDeviceHandle) |
| Returns whether system is in a valid NVSI state. More... | |
| NvU32 | NvRegr (NvRmDeviceHandle hDeviceHandle, NvRmModuleID aperture, NvU32 offset) |
| void | NvRegw (NvRmDeviceHandle hDeviceHandle, NvRmModuleID aperture, NvU32 offset, NvU32 data) |
| void | NvRegrm (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, const NvU32 *offsets, NvU32 *values) |
| void | NvRegwm (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, const NvU32 *offsets, const NvU32 *values) |
| void | NvRegwb (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, NvU32 offset, const NvU32 *values) |
| void | NvRegrb (NvRmDeviceHandle hRmDeviceHandle, NvRmModuleID aperture, NvU32 num, NvU32 offset, NvU32 *values) |
| #define __DEPRECATED__ |
Definition at line 24 of file nvrm_module.h.
| #define __NVRM_UNDEF_DEPRECATED__ |
Definition at line 26 of file nvrm_module.h.