Files
2026-01-24 16:40:36 +02:00

267 lines
12 KiB
C++

// SPDX-FileCopyrightText: Copyright 2024-2026 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "common/types.h"
namespace Core::Loader {
class SymbolsResolver;
}
namespace Libraries::GnmDriver {
s32 PS4_SYSV_ABI sceGnmAddEqEvent();
s32 PS4_SYSV_ABI sceGnmAreSubmitsAllowed();
s32 PS4_SYSV_ABI sceGnmBeginWorkload();
s32 PS4_SYSV_ABI sceGnmComputeWaitOnAddress();
s32 PS4_SYSV_ABI sceGnmComputeWaitSemaphore();
s32 PS4_SYSV_ABI sceGnmCreateWorkloadStream();
s32 PS4_SYSV_ABI sceGnmDebuggerGetAddressWatch();
s32 PS4_SYSV_ABI sceGnmDebuggerHaltWavefront();
s32 PS4_SYSV_ABI sceGnmDebuggerReadGds();
s32 PS4_SYSV_ABI sceGnmDebuggerReadSqIndirectRegister();
s32 PS4_SYSV_ABI sceGnmDebuggerResumeWavefront();
s32 PS4_SYSV_ABI sceGnmDebuggerResumeWavefrontCreation();
s32 PS4_SYSV_ABI sceGnmDebuggerSetAddressWatch();
s32 PS4_SYSV_ABI sceGnmDebuggerWriteGds();
s32 PS4_SYSV_ABI sceGnmDebuggerWriteSqIndirectRegister();
s32 PS4_SYSV_ABI sceGnmDebugHardwareStatus();
s32 PS4_SYSV_ABI sceGnmDeleteEqEvent();
s32 PS4_SYSV_ABI sceGnmDestroyWorkloadStream();
s32 PS4_SYSV_ABI sceGnmDingDong();
s32 PS4_SYSV_ABI sceGnmDingDongForWorkload();
s32 PS4_SYSV_ABI sceGnmDisableMipStatsReport();
s32 PS4_SYSV_ABI sceGnmDispatchDirect();
s32 PS4_SYSV_ABI sceGnmDispatchIndirect();
s32 PS4_SYSV_ABI sceGnmDispatchIndirectOnMec();
s32 PS4_SYSV_ABI sceGnmDispatchInitDefaultHardwareState();
s32 PS4_SYSV_ABI sceGnmDrawIndex();
s32 PS4_SYSV_ABI sceGnmDrawIndexAuto();
s32 PS4_SYSV_ABI sceGnmDrawIndexIndirect();
s32 PS4_SYSV_ABI sceGnmDrawIndexIndirectCountMulti();
s32 PS4_SYSV_ABI sceGnmDrawIndexIndirectMulti();
s32 PS4_SYSV_ABI sceGnmDrawIndexMultiInstanced();
s32 PS4_SYSV_ABI sceGnmDrawIndexOffset();
s32 PS4_SYSV_ABI sceGnmDrawIndirect();
s32 PS4_SYSV_ABI sceGnmDrawIndirectCountMulti();
s32 PS4_SYSV_ABI sceGnmDrawIndirectMulti();
s32 PS4_SYSV_ABI sceGnmDrawInitDefaultHardwareState();
s32 PS4_SYSV_ABI sceGnmDrawInitDefaultHardwareState175();
s32 PS4_SYSV_ABI sceGnmDrawInitDefaultHardwareState200();
s32 PS4_SYSV_ABI sceGnmDrawInitDefaultHardwareState350();
s32 PS4_SYSV_ABI sceGnmDrawInitToDefaultContextState();
s32 PS4_SYSV_ABI sceGnmDrawInitToDefaultContextState400();
s32 PS4_SYSV_ABI sceGnmDrawOpaqueAuto();
s32 PS4_SYSV_ABI sceGnmDriverCaptureInProgress();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterface();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterfaceForGpuDebugger();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterfaceForGpuException();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterfaceForHDRScopes();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterfaceForReplay();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterfaceForResourceRegistration();
s32 PS4_SYSV_ABI sceGnmDriverInternalRetrieveGnmInterfaceForValidation();
s32 PS4_SYSV_ABI sceGnmDriverInternalVirtualQuery();
s32 PS4_SYSV_ABI sceGnmDriverTraceInProgress();
s32 PS4_SYSV_ABI sceGnmDriverTriggerCapture();
s32 PS4_SYSV_ABI sceGnmEndWorkload();
s32 PS4_SYSV_ABI sceGnmFindResourcesPublic();
s32 PS4_SYSV_ABI sceGnmFlushGarlic();
s32 PS4_SYSV_ABI sceGnmGetCoredumpAddress();
s32 PS4_SYSV_ABI sceGnmGetCoredumpMode();
s32 PS4_SYSV_ABI sceGnmGetCoredumpProtectionFaultTimestamp();
s32 PS4_SYSV_ABI sceGnmGetDbgGcHandle();
s32 PS4_SYSV_ABI sceGnmGetDebugTimestamp();
s32 PS4_SYSV_ABI sceGnmGetEqEventType();
s32 PS4_SYSV_ABI sceGnmGetEqTimeStamp();
s32 PS4_SYSV_ABI sceGnmGetGpuBlockStatus();
s32 PS4_SYSV_ABI sceGnmGetGpuCoreClockFrequency();
s32 PS4_SYSV_ABI sceGnmGetGpuInfoStatus();
s32 PS4_SYSV_ABI sceGnmGetLastWaitedAddress();
s32 PS4_SYSV_ABI sceGnmGetNumTcaUnits();
s32 PS4_SYSV_ABI sceGnmGetOffChipTessellationBufferSize();
s32 PS4_SYSV_ABI sceGnmGetOwnerName();
s32 PS4_SYSV_ABI sceGnmGetPhysicalCounterFromVirtualized();
s32 PS4_SYSV_ABI sceGnmGetProtectionFaultTimeStamp();
s32 PS4_SYSV_ABI sceGnmGetResourceBaseAddressAndSizeInBytes();
s32 PS4_SYSV_ABI sceGnmGetResourceName();
s32 PS4_SYSV_ABI sceGnmGetResourceShaderGuid();
s32 PS4_SYSV_ABI sceGnmGetResourceType();
s32 PS4_SYSV_ABI sceGnmGetResourceUserData();
s32 PS4_SYSV_ABI sceGnmGetShaderProgramBaseAddress();
s32 PS4_SYSV_ABI sceGnmGetShaderStatus();
s32 PS4_SYSV_ABI sceGnmGetTheTessellationFactorRingBufferBaseAddress();
s32 PS4_SYSV_ABI sceGnmGpuPaDebugEnter();
s32 PS4_SYSV_ABI sceGnmGpuPaDebugLeave();
s32 PS4_SYSV_ABI sceGnmInsertDingDongMarker();
s32 PS4_SYSV_ABI sceGnmInsertPopMarker();
s32 PS4_SYSV_ABI sceGnmInsertPushColorMarker();
s32 PS4_SYSV_ABI sceGnmInsertPushMarker();
s32 PS4_SYSV_ABI sceGnmInsertSetColorMarker();
s32 PS4_SYSV_ABI sceGnmInsertSetMarker();
s32 PS4_SYSV_ABI sceGnmInsertThreadTraceMarker();
s32 PS4_SYSV_ABI sceGnmInsertWaitFlipDone();
s32 PS4_SYSV_ABI sceGnmIsCoredumpValid();
s32 PS4_SYSV_ABI sceGnmIsUserPaEnabled();
s32 PS4_SYSV_ABI sceGnmLogicalCuIndexToPhysicalCuIndex();
s32 PS4_SYSV_ABI sceGnmLogicalCuMaskToPhysicalCuMask();
s32 PS4_SYSV_ABI sceGnmLogicalTcaUnitToPhysical();
s32 PS4_SYSV_ABI sceGnmMapComputeQueue();
s32 PS4_SYSV_ABI sceGnmMapComputeQueueWithPriority();
s32 PS4_SYSV_ABI sceGnmPaDisableFlipCallbacks();
s32 PS4_SYSV_ABI sceGnmPaEnableFlipCallbacks();
s32 PS4_SYSV_ABI sceGnmPaHeartbeat();
s32 PS4_SYSV_ABI sceGnmQueryResourceRegistrationUserMemoryRequirements();
s32 PS4_SYSV_ABI sceGnmRaiseUserExceptionEvent();
s32 PS4_SYSV_ABI sceGnmRegisterGdsResource();
s32 PS4_SYSV_ABI sceGnmRegisterGnmLiveCallbackConfig();
s32 PS4_SYSV_ABI sceGnmRegisterOwner();
s32 PS4_SYSV_ABI sceGnmRegisterResource();
s32 PS4_SYSV_ABI sceGnmRequestFlipAndSubmitDone();
s32 PS4_SYSV_ABI sceGnmRequestFlipAndSubmitDoneForWorkload();
s32 PS4_SYSV_ABI sceGnmRequestMipStatsReportAndReset();
s32 PS4_SYSV_ABI sceGnmResetVgtControl();
s32 PS4_SYSV_ABI sceGnmSdmaClose();
s32 PS4_SYSV_ABI sceGnmSdmaConstFill();
s32 PS4_SYSV_ABI sceGnmSdmaCopyLinear();
s32 PS4_SYSV_ABI sceGnmSdmaCopyTiled();
s32 PS4_SYSV_ABI sceGnmSdmaCopyWindow();
s32 PS4_SYSV_ABI sceGnmSdmaFlush();
s32 PS4_SYSV_ABI sceGnmSdmaGetMinCmdSize();
s32 PS4_SYSV_ABI sceGnmSdmaOpen();
s32 PS4_SYSV_ABI sceGnmSetCsShader();
s32 PS4_SYSV_ABI sceGnmSetCsShaderWithModifier();
s32 PS4_SYSV_ABI sceGnmSetEmbeddedPsShader();
s32 PS4_SYSV_ABI sceGnmSetEmbeddedVsShader();
s32 PS4_SYSV_ABI sceGnmSetEsShader();
s32 PS4_SYSV_ABI sceGnmSetGsRingSizes();
s32 PS4_SYSV_ABI sceGnmSetGsShader();
s32 PS4_SYSV_ABI sceGnmSetHsShader();
s32 PS4_SYSV_ABI sceGnmSetLsShader();
s32 PS4_SYSV_ABI sceGnmSetPsShader();
s32 PS4_SYSV_ABI sceGnmSetPsShader350();
s32 PS4_SYSV_ABI sceGnmSetResourceRegistrationUserMemory();
s32 PS4_SYSV_ABI sceGnmSetResourceUserData();
s32 PS4_SYSV_ABI sceGnmSetSpiEnableSqCounters();
s32 PS4_SYSV_ABI sceGnmSetSpiEnableSqCountersForUnitInstance();
s32 PS4_SYSV_ABI sceGnmSetupMipStatsReport();
s32 PS4_SYSV_ABI sceGnmSetVgtControl();
s32 PS4_SYSV_ABI sceGnmSetVsShader();
s32 PS4_SYSV_ABI sceGnmSetWaveLimitMultiplier();
s32 PS4_SYSV_ABI sceGnmSetWaveLimitMultipliers();
s32 PS4_SYSV_ABI sceGnmSpmEndSpm();
s32 PS4_SYSV_ABI sceGnmSpmInit();
s32 PS4_SYSV_ABI sceGnmSpmInit2();
s32 PS4_SYSV_ABI sceGnmSpmSetDelay();
s32 PS4_SYSV_ABI sceGnmSpmSetMuxRam();
s32 PS4_SYSV_ABI sceGnmSpmSetMuxRam2();
s32 PS4_SYSV_ABI sceGnmSpmSetSelectCounter();
s32 PS4_SYSV_ABI sceGnmSpmSetSpmSelects();
s32 PS4_SYSV_ABI sceGnmSpmSetSpmSelects2();
s32 PS4_SYSV_ABI sceGnmSpmStartSpm();
s32 PS4_SYSV_ABI sceGnmSqttFini();
s32 PS4_SYSV_ABI sceGnmSqttFinishTrace();
s32 PS4_SYSV_ABI sceGnmSqttGetBcInfo();
s32 PS4_SYSV_ABI sceGnmSqttGetGpuClocks();
s32 PS4_SYSV_ABI sceGnmSqttGetHiWater();
s32 PS4_SYSV_ABI sceGnmSqttGetStatus();
s32 PS4_SYSV_ABI sceGnmSqttGetTraceCounter();
s32 PS4_SYSV_ABI sceGnmSqttGetTraceWptr();
s32 PS4_SYSV_ABI sceGnmSqttGetWrapCounts();
s32 PS4_SYSV_ABI sceGnmSqttGetWrapCounts2();
s32 PS4_SYSV_ABI sceGnmSqttGetWritebackLabels();
s32 PS4_SYSV_ABI sceGnmSqttInit();
s32 PS4_SYSV_ABI sceGnmSqttSelectMode();
s32 PS4_SYSV_ABI sceGnmSqttSelectTarget();
s32 PS4_SYSV_ABI sceGnmSqttSelectTokens();
s32 PS4_SYSV_ABI sceGnmSqttSetCuPerfMask();
s32 PS4_SYSV_ABI sceGnmSqttSetDceEventWrite();
s32 PS4_SYSV_ABI sceGnmSqttSetHiWater();
s32 PS4_SYSV_ABI sceGnmSqttSetTraceBuffer2();
s32 PS4_SYSV_ABI sceGnmSqttSetTraceBuffers();
s32 PS4_SYSV_ABI sceGnmSqttSetUserData();
s32 PS4_SYSV_ABI sceGnmSqttSetUserdataTimer();
s32 PS4_SYSV_ABI sceGnmSqttStartTrace();
s32 PS4_SYSV_ABI sceGnmSqttStopTrace();
s32 PS4_SYSV_ABI sceGnmSqttSwitchTraceBuffer();
s32 PS4_SYSV_ABI sceGnmSqttSwitchTraceBuffer2();
s32 PS4_SYSV_ABI sceGnmSqttWaitForEvent();
s32 PS4_SYSV_ABI sceGnmSubmitAndFlipCommandBuffers();
s32 PS4_SYSV_ABI sceGnmSubmitAndFlipCommandBuffersForWorkload();
s32 PS4_SYSV_ABI sceGnmSubmitCommandBuffers();
s32 PS4_SYSV_ABI sceGnmSubmitCommandBuffersForWorkload();
s32 PS4_SYSV_ABI sceGnmSubmitDone();
s32 PS4_SYSV_ABI sceGnmUnmapComputeQueue();
s32 PS4_SYSV_ABI sceGnmUnregisterAllResourcesForOwner();
s32 PS4_SYSV_ABI sceGnmUnregisterOwnerAndResources();
s32 PS4_SYSV_ABI sceGnmUnregisterResource();
s32 PS4_SYSV_ABI sceGnmUpdateGsShader();
s32 PS4_SYSV_ABI sceGnmUpdateHsShader();
s32 PS4_SYSV_ABI sceGnmUpdatePsShader();
s32 PS4_SYSV_ABI sceGnmUpdatePsShader350();
s32 PS4_SYSV_ABI sceGnmUpdateVsShader();
s32 PS4_SYSV_ABI sceGnmValidateCommandBuffers();
s32 PS4_SYSV_ABI sceGnmValidateDisableDiagnostics();
s32 PS4_SYSV_ABI sceGnmValidateDisableDiagnostics2();
s32 PS4_SYSV_ABI sceGnmValidateDispatchCommandBuffers();
s32 PS4_SYSV_ABI sceGnmValidateDrawCommandBuffers();
s32 PS4_SYSV_ABI sceGnmValidateGetDiagnosticInfo();
s32 PS4_SYSV_ABI sceGnmValidateGetDiagnostics();
s32 PS4_SYSV_ABI sceGnmValidateGetVersion();
s32 PS4_SYSV_ABI sceGnmValidateOnSubmitEnabled();
s32 PS4_SYSV_ABI sceGnmValidateResetState();
s32 PS4_SYSV_ABI sceGnmValidationRegisterMemoryCheckCallback();
s32 PS4_SYSV_ABI sceRazorCaptureCommandBuffersOnlyImmediate();
s32 PS4_SYSV_ABI sceRazorCaptureCommandBuffersOnlySinceLastFlip();
s32 PS4_SYSV_ABI sceRazorCaptureImmediate();
s32 PS4_SYSV_ABI sceRazorCaptureSinceLastFlip();
s32 PS4_SYSV_ABI sceRazorIsLoaded();
s32 PS4_SYSV_ABI Func_063D065A2D6359C3();
s32 PS4_SYSV_ABI Func_0CABACAFB258429D();
s32 PS4_SYSV_ABI Func_150CF336FC2E99A3();
s32 PS4_SYSV_ABI Func_17CA687F9EE52D49();
s32 PS4_SYSV_ABI Func_1870B89F759C6B45();
s32 PS4_SYSV_ABI Func_26F9029EF68A955E();
s32 PS4_SYSV_ABI Func_301E3DBBAB092DB0();
s32 PS4_SYSV_ABI Func_30BAFE172AF17FEF();
s32 PS4_SYSV_ABI Func_3E6A3E8203D95317();
s32 PS4_SYSV_ABI Func_40FEEF0C6534C434();
s32 PS4_SYSV_ABI Func_416B9079DE4CBACE();
s32 PS4_SYSV_ABI Func_4774D83BB4DDBF9A();
s32 PS4_SYSV_ABI Func_50678F1CCEEB9A00();
s32 PS4_SYSV_ABI Func_54A2EC5FA4C62413();
s32 PS4_SYSV_ABI Func_5A9C52C83138AE6B();
s32 PS4_SYSV_ABI Func_5D22193A31EA1142();
s32 PS4_SYSV_ABI Func_725A36DEBB60948D();
s32 PS4_SYSV_ABI Func_8021A502FA61B9BB();
s32 PS4_SYSV_ABI Func_9D002FE0FA40F0E6();
s32 PS4_SYSV_ABI Func_9D297F36A7028B71();
s32 PS4_SYSV_ABI Func_A2D7EC7A7BCF79B3();
s32 PS4_SYSV_ABI Func_AA12A3CB8990854A();
s32 PS4_SYSV_ABI Func_ADC8DDC005020BC6();
s32 PS4_SYSV_ABI Func_B0A8688B679CB42D();
s32 PS4_SYSV_ABI Func_B489020B5157A5FF();
s32 PS4_SYSV_ABI Func_BADE7B4C199140DD();
s32 PS4_SYSV_ABI Func_D1511B9DCFFB3DD9();
s32 PS4_SYSV_ABI Func_D53446649B02E58E();
s32 PS4_SYSV_ABI Func_D8B6E8E28E1EF0A3();
s32 PS4_SYSV_ABI Func_D93D733A19DD7454();
s32 PS4_SYSV_ABI Func_DE995443BC2A8317();
s32 PS4_SYSV_ABI Func_DF6E9528150C23FF();
s32 PS4_SYSV_ABI Func_ECB4C6BA41FE3350();
s32 PS4_SYSV_ABI sceGnmDebugModuleReset();
s32 PS4_SYSV_ABI sceGnmDebugReset();
s32 PS4_SYSV_ABI Func_C4C328B7CF3B4171();
s32 PS4_SYSV_ABI sceGnmDrawInitToDefaultContextStateInternalCommand();
s32 PS4_SYSV_ABI sceGnmDrawInitToDefaultContextStateInternalSize();
s32 PS4_SYSV_ABI sceGnmFindResources();
s32 PS4_SYSV_ABI sceGnmGetResourceRegistrationBuffers();
s32 PS4_SYSV_ABI sceGnmRegisterOwnerForSystem();
s32 PS4_SYSV_ABI Func_1C43886B16EE5530();
s32 PS4_SYSV_ABI Func_81037019ECCD0E01();
s32 PS4_SYSV_ABI Func_BFB41C057478F0BF();
s32 PS4_SYSV_ABI Func_E51D44DB8151238C();
s32 PS4_SYSV_ABI Func_F916890425496553();
void RegisterLib(Core::Loader::SymbolsResolver* sym);
} // namespace Libraries::GnmDriver