1 // Copyright (c) 2012- PPSSPP Project. 2 3 // This program is free software: you can redistribute it and/or modify 4 // it under the terms of the GNU General Public License as published by 5 // the Free Software Foundation, version 2.0 or later versions. 6 7 // This program is distributed in the hope that it will be useful, 8 // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 // GNU General Public License 2.0 for more details. 11 12 // A copy of the GPL 2.0 should have been included with the program. 13 // If not, see http://www.gnu.org/licenses/ 14 15 // Official git repository and contact information can be found at 16 // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. 17 18 #pragma once 19 20 u32 sceKernelCreateVTimer(const char *name, u32 optParamAddr); 21 u32 sceKernelDeleteVTimer(SceUID uid); 22 u32 sceKernelStartVTimer(SceUID uid); 23 u32 sceKernelStopVTimer(SceUID uid); 24 u32 sceKernelSetVTimerHandler(SceUID uid, u32 scheduleAddr, u32 handlerFuncAddr, u32 commonAddr); 25 u32 sceKernelSetVTimerHandlerWide(SceUID uid, u64 schedule, u32 handlerFuncAddr, u32 commonAddr); 26 u32 sceKernelCancelVTimerHandler(SceUID uid); 27 u32 sceKernelReferVTimerStatus(SceUID uid, u32 statusAddr); 28 u32 sceKernelGetVTimerBase(SceUID uid, u32 baseClockAddr); //SceKernelSysClock 29 u64 sceKernelGetVTimerBaseWide(SceUID uid); 30 u32 sceKernelGetVTimerTime(SceUID uid, u32 timeClockAddr); 31 u64 sceKernelGetVTimerTimeWide(SceUID uid); 32 u32 sceKernelSetVTimerTime(SceUID uid, u32 timeClockAddr); 33 u64 sceKernelSetVTimerTimeWide(SceUID uid, u64 timeClock); 34 35 void _sceKernelReturnFromTimerHandler(); 36 37 void __KernelVTimerInit(); 38 void __KernelVTimerDoState(PointerWrap &p); 39 KernelObject *__KernelVTimerObject(); 40