mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-12 13:50:03 +00:00
Use IPC:MakeHeader instead of hardcoded raw values for IPC command tables. (#6453)
* Use IPC:MakeHeader instead of hardcoded values for IPC command tables. * Use u32 instead of unsigned int in MakeHeader function Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com> * Fix clang format --------- Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com>
This commit is contained in:
parent
9bd8c9290b
commit
63bc0b59bb
74 changed files with 1983 additions and 1896 deletions
|
@ -212,29 +212,31 @@ void NDM_U::ClearHalfAwakeMacFilter(Kernel::HLERequestContext& ctx) {
|
|||
|
||||
NDM_U::NDM_U() : ServiceFramework("ndm:u", 6) {
|
||||
static const FunctionInfo functions[] = {
|
||||
{0x00010042, &NDM_U::EnterExclusiveState, "EnterExclusiveState"},
|
||||
{0x00020002, &NDM_U::LeaveExclusiveState, "LeaveExclusiveState"},
|
||||
{0x00030000, &NDM_U::QueryExclusiveMode, "QueryExclusiveMode"},
|
||||
{0x00040002, &NDM_U::LockState, "LockState"},
|
||||
{0x00050002, &NDM_U::UnlockState, "UnlockState"},
|
||||
{0x00060040, &NDM_U::SuspendDaemons, "SuspendDaemons"},
|
||||
{0x00070040, &NDM_U::ResumeDaemons, "ResumeDaemons"},
|
||||
{0x00080040, &NDM_U::SuspendScheduler, "SuspendScheduler"},
|
||||
{0x00090000, &NDM_U::ResumeScheduler, "ResumeScheduler"},
|
||||
{0x000A0000, nullptr, "GetCurrentState"},
|
||||
{0x000B0000, nullptr, "GetTargetState"},
|
||||
{0x000C0000, nullptr, "<Stubbed>"},
|
||||
{0x000D0040, &NDM_U::QueryStatus, "QueryStatus"},
|
||||
{0x000E0040, &NDM_U::GetDaemonDisableCount, "GetDaemonDisableCount"},
|
||||
{0x000F0000, &NDM_U::GetSchedulerDisableCount, "GetSchedulerDisableCount"},
|
||||
{0x00100040, &NDM_U::SetScanInterval, "SetScanInterval"},
|
||||
{0x00110000, &NDM_U::GetScanInterval, "GetScanInterval"},
|
||||
{0x00120040, &NDM_U::SetRetryInterval, "SetRetryInterval"},
|
||||
{0x00130000, &NDM_U::GetRetryInterval, "GetRetryInterval"},
|
||||
{0x00140040, &NDM_U::OverrideDefaultDaemons, "OverrideDefaultDaemons"},
|
||||
{0x00150000, &NDM_U::ResetDefaultDaemons, "ResetDefaultDaemons"},
|
||||
{0x00160000, &NDM_U::GetDefaultDaemons, "GetDefaultDaemons"},
|
||||
{0x00170000, &NDM_U::ClearHalfAwakeMacFilter, "ClearHalfAwakeMacFilter"},
|
||||
// clang-format off
|
||||
{IPC::MakeHeader(0x0001, 1, 2), &NDM_U::EnterExclusiveState, "EnterExclusiveState"},
|
||||
{IPC::MakeHeader(0x0002, 0, 2), &NDM_U::LeaveExclusiveState, "LeaveExclusiveState"},
|
||||
{IPC::MakeHeader(0x0003, 0, 0), &NDM_U::QueryExclusiveMode, "QueryExclusiveMode"},
|
||||
{IPC::MakeHeader(0x0004, 0, 2), &NDM_U::LockState, "LockState"},
|
||||
{IPC::MakeHeader(0x0005, 0, 2), &NDM_U::UnlockState, "UnlockState"},
|
||||
{IPC::MakeHeader(0x0006, 1, 0), &NDM_U::SuspendDaemons, "SuspendDaemons"},
|
||||
{IPC::MakeHeader(0x0007, 1, 0), &NDM_U::ResumeDaemons, "ResumeDaemons"},
|
||||
{IPC::MakeHeader(0x0008, 1, 0), &NDM_U::SuspendScheduler, "SuspendScheduler"},
|
||||
{IPC::MakeHeader(0x0009, 0, 0), &NDM_U::ResumeScheduler, "ResumeScheduler"},
|
||||
{IPC::MakeHeader(0x000A, 0, 0), nullptr, "GetCurrentState"},
|
||||
{IPC::MakeHeader(0x000B, 0, 0), nullptr, "GetTargetState"},
|
||||
{IPC::MakeHeader(0x000C, 0, 0), nullptr, "<Stubbed>"},
|
||||
{IPC::MakeHeader(0x000D, 1, 0), &NDM_U::QueryStatus, "QueryStatus"},
|
||||
{IPC::MakeHeader(0x000E, 1, 0), &NDM_U::GetDaemonDisableCount, "GetDaemonDisableCount"},
|
||||
{IPC::MakeHeader(0x000F, 0, 0), &NDM_U::GetSchedulerDisableCount, "GetSchedulerDisableCount"},
|
||||
{IPC::MakeHeader(0x0010, 1, 0), &NDM_U::SetScanInterval, "SetScanInterval"},
|
||||
{IPC::MakeHeader(0x0011, 0, 0), &NDM_U::GetScanInterval, "GetScanInterval"},
|
||||
{IPC::MakeHeader(0x0012, 1, 0), &NDM_U::SetRetryInterval, "SetRetryInterval"},
|
||||
{IPC::MakeHeader(0x0013, 0, 0), &NDM_U::GetRetryInterval, "GetRetryInterval"},
|
||||
{IPC::MakeHeader(0x0014, 1, 0), &NDM_U::OverrideDefaultDaemons, "OverrideDefaultDaemons"},
|
||||
{IPC::MakeHeader(0x0015, 0, 0), &NDM_U::ResetDefaultDaemons, "ResetDefaultDaemons"},
|
||||
{IPC::MakeHeader(0x0016, 0, 0), &NDM_U::GetDefaultDaemons, "GetDefaultDaemons"},
|
||||
{IPC::MakeHeader(0x0017, 0, 0), &NDM_U::ClearHalfAwakeMacFilter, "ClearHalfAwakeMacFilter"},
|
||||
// clang-format on
|
||||
};
|
||||
RegisterHandlers(functions);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue