summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorReiko Asakura2021-03-12 17:09:12 -0500
committerReiko Asakura2021-03-12 17:09:12 -0500
commitdab89657fab838dacbd5c9dd7f4d2bc2098a52e3 (patch)
treec29580377ba0b394e57ae1abc5f90f7e57f90883 /include/kernel
parentRemove duplicate definitions in kernel/power.h (diff)
downloadvds-libraries-dab89657fab838dacbd5c9dd7f4d2bc2098a52e3.tar.gz
Merge common definitions in power.h
Diffstat (limited to 'include/kernel')
-rw-r--r--include/kernel/power.h149
1 files changed, 0 insertions, 149 deletions
diff --git a/include/kernel/power.h b/include/kernel/power.h
index 870191e..fe0a1d8 100644
--- a/include/kernel/power.h
+++ b/include/kernel/power.h
@@ -11,97 +11,9 @@
extern "C" {
#endif
-typedef enum ScePowerCallbackType {
- /** indicates the power button was pushed, putting the unit into suspend mode */
- SCE_POWER_CB_POWER_SWITCH = 0x80000000,
- /** indicates the unit has finish resuming from suspend mode */
- SCE_POWER_CB_RESUME_COMPLETE = 0x00040000,
- /** indicates the unit is resuming from suspend mode */
- SCE_POWER_CB_RESUMING = 0x00020000,
- /** indicates the unit is suspending, seems to occur due to inactivity */
- SCE_POWER_CB_SUSPENDING = 0x00010000,
-} ScePowerCallbackType;
-
/* Prototypes */
/**
- * Returns battery life percentage
- *
- * @return Battery life percentage
- */
-int scePowerGetBatteryLifePercent(void);
-
-/**
- * Check if a suspend is required
- *
- * @return SCE_TRUE if suspend is required, SCE_FALSE otherwise
- */
-SceBool scePowerIsSuspendRequired(void);
-
-/**
- * Returns battery life time
- *
- * @return Battery life time in seconds
- */
-int scePowerGetBatteryLifeTime(void);
-
-/**
- * Returns battery remaining capacity
- *
- * @return battery remaining capacity in mAh (milliampere hour)
- */
-int scePowerGetBatteryRemainCapacity(void);
-
-/**
- * Returns battery full capacity
- *
- * @return battery full capacity in mAh (milliampere hour)
- */
-int scePowerGetBatteryFullCapacity(void);
-
-/**
- * Returns battery temperature
- *
- * @return temperature in degrees celcius * 100
- */
-int scePowerGetBatteryTemp(void);
-
-/**
- * Returns battery voltage
- *
- * @return battery voltage in mV (millivolts)
- */
-int scePowerGetBatteryVolt(void);
-
-/**
- * Returns battery state of health
- *
- * @return battery state of health percent
- */
-int scePowerGetBatterySOH(void);
-
-/**
- * Returns battery cycle count
- *
- * @return battery cycle count
- */
-int scePowerGetBatteryCycleCount(void);
-
-/**
- * Returns CPU clock frequency
- *
- * @return CPU clock frequency in Mhz
- */
-int scePowerGetArmClockFrequency(void);
-
-/**
- * Returns BUS clock frequency
- *
- * @return BUS clock frequency in Mhz
- */
-int scePowerGetBusClockFrequency(void);
-
-/**
* Returns Sys clock frequency
*
* @return Sys clock frequency in Mhz
@@ -109,13 +21,6 @@ int scePowerGetBusClockFrequency(void);
int scePowerGetSysClockFrequency(void);
/**
- * Returns GPU crossbar clock frequency
- *
- * @return GPU crossbar clock frequency in Mhz
- */
-int scePowerGetGpuXbarClockFrequency(void);
-
-/**
* Requests PS Vita to do a soft reset
*
* @return always 0
@@ -123,34 +28,6 @@ int scePowerGetGpuXbarClockFrequency(void);
int scePowerRequestSoftReset(void);
/**
- * Requests PS Vita to do a cold reset
- *
- * @return always 0
- */
-int scePowerRequestColdReset(void);
-
-/**
- * Requests PS Vita to go into standby
- *
- * @return always 0
- */
-int scePowerRequestStandby(void);
-
-/**
- * Requests PS Vita to suspend
- *
- * @return always 0
- */
-int scePowerRequestSuspend(void);
-
-/**
- * Request display off
- *
- * @return always 0
- */
-int scePowerRequestDisplayOff(void);
-
-/**
* Set the screen brightness.
* @see ::sceAVConfigSetDisplayBrightness for userland counterpart.
*
@@ -161,32 +38,6 @@ int scePowerRequestDisplayOff(void);
int scePowerSetDisplayBrightness(int brightness);
/**
- * Sets CPU clock frequency
- *
- * @param freq - Frequency to set in Mhz
- *
- * @return 0 on success, < 0 on error
- */
-int scePowerSetArmClockFrequency(int freq);
-
-/**
- * Sets BUS clock frequency
- *
- * @param freq - Frequency to set in Mhz
- *
- * @return 0 on success, < 0 on error
- */
-int scePowerSetBusClockFrequency(int freq);
-/**
- * Sets GPU crossbar clock frequency
- *
- * @param freq - Frequency to set in Mhz
- *
- * @return 0 on success, < 0 on error
- */
-int scePowerSetGpuXbarClockFrequency(int freq);
-
-/**
* Sets the time before idle callback is notified.
*
* @param callback_slot - Callback slot from 0 to 7.