mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-04-29 02:31:44 +00:00
525.53
This commit is contained in:
@@ -47,7 +47,6 @@ extern "C" {
|
||||
#include "lib/ref_count.h"
|
||||
#include "os/os.h"
|
||||
#include "nvoc/utility.h"
|
||||
#include "kernel/gpu/intrable/intrable.h"
|
||||
#include "kernel/gpu/intr/intr_service.h"
|
||||
|
||||
/* ------------------------ Macros ----------------------------------------- */
|
||||
@@ -69,6 +68,7 @@ extern "C" {
|
||||
// !!NOTE: This is OBSOLETE, it should be moved directly to FIFO, where it's needed
|
||||
#define TMR_FLAG_RELEASE_SEMAPHORE NVBIT(1)
|
||||
#define TMR_FLAG_OS_TIMER_QUEUED NVBIT(2)
|
||||
#define TMR_FLAG_USE_OS_TIMER NVBIT(3)
|
||||
|
||||
#define TMR_GET_GPU(p) ENG_GET_GPU(p)
|
||||
|
||||
@@ -182,11 +182,9 @@ typedef struct TMR_EVENT_GENERAL_PARAMS {
|
||||
struct OBJTMR {
|
||||
const struct NVOC_RTTI *__nvoc_rtti;
|
||||
struct OBJENGSTATE __nvoc_base_OBJENGSTATE;
|
||||
struct OBJINTRABLE __nvoc_base_OBJINTRABLE;
|
||||
struct IntrService __nvoc_base_IntrService;
|
||||
struct Object *__nvoc_pbase_Object;
|
||||
struct OBJENGSTATE *__nvoc_pbase_OBJENGSTATE;
|
||||
struct OBJINTRABLE *__nvoc_pbase_OBJINTRABLE;
|
||||
struct IntrService *__nvoc_pbase_IntrService;
|
||||
struct OBJTMR *__nvoc_pbase_OBJTMR;
|
||||
void (*__tmrRegisterIntrService__)(OBJGPU *, struct OBJTMR *, IntrServiceRecord *);
|
||||
@@ -204,25 +202,21 @@ struct OBJTMR {
|
||||
NV_STATUS (*__tmrSetCountdown__)(OBJGPU *, struct OBJTMR *, NvU32, NvU32, struct THREAD_STATE_NODE *);
|
||||
NV_STATUS (*__tmrGrTickFreqChange__)(OBJGPU *, struct OBJTMR *, NvBool);
|
||||
NV_STATUS (*__tmrGetGpuPtimerOffset__)(OBJGPU *, struct OBJTMR *, NvU32 *, NvU32 *);
|
||||
NV_STATUS (*__tmrGetPhysicalIntrVectors__)(OBJGPU *, struct OBJTMR *, NvU32, NvU32 *, NvU32 *, NvU32 *);
|
||||
void (*__tmrFreeTunableState__)(POBJGPU, struct OBJTMR *, void *);
|
||||
NV_STATUS (*__tmrCompareTunableState__)(POBJGPU, struct OBJTMR *, void *, void *);
|
||||
NV_STATUS (*__tmrGetNotificationIntrVector__)(struct OBJGPU *, struct OBJTMR *, NvU32 *);
|
||||
NvBool (*__tmrIsPresent__)(POBJGPU, struct OBJTMR *);
|
||||
NV_STATUS (*__tmrReconcileTunableState__)(POBJGPU, struct OBJTMR *, void *);
|
||||
NV_STATUS (*__tmrGetKernelIntrVectors__)(struct OBJGPU *, struct OBJTMR *, NvU32, NvU32 *, NvU32 *, NvU32 *);
|
||||
NV_STATUS (*__tmrSetNotificationIntrVector__)(struct OBJGPU *, struct OBJTMR *, NvU32);
|
||||
NV_STATUS (*__tmrServiceNotificationInterrupt__)(OBJGPU *, struct OBJTMR *, IntrServiceServiceNotificationInterruptArguments *);
|
||||
NV_STATUS (*__tmrStatePreLoad__)(POBJGPU, struct OBJTMR *, NvU32);
|
||||
NV_STATUS (*__tmrStatePostUnload__)(POBJGPU, struct OBJTMR *, NvU32);
|
||||
NV_STATUS (*__tmrStatePreUnload__)(POBJGPU, struct OBJTMR *, NvU32);
|
||||
NV_STATUS (*__tmrGetTunableState__)(POBJGPU, struct OBJTMR *, void *);
|
||||
void (*__tmrInitMissing__)(POBJGPU, struct OBJTMR *);
|
||||
NV_STATUS (*__tmrStatePreInitLocked__)(POBJGPU, struct OBJTMR *);
|
||||
NV_STATUS (*__tmrStatePreInitUnlocked__)(POBJGPU, struct OBJTMR *);
|
||||
NV_STATUS (*__tmrServiceNotificationInterrupt__)(OBJGPU *, struct OBJTMR *, IntrServiceServiceNotificationInterruptArguments *);
|
||||
NV_STATUS (*__tmrGetTunableState__)(POBJGPU, struct OBJTMR *, void *);
|
||||
NV_STATUS (*__tmrCompareTunableState__)(POBJGPU, struct OBJTMR *, void *, void *);
|
||||
void (*__tmrFreeTunableState__)(POBJGPU, struct OBJTMR *, void *);
|
||||
NV_STATUS (*__tmrStatePostLoad__)(POBJGPU, struct OBJTMR *, NvU32);
|
||||
NV_STATUS (*__tmrAllocTunableState__)(POBJGPU, struct OBJTMR *, void **);
|
||||
NV_STATUS (*__tmrSetTunableState__)(POBJGPU, struct OBJTMR *, void *);
|
||||
NvBool (*__tmrIsPresent__)(POBJGPU, struct OBJTMR *);
|
||||
NvBool PDB_PROP_TMR_USE_COUNTDOWN_TIMER_FOR_RM_CALLBACKS;
|
||||
NvBool PDB_PROP_TMR_ALARM_INTR_REMOVED_FROM_PMC_TREE;
|
||||
NvBool PDB_PROP_TMR_USE_OS_TIMER_FOR_CALLBACKS;
|
||||
@@ -311,28 +305,24 @@ NV_STATUS __nvoc_objCreate_OBJTMR(OBJTMR**, Dynamic*, NvU32);
|
||||
#define tmrGrTickFreqChange_HAL(pGpu, pTmr, arg0) tmrGrTickFreqChange_DISPATCH(pGpu, pTmr, arg0)
|
||||
#define tmrGetGpuPtimerOffset(pGpu, pTmr, arg0, arg1) tmrGetGpuPtimerOffset_DISPATCH(pGpu, pTmr, arg0, arg1)
|
||||
#define tmrGetGpuPtimerOffset_HAL(pGpu, pTmr, arg0, arg1) tmrGetGpuPtimerOffset_DISPATCH(pGpu, pTmr, arg0, arg1)
|
||||
#define tmrGetPhysicalIntrVectors(pGpu, pTmr, maxIntrs, pIntrs, pMcEngineIdxs, pCount) tmrGetPhysicalIntrVectors_DISPATCH(pGpu, pTmr, maxIntrs, pIntrs, pMcEngineIdxs, pCount)
|
||||
#define tmrGetPhysicalIntrVectors_HAL(pGpu, pTmr, maxIntrs, pIntrs, pMcEngineIdxs, pCount) tmrGetPhysicalIntrVectors_DISPATCH(pGpu, pTmr, maxIntrs, pIntrs, pMcEngineIdxs, pCount)
|
||||
#define tmrFreeTunableState(pGpu, pEngstate, pTunableState) tmrFreeTunableState_DISPATCH(pGpu, pEngstate, pTunableState)
|
||||
#define tmrCompareTunableState(pGpu, pEngstate, pTunables1, pTunables2) tmrCompareTunableState_DISPATCH(pGpu, pEngstate, pTunables1, pTunables2)
|
||||
#define tmrGetNotificationIntrVector(pGpu, pIntrable, pIntrVector) tmrGetNotificationIntrVector_DISPATCH(pGpu, pIntrable, pIntrVector)
|
||||
#define tmrIsPresent(pGpu, pEngstate) tmrIsPresent_DISPATCH(pGpu, pEngstate)
|
||||
#define tmrReconcileTunableState(pGpu, pEngstate, pTunableState) tmrReconcileTunableState_DISPATCH(pGpu, pEngstate, pTunableState)
|
||||
#define tmrGetKernelIntrVectors(pGpu, pIntrable, maxIntrs, pIntrs, pMcEngineIdxs, pCount) tmrGetKernelIntrVectors_DISPATCH(pGpu, pIntrable, maxIntrs, pIntrs, pMcEngineIdxs, pCount)
|
||||
#define tmrSetNotificationIntrVector(pGpu, pIntrable, intrVector) tmrSetNotificationIntrVector_DISPATCH(pGpu, pIntrable, intrVector)
|
||||
#define tmrServiceNotificationInterrupt(pGpu, pIntrService, pParams) tmrServiceNotificationInterrupt_DISPATCH(pGpu, pIntrService, pParams)
|
||||
#define tmrStatePreLoad(pGpu, pEngstate, arg0) tmrStatePreLoad_DISPATCH(pGpu, pEngstate, arg0)
|
||||
#define tmrStatePostUnload(pGpu, pEngstate, arg0) tmrStatePostUnload_DISPATCH(pGpu, pEngstate, arg0)
|
||||
#define tmrStatePreUnload(pGpu, pEngstate, arg0) tmrStatePreUnload_DISPATCH(pGpu, pEngstate, arg0)
|
||||
#define tmrGetTunableState(pGpu, pEngstate, pTunableState) tmrGetTunableState_DISPATCH(pGpu, pEngstate, pTunableState)
|
||||
#define tmrInitMissing(pGpu, pEngstate) tmrInitMissing_DISPATCH(pGpu, pEngstate)
|
||||
#define tmrStatePreInitLocked(pGpu, pEngstate) tmrStatePreInitLocked_DISPATCH(pGpu, pEngstate)
|
||||
#define tmrStatePreInitUnlocked(pGpu, pEngstate) tmrStatePreInitUnlocked_DISPATCH(pGpu, pEngstate)
|
||||
#define tmrServiceNotificationInterrupt(pGpu, pIntrService, pParams) tmrServiceNotificationInterrupt_DISPATCH(pGpu, pIntrService, pParams)
|
||||
#define tmrGetTunableState(pGpu, pEngstate, pTunableState) tmrGetTunableState_DISPATCH(pGpu, pEngstate, pTunableState)
|
||||
#define tmrCompareTunableState(pGpu, pEngstate, pTunables1, pTunables2) tmrCompareTunableState_DISPATCH(pGpu, pEngstate, pTunables1, pTunables2)
|
||||
#define tmrFreeTunableState(pGpu, pEngstate, pTunableState) tmrFreeTunableState_DISPATCH(pGpu, pEngstate, pTunableState)
|
||||
#define tmrStatePostLoad(pGpu, pEngstate, arg0) tmrStatePostLoad_DISPATCH(pGpu, pEngstate, arg0)
|
||||
#define tmrAllocTunableState(pGpu, pEngstate, ppTunableState) tmrAllocTunableState_DISPATCH(pGpu, pEngstate, ppTunableState)
|
||||
#define tmrSetTunableState(pGpu, pEngstate, pTunableState) tmrSetTunableState_DISPATCH(pGpu, pEngstate, pTunableState)
|
||||
#define tmrIsPresent(pGpu, pEngstate) tmrIsPresent_DISPATCH(pGpu, pEngstate)
|
||||
NV_STATUS tmrGetCurrentTime_IMPL(struct OBJTMR *pTmr, NvU64 *pTime);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrGetCurrentTime(struct OBJTMR *pTmr, NvU64 *pTime) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -346,6 +336,7 @@ static inline NV_STATUS tmrGetCurrentTime(struct OBJTMR *pTmr, NvU64 *pTime) {
|
||||
|
||||
NV_STATUS tmrGetCurrentTimeEx_IMPL(struct OBJTMR *pTmr, NvU64 *pTime, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrGetCurrentTimeEx(struct OBJTMR *pTmr, NvU64 *pTime, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -357,6 +348,11 @@ static inline NV_STATUS tmrGetCurrentTimeEx(struct OBJTMR *pTmr, NvU64 *pTime, s
|
||||
|
||||
#define tmrGetCurrentTimeEx_HAL(pTmr, pTime, arg0) tmrGetCurrentTimeEx(pTmr, pTime, arg0)
|
||||
|
||||
NV_STATUS tmrDelay_OSTIMER(struct OBJTMR *pTmr, NvU32 arg0);
|
||||
|
||||
NV_STATUS tmrDelay_PTIMER(struct OBJTMR *pTmr, NvU32 arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrDelay(struct OBJTMR *pTmr, NvU32 arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -372,6 +368,15 @@ static inline NV_STATUS tmrSetAlarmIntrDisable_56cd7a(OBJGPU *pGpu, struct OBJTM
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS tmrSetAlarmIntrDisable_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
NV_STATUS tmrSetAlarmIntrDisable_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
static inline NV_STATUS tmrSetAlarmIntrDisable_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrSetAlarmIntrDisable(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -387,6 +392,15 @@ static inline NV_STATUS tmrSetAlarmIntrEnable_56cd7a(OBJGPU *pGpu, struct OBJTMR
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS tmrSetAlarmIntrEnable_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
NV_STATUS tmrSetAlarmIntrEnable_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
static inline NV_STATUS tmrSetAlarmIntrEnable_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrSetAlarmIntrEnable(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -402,6 +416,15 @@ static inline NV_STATUS tmrSetAlarmIntrReset_56cd7a(OBJGPU *pGpu, struct OBJTMR
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS tmrSetAlarmIntrReset_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
NV_STATUS tmrSetAlarmIntrReset_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
static inline NV_STATUS tmrSetAlarmIntrReset_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrSetAlarmIntrReset(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -418,6 +441,11 @@ static inline NV_STATUS tmrGetIntrStatus_cb5ce8(OBJGPU *pGpu, struct OBJTMR *pTm
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS tmrGetIntrStatus_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *pStatus, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
NV_STATUS tmrGetIntrStatus_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *pStatus, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrGetIntrStatus(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *pStatus, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -433,6 +461,9 @@ static inline NvU32 tmrGetTimeLo_cf0499(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return ((NvU32)(((NvU64)(osGetTimestamp())) & 4294967295U));
|
||||
}
|
||||
|
||||
NvU32 tmrGetTimeLo_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvU32 tmrGetTimeLo(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -448,6 +479,9 @@ static inline NvU64 tmrGetTime_fa6bbe(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return osGetTimestamp();
|
||||
}
|
||||
|
||||
NvU64 tmrGetTime_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvU64 tmrGetTime(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -461,6 +495,7 @@ static inline NvU64 tmrGetTime(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
|
||||
NvU32 tmrReadTimeLoReg_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvU32 tmrReadTimeLoReg(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -474,6 +509,7 @@ static inline NvU32 tmrReadTimeLoReg(OBJGPU *pGpu, struct OBJTMR *pTmr, struct T
|
||||
|
||||
NvU32 tmrReadTimeHiReg_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvU32 tmrReadTimeHiReg(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -489,6 +525,13 @@ static inline NV_STATUS tmrSetAlarm_56cd7a(OBJGPU *pGpu, struct OBJTMR *pTmr, Nv
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS tmrSetAlarm_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 alarm, struct THREAD_STATE_NODE *pThreadState);
|
||||
|
||||
static inline NV_STATUS tmrSetAlarm_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 alarm, struct THREAD_STATE_NODE *pThreadState) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrSetAlarm(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 alarm, struct THREAD_STATE_NODE *pThreadState) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -504,6 +547,11 @@ static inline NvBool tmrGetAlarmPending_491d52(OBJGPU *pGpu, struct OBJTMR *pTmr
|
||||
return ((NvBool)(0 != 0));
|
||||
}
|
||||
|
||||
NvBool tmrGetAlarmPending_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
NvBool tmrGetAlarmPending_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrGetAlarmPending(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -517,6 +565,7 @@ static inline NvBool tmrGetAlarmPending(OBJGPU *pGpu, struct OBJTMR *pTmr, struc
|
||||
|
||||
NV_STATUS tmrSetCountdownIntrEnable_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrSetCountdownIntrEnable(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -530,6 +579,7 @@ static inline NV_STATUS tmrSetCountdownIntrEnable(OBJGPU *pGpu, struct OBJTMR *p
|
||||
|
||||
NV_STATUS tmrSetCountdownIntrReset_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrSetCountdownIntrReset(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -545,6 +595,7 @@ static inline NvBool tmrGetCountdownPending_491d52(OBJGPU *pGpu, struct OBJTMR *
|
||||
return ((NvBool)(0 != 0));
|
||||
}
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrGetCountdownPending(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -558,6 +609,7 @@ static inline NvBool tmrGetCountdownPending(OBJGPU *pGpu, struct OBJTMR *pTmr, s
|
||||
|
||||
NV_STATUS tmrGetTimerBar0MapInfo_PTIMER(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 *arg0, NvU32 *arg1);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrGetTimerBar0MapInfo(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 *arg0, NvU32 *arg1) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -573,6 +625,9 @@ static inline NvU32 tmrGetUtilsClkScaleFactor_4a4dee(OBJGPU *pGpu, struct OBJTMR
|
||||
return 0;
|
||||
}
|
||||
|
||||
NvU32 tmrGetUtilsClkScaleFactor_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvU32 tmrGetUtilsClkScaleFactor(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -586,6 +641,7 @@ static inline NvU32 tmrGetUtilsClkScaleFactor(OBJGPU *pGpu, struct OBJTMR *pTmr)
|
||||
|
||||
NV_STATUS tmrGetGpuAndCpuTimestampPair_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 *arg0, NvU64 *arg1);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrGetGpuAndCpuTimestampPair(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 *arg0, NvU64 *arg1) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -601,6 +657,11 @@ static inline void tmrResetTimerRegistersForVF_b3696a(OBJGPU *pGpu, struct OBJTM
|
||||
return;
|
||||
}
|
||||
|
||||
void tmrResetTimerRegistersForVF_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 gfid);
|
||||
|
||||
void tmrResetTimerRegistersForVF_GH100(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 gfid);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrResetTimerRegistersForVF(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 gfid) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -611,9 +672,8 @@ static inline void tmrResetTimerRegistersForVF(OBJGPU *pGpu, struct OBJTMR *pTmr
|
||||
|
||||
#define tmrResetTimerRegistersForVF_HAL(pGpu, pTmr, gfid) tmrResetTimerRegistersForVF(pGpu, pTmr, gfid)
|
||||
|
||||
static inline NV_STATUS tmrEventCreateOSTimer_46f6a7(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
NV_STATUS tmrEventCreateOSTimer_OSTIMER(struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventCreateOSTimer(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
@@ -621,14 +681,13 @@ static inline NV_STATUS tmrEventCreateOSTimer(struct OBJTMR *pTmr, PTMR_EVENT pE
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#else //__nvoc_objtmr_h_disabled
|
||||
#define tmrEventCreateOSTimer(pTmr, pEvent) tmrEventCreateOSTimer_46f6a7(pTmr, pEvent)
|
||||
#define tmrEventCreateOSTimer(pTmr, pEvent) tmrEventCreateOSTimer_OSTIMER(pTmr, pEvent)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
#define tmrEventCreateOSTimer_HAL(pTmr, pEvent) tmrEventCreateOSTimer(pTmr, pEvent)
|
||||
|
||||
static inline NV_STATUS tmrEventScheduleAbsOSTimer_46f6a7(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeAbs) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
NV_STATUS tmrEventScheduleAbsOSTimer_OSTIMER(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeAbs);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventScheduleAbsOSTimer(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeAbs) {
|
||||
@@ -636,14 +695,13 @@ static inline NV_STATUS tmrEventScheduleAbsOSTimer(struct OBJTMR *pTmr, PTMR_EVE
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#else //__nvoc_objtmr_h_disabled
|
||||
#define tmrEventScheduleAbsOSTimer(pTmr, pEvent, timeAbs) tmrEventScheduleAbsOSTimer_46f6a7(pTmr, pEvent, timeAbs)
|
||||
#define tmrEventScheduleAbsOSTimer(pTmr, pEvent, timeAbs) tmrEventScheduleAbsOSTimer_OSTIMER(pTmr, pEvent, timeAbs)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
#define tmrEventScheduleAbsOSTimer_HAL(pTmr, pEvent, timeAbs) tmrEventScheduleAbsOSTimer(pTmr, pEvent, timeAbs)
|
||||
|
||||
static inline NV_STATUS tmrEventServiceOSTimerCallback_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
NV_STATUS tmrEventServiceOSTimerCallback_OSTIMER(OBJGPU *pGpu, struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventServiceOSTimerCallback(OBJGPU *pGpu, struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
@@ -651,14 +709,13 @@ static inline NV_STATUS tmrEventServiceOSTimerCallback(OBJGPU *pGpu, struct OBJT
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#else //__nvoc_objtmr_h_disabled
|
||||
#define tmrEventServiceOSTimerCallback(pGpu, pTmr, pEvent) tmrEventServiceOSTimerCallback_46f6a7(pGpu, pTmr, pEvent)
|
||||
#define tmrEventServiceOSTimerCallback(pGpu, pTmr, pEvent) tmrEventServiceOSTimerCallback_OSTIMER(pGpu, pTmr, pEvent)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
#define tmrEventServiceOSTimerCallback_HAL(pGpu, pTmr, pEvent) tmrEventServiceOSTimerCallback(pGpu, pTmr, pEvent)
|
||||
|
||||
static inline NV_STATUS tmrEventCancelOSTimer_46f6a7(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
NV_STATUS tmrEventCancelOSTimer_OSTIMER(struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventCancelOSTimer(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
@@ -666,14 +723,13 @@ static inline NV_STATUS tmrEventCancelOSTimer(struct OBJTMR *pTmr, PTMR_EVENT pE
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#else //__nvoc_objtmr_h_disabled
|
||||
#define tmrEventCancelOSTimer(pTmr, pEvent) tmrEventCancelOSTimer_46f6a7(pTmr, pEvent)
|
||||
#define tmrEventCancelOSTimer(pTmr, pEvent) tmrEventCancelOSTimer_OSTIMER(pTmr, pEvent)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
#define tmrEventCancelOSTimer_HAL(pTmr, pEvent) tmrEventCancelOSTimer(pTmr, pEvent)
|
||||
|
||||
static inline NV_STATUS tmrEventDestroyOSTimer_46f6a7(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
NV_STATUS tmrEventDestroyOSTimer_OSTIMER(struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventDestroyOSTimer(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
@@ -681,14 +737,14 @@ static inline NV_STATUS tmrEventDestroyOSTimer(struct OBJTMR *pTmr, PTMR_EVENT p
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
#else //__nvoc_objtmr_h_disabled
|
||||
#define tmrEventDestroyOSTimer(pTmr, pEvent) tmrEventDestroyOSTimer_46f6a7(pTmr, pEvent)
|
||||
#define tmrEventDestroyOSTimer(pTmr, pEvent) tmrEventDestroyOSTimer_OSTIMER(pTmr, pEvent)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
#define tmrEventDestroyOSTimer_HAL(pTmr, pEvent) tmrEventDestroyOSTimer(pTmr, pEvent)
|
||||
|
||||
void tmrRegisterIntrService_IMPL(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceRecord pRecords[155]);
|
||||
void tmrRegisterIntrService_IMPL(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceRecord pRecords[163]);
|
||||
|
||||
static inline void tmrRegisterIntrService_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceRecord pRecords[155]) {
|
||||
static inline void tmrRegisterIntrService_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceRecord pRecords[163]) {
|
||||
pTmr->__tmrRegisterIntrService__(pGpu, pTmr, pRecords);
|
||||
}
|
||||
|
||||
@@ -706,10 +762,6 @@ NvU32 tmrServiceInterrupt_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceSe
|
||||
|
||||
NvU32 tmrServiceInterrupt_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceServiceInterruptArguments *pParams);
|
||||
|
||||
static inline NvU32 tmrServiceInterrupt_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceServiceInterruptArguments *pParams) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
static inline NvU32 tmrServiceInterrupt_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr, IntrServiceServiceInterruptArguments *pParams) {
|
||||
return pTmr->__tmrServiceInterrupt__(pGpu, pTmr, pParams);
|
||||
}
|
||||
@@ -750,26 +802,14 @@ static inline void tmrStateDestroy_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
pTmr->__tmrStateDestroy__(pGpu, pTmr);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrSetCurrentTime_56cd7a(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS tmrSetCurrentTime_GV100(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
NV_STATUS tmrSetCurrentTime_GH100(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
static inline NV_STATUS tmrSetCurrentTime_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrSetCurrentTime_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return pTmr->__tmrSetCurrentTime__(pGpu, pTmr);
|
||||
}
|
||||
|
||||
static inline NvU64 tmrGetTimeEx_fa6bbe(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
return osGetTimestamp();
|
||||
}
|
||||
|
||||
NvU64 tmrGetTimeEx_GM107(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
|
||||
NvU64 tmrGetTimeEx_GH100(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0);
|
||||
@@ -784,10 +824,6 @@ static inline NV_STATUS tmrSetCountdownIntrDisable_56cd7a(OBJGPU *pGpu, struct O
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrSetCountdownIntrDisable_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrSetCountdownIntrDisable_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
return pTmr->__tmrSetCountdownIntrDisable__(pGpu, pTmr);
|
||||
}
|
||||
@@ -796,10 +832,6 @@ NV_STATUS tmrSetCountdown_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 arg0, N
|
||||
|
||||
NV_STATUS tmrSetCountdown_GH100(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 arg0, NvU32 arg1, struct THREAD_STATE_NODE *arg2);
|
||||
|
||||
static inline NV_STATUS tmrSetCountdown_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 arg0, NvU32 arg1, struct THREAD_STATE_NODE *arg2) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrSetCountdown_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 arg0, NvU32 arg1, struct THREAD_STATE_NODE *arg2) {
|
||||
return pTmr->__tmrSetCountdown__(pGpu, pTmr, arg0, arg1, arg2);
|
||||
}
|
||||
@@ -818,54 +850,16 @@ NV_STATUS tmrGetGpuPtimerOffset_TU102(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *
|
||||
|
||||
NV_STATUS tmrGetGpuPtimerOffset_GA100(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *arg0, NvU32 *arg1);
|
||||
|
||||
static inline NV_STATUS tmrGetGpuPtimerOffset_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *arg0, NvU32 *arg1) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrGetGpuPtimerOffset_5baef9(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *arg0, NvU32 *arg1) {
|
||||
NV_ASSERT_OR_RETURN_PRECOMP(0, NV_ERR_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrGetGpuPtimerOffset_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 *arg0, NvU32 *arg1) {
|
||||
return pTmr->__tmrGetGpuPtimerOffset__(pGpu, pTmr, arg0, arg1);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrGetPhysicalIntrVectors_46f6a7(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 maxIntrs, NvU32 *pIntrs, NvU32 *pMcEngineIdxs, NvU32 *pCount) {
|
||||
return NV_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
NV_STATUS tmrGetPhysicalIntrVectors_GH100(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 maxIntrs, NvU32 *pIntrs, NvU32 *pMcEngineIdxs, NvU32 *pCount);
|
||||
|
||||
static inline NV_STATUS tmrGetPhysicalIntrVectors_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU32 maxIntrs, NvU32 *pIntrs, NvU32 *pMcEngineIdxs, NvU32 *pCount) {
|
||||
return pTmr->__tmrGetPhysicalIntrVectors__(pGpu, pTmr, maxIntrs, pIntrs, pMcEngineIdxs, pCount);
|
||||
}
|
||||
|
||||
static inline void tmrFreeTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunableState) {
|
||||
pEngstate->__tmrFreeTunableState__(pGpu, pEngstate, pTunableState);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrCompareTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunables1, void *pTunables2) {
|
||||
return pEngstate->__tmrCompareTunableState__(pGpu, pEngstate, pTunables1, pTunables2);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrGetNotificationIntrVector_DISPATCH(struct OBJGPU *pGpu, struct OBJTMR *pIntrable, NvU32 *pIntrVector) {
|
||||
return pIntrable->__tmrGetNotificationIntrVector__(pGpu, pIntrable, pIntrVector);
|
||||
}
|
||||
|
||||
static inline NvBool tmrIsPresent_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate) {
|
||||
return pEngstate->__tmrIsPresent__(pGpu, pEngstate);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrReconcileTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunableState) {
|
||||
return pEngstate->__tmrReconcileTunableState__(pGpu, pEngstate, pTunableState);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrGetKernelIntrVectors_DISPATCH(struct OBJGPU *pGpu, struct OBJTMR *pIntrable, NvU32 maxIntrs, NvU32 *pIntrs, NvU32 *pMcEngineIdxs, NvU32 *pCount) {
|
||||
return pIntrable->__tmrGetKernelIntrVectors__(pGpu, pIntrable, maxIntrs, pIntrs, pMcEngineIdxs, pCount);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrSetNotificationIntrVector_DISPATCH(struct OBJGPU *pGpu, struct OBJTMR *pIntrable, NvU32 intrVector) {
|
||||
return pIntrable->__tmrSetNotificationIntrVector__(pGpu, pIntrable, intrVector);
|
||||
static inline NV_STATUS tmrServiceNotificationInterrupt_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pIntrService, IntrServiceServiceNotificationInterruptArguments *pParams) {
|
||||
return pIntrService->__tmrServiceNotificationInterrupt__(pGpu, pIntrService, pParams);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrStatePreLoad_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, NvU32 arg0) {
|
||||
@@ -880,10 +874,6 @@ static inline NV_STATUS tmrStatePreUnload_DISPATCH(POBJGPU pGpu, struct OBJTMR *
|
||||
return pEngstate->__tmrStatePreUnload__(pGpu, pEngstate, arg0);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrGetTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunableState) {
|
||||
return pEngstate->__tmrGetTunableState__(pGpu, pEngstate, pTunableState);
|
||||
}
|
||||
|
||||
static inline void tmrInitMissing_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate) {
|
||||
pEngstate->__tmrInitMissing__(pGpu, pEngstate);
|
||||
}
|
||||
@@ -896,8 +886,16 @@ static inline NV_STATUS tmrStatePreInitUnlocked_DISPATCH(POBJGPU pGpu, struct OB
|
||||
return pEngstate->__tmrStatePreInitUnlocked__(pGpu, pEngstate);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrServiceNotificationInterrupt_DISPATCH(OBJGPU *pGpu, struct OBJTMR *pIntrService, IntrServiceServiceNotificationInterruptArguments *pParams) {
|
||||
return pIntrService->__tmrServiceNotificationInterrupt__(pGpu, pIntrService, pParams);
|
||||
static inline NV_STATUS tmrGetTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunableState) {
|
||||
return pEngstate->__tmrGetTunableState__(pGpu, pEngstate, pTunableState);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrCompareTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunables1, void *pTunables2) {
|
||||
return pEngstate->__tmrCompareTunableState__(pGpu, pEngstate, pTunables1, pTunables2);
|
||||
}
|
||||
|
||||
static inline void tmrFreeTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, void *pTunableState) {
|
||||
pEngstate->__tmrFreeTunableState__(pGpu, pEngstate, pTunableState);
|
||||
}
|
||||
|
||||
static inline NV_STATUS tmrStatePostLoad_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate, NvU32 arg0) {
|
||||
@@ -912,6 +910,10 @@ static inline NV_STATUS tmrSetTunableState_DISPATCH(POBJGPU pGpu, struct OBJTMR
|
||||
return pEngstate->__tmrSetTunableState__(pGpu, pEngstate, pTunableState);
|
||||
}
|
||||
|
||||
static inline NvBool tmrIsPresent_DISPATCH(POBJGPU pGpu, struct OBJTMR *pEngstate) {
|
||||
return pEngstate->__tmrIsPresent__(pGpu, pEngstate);
|
||||
}
|
||||
|
||||
static inline NvBool tmrServiceSwrlCallbacksPmcTree(OBJGPU *pGpu, struct OBJTMR *pTmr, struct THREAD_STATE_NODE *arg0) {
|
||||
return ((NvBool)(0 != 0));
|
||||
}
|
||||
@@ -929,8 +931,10 @@ static inline NvBool tmrServiceSwrlWrapper(OBJGPU *pGpu, struct OBJTMR *pTmr, MC
|
||||
}
|
||||
|
||||
void tmrDestruct_IMPL(struct OBJTMR *pTmr);
|
||||
|
||||
#define __nvoc_tmrDestruct(pTmr) tmrDestruct_IMPL(pTmr)
|
||||
NV_STATUS tmrEventCreate_IMPL(struct OBJTMR *pTmr, PTMR_EVENT *ppEvent, TIMEPROC callbackFn, void *pUserData, NvU32 flags);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventCreate(struct OBJTMR *pTmr, PTMR_EVENT *ppEvent, TIMEPROC callbackFn, void *pUserData, NvU32 flags) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -941,6 +945,7 @@ static inline NV_STATUS tmrEventCreate(struct OBJTMR *pTmr, PTMR_EVENT *ppEvent,
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrEventCancel_IMPL(struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrEventCancel(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -950,6 +955,7 @@ static inline void tmrEventCancel(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrEventDestroy_IMPL(struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrEventDestroy(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -959,6 +965,7 @@ static inline void tmrEventDestroy(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrInitCallbacks_IMPL(struct OBJTMR *pTmr);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrInitCallbacks(struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -968,6 +975,7 @@ static inline void tmrInitCallbacks(struct OBJTMR *pTmr) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrSetCountdownCallback_IMPL(struct OBJTMR *pTmr, TIMEPROC_COUNTDOWN arg0);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrSetCountdownCallback(struct OBJTMR *pTmr, TIMEPROC_COUNTDOWN arg0) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -977,6 +985,7 @@ static inline void tmrSetCountdownCallback(struct OBJTMR *pTmr, TIMEPROC_COUNTDO
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrCancelCallback_IMPL(struct OBJTMR *pTmr, void *pObject);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrCancelCallback(struct OBJTMR *pTmr, void *pObject) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -987,6 +996,7 @@ static inline NV_STATUS tmrCancelCallback(struct OBJTMR *pTmr, void *pObject) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrGetCurrentDiffTime_IMPL(struct OBJTMR *pTmr, NvU64 arg0, NvU64 *arg1);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrGetCurrentDiffTime(struct OBJTMR *pTmr, NvU64 arg0, NvU64 *arg1) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -997,6 +1007,7 @@ static inline NV_STATUS tmrGetCurrentDiffTime(struct OBJTMR *pTmr, NvU64 arg0, N
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrGetSystemTime_IMPL(struct OBJTMR *pTmr, PDAYMSECTIME pTime);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrGetSystemTime(struct OBJTMR *pTmr, PDAYMSECTIME pTime) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1006,6 +1017,7 @@ static inline void tmrGetSystemTime(struct OBJTMR *pTmr, PDAYMSECTIME pTime) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NvBool tmrCheckCallbacksReleaseSem_IMPL(struct OBJTMR *pTmr, NvU32 chId);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrCheckCallbacksReleaseSem(struct OBJTMR *pTmr, NvU32 chId) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1016,6 +1028,7 @@ static inline NvBool tmrCheckCallbacksReleaseSem(struct OBJTMR *pTmr, NvU32 chId
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NvBool tmrDiffExceedsTime_IMPL(struct OBJTMR *pTmr, PDAYMSECTIME pFutureTime, PDAYMSECTIME pPastTime, NvU32 time);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrDiffExceedsTime(struct OBJTMR *pTmr, PDAYMSECTIME pFutureTime, PDAYMSECTIME pPastTime, NvU32 time) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1026,6 +1039,7 @@ static inline NvBool tmrDiffExceedsTime(struct OBJTMR *pTmr, PDAYMSECTIME pFutur
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrEventScheduleAbs_IMPL(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeAbs);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventScheduleAbs(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeAbs) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1036,6 +1050,7 @@ static inline NV_STATUS tmrEventScheduleAbs(struct OBJTMR *pTmr, PTMR_EVENT pEve
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrScheduleCallbackAbs_IMPL(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1, NvU64 arg2, NvU32 arg3, NvU32 arg4);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrScheduleCallbackAbs(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1, NvU64 arg2, NvU32 arg3, NvU32 arg4) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1046,6 +1061,7 @@ static inline NV_STATUS tmrScheduleCallbackAbs(struct OBJTMR *pTmr, TIMEPROC_OBS
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrEventScheduleRel_IMPL(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeRel);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrEventScheduleRel(struct OBJTMR *pTmr, PTMR_EVENT pEvent, NvU64 timeRel) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1056,6 +1072,7 @@ static inline NV_STATUS tmrEventScheduleRel(struct OBJTMR *pTmr, PTMR_EVENT pEve
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrScheduleCallbackRel_IMPL(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1, NvU64 arg2, NvU32 arg3, NvU32 arg4);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrScheduleCallbackRel(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1, NvU64 arg2, NvU32 arg3, NvU32 arg4) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1066,6 +1083,7 @@ static inline NV_STATUS tmrScheduleCallbackRel(struct OBJTMR *pTmr, TIMEPROC_OBS
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrScheduleCallbackRelSec_IMPL(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1, NvU32 arg2, NvU32 arg3, NvU32 arg4);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrScheduleCallbackRelSec(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1, NvU32 arg2, NvU32 arg3, NvU32 arg4) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1076,6 +1094,7 @@ static inline NV_STATUS tmrScheduleCallbackRelSec(struct OBJTMR *pTmr, TIMEPROC_
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NvBool tmrEventOnList_IMPL(struct OBJTMR *pTmr, PTMR_EVENT pEvent);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrEventOnList(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1086,6 +1105,7 @@ static inline NvBool tmrEventOnList(struct OBJTMR *pTmr, PTMR_EVENT pEvent) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NvBool tmrCallbackOnList_IMPL(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrCallbackOnList(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE arg0, void *arg1) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1096,6 +1116,7 @@ static inline NvBool tmrCallbackOnList(struct OBJTMR *pTmr, TIMEPROC_OBSOLETE ar
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrRmCallbackIntrEnable_IMPL(struct OBJTMR *pTmr, OBJGPU *pGpu);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrRmCallbackIntrEnable(struct OBJTMR *pTmr, OBJGPU *pGpu) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1105,6 +1126,7 @@ static inline void tmrRmCallbackIntrEnable(struct OBJTMR *pTmr, OBJGPU *pGpu) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrRmCallbackIntrDisable_IMPL(struct OBJTMR *pTmr, OBJGPU *pGpu);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrRmCallbackIntrDisable(struct OBJTMR *pTmr, OBJGPU *pGpu) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1114,6 +1136,7 @@ static inline void tmrRmCallbackIntrDisable(struct OBJTMR *pTmr, OBJGPU *pGpu) {
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NV_STATUS tmrTimeUntilNextCallback_IMPL(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 *pTimeUntilCallbackNs);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NV_STATUS tmrTimeUntilNextCallback(OBJGPU *pGpu, struct OBJTMR *pTmr, NvU64 *pTimeUntilCallbackNs) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1124,6 +1147,7 @@ static inline NV_STATUS tmrTimeUntilNextCallback(OBJGPU *pGpu, struct OBJTMR *pT
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NvBool tmrCallExpiredCallbacks_IMPL(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrCallExpiredCallbacks(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1134,6 +1158,7 @@ static inline NvBool tmrCallExpiredCallbacks(OBJGPU *pGpu, struct OBJTMR *pTmr)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
void tmrResetCallbackInterrupt_IMPL(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline void tmrResetCallbackInterrupt(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1143,6 +1168,7 @@ static inline void tmrResetCallbackInterrupt(OBJGPU *pGpu, struct OBJTMR *pTmr)
|
||||
#endif //__nvoc_objtmr_h_disabled
|
||||
|
||||
NvBool tmrGetCallbackInterruptPending_IMPL(OBJGPU *pGpu, struct OBJTMR *pTmr);
|
||||
|
||||
#ifdef __nvoc_objtmr_h_disabled
|
||||
static inline NvBool tmrGetCallbackInterruptPending(OBJGPU *pGpu, struct OBJTMR *pTmr) {
|
||||
NV_ASSERT_FAILED_PRECOMP("OBJTMR was disabled!");
|
||||
@@ -1160,8 +1186,6 @@ NV_STATUS tmrCtrlCmdEventSchedule(OBJGPU *pGpu, TMR_EVENT_SCHEDULE_PARAMS *pPara
|
||||
NV_STATUS tmrCtrlCmdEventCancel(OBJGPU *pGpu, TMR_EVENT_GENERAL_PARAMS *pParams);
|
||||
NV_STATUS tmrCtrlCmdEventDestroy(OBJGPU *pGpu, TMR_EVENT_GENERAL_PARAMS *pParams);
|
||||
|
||||
NV_STATUS tmrDelay_OSTIMER(struct OBJTMR *pTmr, NvU32 nsec);
|
||||
|
||||
#endif // _OBJTMR_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user