summaryrefslogtreecommitdiff
path: root/include/kernel/lowio
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/kernel/lowio/gpio.h6
-rw-r--r--include/kernel/lowio/i2c.h6
-rw-r--r--include/kernel/lowio/pervasive.h44
3 files changed, 50 insertions, 6 deletions
diff --git a/include/kernel/lowio/gpio.h b/include/kernel/lowio/gpio.h
index 944acbd..49322d4 100644
--- a/include/kernel/lowio/gpio.h
+++ b/include/kernel/lowio/gpio.h
@@ -1,5 +1,5 @@
-#ifndef _PSP2_LOWIO_GPIO_H_
-#define _PSP2_LOWIO_GPIO_H_
+#ifndef _PSP2_KERN_LOWIO_GPIO_H_
+#define _PSP2_KERN_LOWIO_GPIO_H_
#include <psp2kern/types.h>
@@ -38,5 +38,5 @@ int sceGpioQueryIntr(int bus, int port);
}
#endif
-#endif /* _PSP2_LOWIO_GPIO_H_ */
+#endif /* _PSP2_KERN_LOWIO_GPIO_H_ */
diff --git a/include/kernel/lowio/i2c.h b/include/kernel/lowio/i2c.h
index 5a49f77..961f1df 100644
--- a/include/kernel/lowio/i2c.h
+++ b/include/kernel/lowio/i2c.h
@@ -1,5 +1,5 @@
-#ifndef _PSP2_LOWIO_I2C_H_
-#define _PSP2_LOWIO_I2C_H_
+#ifndef _PSP2_KERN_LOWIO_I2C_H_
+#define _PSP2_KERN_LOWIO_I2C_H_
#include <psp2kern/types.h>
@@ -38,5 +38,5 @@ int sceI2cSetDebugHandlers(int bus, SceI2cDebugHandlers *debug_handlers);
}
#endif
-#endif /* _PSP2_LOWIO_I2C_H_ */
+#endif /* _PSP2_KERN_LOWIO_I2C_H_ */
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_ */
+