summaryrefslogtreecommitdiff
path: root/include/kernel/lowio/pervasive.h
blob: 24a4ac432b1e853d41db07da14ef8f8ca4f598dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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_ */