diff options
author | Sergi Granell | 2017-11-29 23:38:29 +0100 |
---|---|---|
committer | devnoname120 | 2017-11-29 23:38:29 +0100 |
commit | a512c73dd92549475ccc90cd7a5bf3482142733a (patch) | |
tree | c2083e3307b6effddfb910d7960c60fcce346b4b /include/kernel/lowio/pervasive.h | |
parent | Add kscePervasiveUartSetBaudrate NID (diff) | |
download | vds-libraries-a512c73dd92549475ccc90cd7a5bf3482142733a.tar.gz |
Add psp2kern/{lowio/pervasive.h, power.h, syscon.h, uart.h}, minor nits (#255)
* Add psp2kern/{lowio/pervasive.h, power.h, syscon.h, uart.h}, minor nits
* Fix psp2kern/power.h kernelgroup
* Remove stray kscePervasiveUartSetBaudrate from psp2kern/uart.h
* Add missing docs
* Documentation improvements
Diffstat (limited to '')
-rw-r--r-- | include/kernel/lowio/pervasive.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/kernel/lowio/pervasive.h b/include/kernel/lowio/pervasive.h new file mode 100644 index 0000000..24a4ac4 --- /dev/null +++ b/include/kernel/lowio/pervasive.h @@ -0,0 +1,44 @@ +#ifndef _PSP2_KERN_LOWIO_PERVASIVE_H_ +#define _PSP2_KERN_LOWIO_PERVASIVE_H_ + +#include <psp2kern/types.h> + +#ifdef __cplusplus +"C" { +#endif + +int scePervasiveUartClockDisable(int port); +int scePervasiveUartResetEnable(int port); +int scePervasiveUartResetDisable(int port); +int scePervasiveUartClockEnable(int port); +int scePervasiveUartSetBaudrate(int port, unsigned int baudrate); + +int scePervasiveGpioResetEnable(void); +int scePervasiveGpioResetDisable(void); +int scePervasiveGpioClockEnable(void); +int scePervasiveGpioClockDisable(void); + +int scePervasiveSpiResetEnable(int port); +int scePervasiveSpiResetDisable(int port); +int scePervasiveSpiClockDisable(int port); +int scePervasiveSpiClockEnable(int port); + +int scePervasiveDsiResetEnable(int port, unsigned int mask); +int scePervasiveDsiResetDisable(int port, unsigned int mask); +int scePervasiveDsiClockEnable(int port, unsigned int mask); +int scePervasiveDsiClockDisable(int port, unsigned int mask); + +int scePervasiveMsifResetEnable(void); +int scePervasiveMsifResetDisable(void); +int scePervasiveMsifClockEnable(void); +int scePervasiveMsifClockDisable(void); +int scePervasiveMsifSetClock(unsigned int clock); + +int scePervasiveRemovableMemoryGetCardInsertState(void); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERN_LOWIO_PERVASIVE_H_ */ + |