From 1f6cb4f3cbf7ae615d12c1dd66136347247ab7a6 Mon Sep 17 00:00:00 2001 From: Glenn Anderson Date: Fri, 14 Aug 2015 23:27:02 -0400 Subject: Initial commit. Added headers from psp2sdk. --- include/user/kernel/processmgr.h | 80 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 include/user/kernel/processmgr.h (limited to 'include/user/kernel/processmgr.h') diff --git a/include/user/kernel/processmgr.h b/include/user/kernel/processmgr.h new file mode 100644 index 0000000..e5e2a12 --- /dev/null +++ b/include/user/kernel/processmgr.h @@ -0,0 +1,80 @@ +#ifndef _PSP2_KERNEL_PROCESSMGR_H_ +#define _PSP2_KERNEL_PROCESSMGR_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +enum { + PSP2_KERNEL_PROCESS_PRIORITY_SYSTEM_HIGH = 32, + PSP2_KERNEL_PROCESS_PRIORITY_SYSTEM_DEFAULT = 96, + PSP2_KERNEL_PROCESS_PRIORITY_SYSTEM_LOW = 159 +}; + +enum { + PSP2_KERNEL_PROCESS_PRIORITY_USER_HIGH = 64, + PSP2_KERNEL_PROCESS_PRIORITY_USER_DEFAULT = 96, + PSP2_KERNEL_PROCESS_PRIORITY_USER_LOW = 127 +}; + +enum { + /** Cancel all timers */ + PSP2_KERNEL_POWER_TICK_DEFAULT = 0, + /** Cancel automatic suspension timer */ + PSP2_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND = 1, + /** Cancel OLED-off timer */ + PSP2_KERNEL_POWER_TICK_DISABLE_OLED_OFF = 4, + /** Cancel OLED dimming timer */ + PSP2_KERNEL_POWER_TICK_DISABLE_OLED_DIMMING = 6 +}; + +/*** + * Exit current Process with specified return code + * + * @param[in] res - Exit code to return + * + * @return 0 on success, < 0 on error. + * @note - If NULL is provided as FrameBuf pointer, output is blacked out. +*/ +int sceKernelExitProcess(int res); + +/*** + * Cancel specified idle timers to prevent entering in power save processing. + * + * @param[in] type - One of ::KernelPowerTickType + * + * @return 0 +*/ +int sceKernelPowerTick(int type); + +/*** + * Get the process time of the current process. + * + * @param[out] type - Pointer to a ::SceKernelSysClock structure which will receive the process time. + * + * @return 0 on success, < 0 on error. +*/ +int sceKernelGetProcessTime(SceKernelSysClock *pSysClock); + +/*** + * Get the lower 32 bits part of process time of the current process. + * + * @return process time of the current process +*/ +SceUInt32 sceKernelGetProcessTimeLow(void); + +/*** + * Get the process time of the current process. + * + * @return process time of the current process +*/ +SceUInt64 sceKernelGetProcessTimeWide(void); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERNEL_PROCESSMGR_H_ */ -- cgit v1.2.3