PVRSRV_ERROR PVRGpuTraceInit(void) { return PVRDebugFSCreateEntry("gpu_tracing_on", NULL, &gsGpuTracingReadOps, (PVRSRV_ENTRY_WRITE_FUNC *)GpuTracingSet, NULL, &gpsPVRDebugFSGpuTracingOnEntry); }
PVRSRV_ERROR LinuxBridgeInit(IMG_VOID) { PVRSRV_ERROR eError; #if defined(DEBUG_BRIDGE_KM) IMG_INT iResult; iResult = PVRDebugFSCreateEntry("bridge_stats", NULL, &gsBridgeStatsReadOps, NULL, &g_BridgeDispatchTable[0], &gpsPVRDebugFSBridgeStatsEntry); if (iResult != 0) { return PVRSRV_ERROR_OUT_OF_MEMORY; } #endif eError = RegisterSRVCOREFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterSYNCFunctions(); if (eError != PVRSRV_OK) { return eError; } #if defined(SUPPORT_INSECURE_EXPORT) eError = RegisterSYNCEXPORTFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif #if defined(SUPPORT_SECURE_EXPORT) eError = RegisterSYNCSEXPORTFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif eError = RegisterPDUMPFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterMMFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterCMMFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterPDUMPMMFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterPDUMPCMMFunctions(); if (eError != PVRSRV_OK) { return eError; } #if defined(SUPPORT_PMMIF) eError = RegisterPMMIFFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif #if defined(SUPPORT_ION) eError = RegisterIONFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif #if defined(SUPPORT_DISPLAY_CLASS) eError = RegisterDCFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif #if (CACHEFLUSH_TYPE == CACHEFLUSH_GENERIC) eError = RegisterCACHEGENERICFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif #if defined(SUPPORT_SECURE_EXPORT) eError = RegisterSMMFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif eError = RegisterPVRTLFunctions(); if (eError != PVRSRV_OK) { return eError; } #if defined(PVR_RI_DEBUG) eError = RegisterRIFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif #if defined (SUPPORT_RGX) eError = RegisterRGXTQFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterRGXCMPFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterRGXINITFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterRGXTA3DFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterBREAKPOINTFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterDEBUGMISCFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterRGXPDUMPFunctions(); if (eError != PVRSRV_OK) { return eError; } eError = RegisterRGXHWPERFFunctions(); if (eError != PVRSRV_OK) { return eError; } #if defined(RGX_FEATURE_RAY_TRACING) eError = RegisterRGXRAYFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif /* RGX_FEATURE_RAY_TRACING */ eError = RegisterREGCONFIGFunctions(); if (eError != PVRSRV_OK) { return eError; } #endif /* SUPPORT_RGX */ return eError; }