9 #include "../kernel/event.h"
10 #include "../sf/service.h"
22 PscPmModuleId_Usb = 4,
23 PscPmModuleId_Ethernet = 5,
24 PscPmModuleId_Fgm = 6,
25 PscPmModuleId_PcvClock = 7,
26 PscPmModuleId_PcvVoltage = 8,
27 PscPmModuleId_Gpio = 9,
28 PscPmModuleId_Pinmux = 10,
29 PscPmModuleId_Uart = 11,
30 PscPmModuleId_I2c = 12,
31 PscPmModuleId_I2cPcv = 13,
32 PscPmModuleId_Spi = 14,
33 PscPmModuleId_Pwm = 15,
34 PscPmModuleId_Psm = 16,
35 PscPmModuleId_Tc = 17,
36 PscPmModuleId_Omm = 18,
37 PscPmModuleId_Pcie = 19,
38 PscPmModuleId_Lbl = 20,
39 PscPmModuleId_Display = 21,
41 PscPmModuleId_Hid = 24,
42 PscPmModuleId_WlanSockets = 25,
44 PscPmModuleId_Fs = 27,
45 PscPmModuleId_Audio = 28,
47 PscPmModuleId_TmaHostIo = 30,
48 PscPmModuleId_Bluetooth = 31,
49 PscPmModuleId_Bpc = 32,
50 PscPmModuleId_Fan = 33,
51 PscPmModuleId_Pcm = 34,
52 PscPmModuleId_Nfc = 35,
53 PscPmModuleId_Apm = 36,
54 PscPmModuleId_Btm = 37,
55 PscPmModuleId_Nifm = 38,
56 PscPmModuleId_GpioLow = 39,
57 PscPmModuleId_Npns = 40,
58 PscPmModuleId_Lm = 41,
59 PscPmModuleId_Bcat = 42,
60 PscPmModuleId_Time = 43,
61 PscPmModuleId_Pctl = 44,
62 PscPmModuleId_Erpt = 45,
63 PscPmModuleId_Eupld = 46,
64 PscPmModuleId_Friends = 47,
65 PscPmModuleId_Bgtc = 48,
66 PscPmModuleId_Account = 49,
67 PscPmModuleId_Sasbus = 50,
68 PscPmModuleId_Ntc = 51,
69 PscPmModuleId_Idle = 52,
70 PscPmModuleId_Tcap = 53,
71 PscPmModuleId_PsmLow = 54,
72 PscPmModuleId_Ndd = 55,
73 PscPmModuleId_Olsc = 56,
75 PscPmModuleId_Ns = 61,
77 PscPmModuleId_Nvservices = 101,
79 PscPmModuleId_Spsm = 127,
85 PscPmModuleId module_id;
97 Result pscmGetPmModule(
PscPmModule *out, PscPmModuleId module_id,
const u32 *dependencies,
size_t dependency_count,
bool autoclear);
void pscmExit(void)
Exit psc:m.
Service * pscmGetServiceSession(void)
Gets the Service object for the actual psc:m service session.
Result pscmInitialize(void)
Initialize psc:m.
PscPmState
Definition: psc.h:12
@ PscPmState_Awake
Everything is awake.
Definition: psc.h:13
@ PscPmState_ReadyShutdown
Preparing to transition to shutdown.
Definition: psc.h:18
@ PscPmState_ReadySleep
Preparing to transition to sleep.
Definition: psc.h:15
@ PscPmState_ReadyAwakenCritical
Critical services are ready to wake up.
Definition: psc.h:17
@ PscPmState_ReadyAwaken
Preparing to transition to awake.
Definition: psc.h:14
@ PscPmState_ReadySleepCritical
Critical services are ready to sleep.
Definition: psc.h:16
Kernel-mode event structure.
Definition: event.h:13
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21