summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/CMakeLists.txt14
-rw-r--r--src/core/hle/service/am/am.cpp6
-rw-r--r--src/core/hle/service/am/idle.h20
-rw-r--r--src/core/hle/service/am/omm.h20
-rw-r--r--src/core/hle/service/am/spsm.h20
-rw-r--r--src/core/hle/service/omm/omm.cpp22
-rw-r--r--src/core/hle/service/omm/omm.h14
-rw-r--r--src/core/hle/service/omm/operation_mode_manager.cpp (renamed from src/core/hle/service/am/omm.cpp)11
-rw-r--r--src/core/hle/service/omm/operation_mode_manager.h20
-rw-r--r--src/core/hle/service/omm/policy_manager_system.cpp (renamed from src/core/hle/service/am/idle.cpp)11
-rw-r--r--src/core/hle/service/omm/policy_manager_system.h20
-rw-r--r--src/core/hle/service/omm/power_state_interface.cpp (renamed from src/core/hle/service/am/spsm.cpp)11
-rw-r--r--src/core/hle/service/omm/power_state_interface.h20
-rw-r--r--src/core/hle/service/service.cpp2
14 files changed, 124 insertions, 87 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 8fd99a5e9..5e2f4869e 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -425,14 +425,10 @@ add_library(core STATIC
425 hle/service/am/applet_message_queue.h 425 hle/service/am/applet_message_queue.h
426 hle/service/am/hid_registration.cpp 426 hle/service/am/hid_registration.cpp
427 hle/service/am/hid_registration.h 427 hle/service/am/hid_registration.h
428 hle/service/am/idle.cpp
429 hle/service/am/idle.h
430 hle/service/am/library_applet_storage.cpp 428 hle/service/am/library_applet_storage.cpp
431 hle/service/am/library_applet_storage.h 429 hle/service/am/library_applet_storage.h
432 hle/service/am/managed_layer_holder.cpp 430 hle/service/am/managed_layer_holder.cpp
433 hle/service/am/managed_layer_holder.h 431 hle/service/am/managed_layer_holder.h
434 hle/service/am/omm.cpp
435 hle/service/am/omm.h
436 hle/service/am/process.cpp 432 hle/service/am/process.cpp
437 hle/service/am/process.h 433 hle/service/am/process.h
438 hle/service/am/service/all_system_applet_proxies_service.cpp 434 hle/service/am/service/all_system_applet_proxies_service.cpp
@@ -487,8 +483,6 @@ add_library(core STATIC
487 hle/service/am/service/window_controller.h 483 hle/service/am/service/window_controller.h
488 hle/service/am/system_buffer_manager.cpp 484 hle/service/am/system_buffer_manager.cpp
489 hle/service/am/system_buffer_manager.h 485 hle/service/am/system_buffer_manager.h
490 hle/service/am/spsm.cpp
491 hle/service/am/spsm.h
492 hle/service/aoc/aoc_u.cpp 486 hle/service/aoc/aoc_u.cpp
493 hle/service/aoc/aoc_u.h 487 hle/service/aoc/aoc_u.h
494 hle/service/apm/apm.cpp 488 hle/service/apm/apm.cpp
@@ -815,6 +809,14 @@ add_library(core STATIC
815 hle/service/nvnflinger/window.h 809 hle/service/nvnflinger/window.h
816 hle/service/olsc/olsc.cpp 810 hle/service/olsc/olsc.cpp
817 hle/service/olsc/olsc.h 811 hle/service/olsc/olsc.h
812 hle/service/omm/omm.cpp
813 hle/service/omm/omm.h
814 hle/service/omm/operation_mode_manager.cpp
815 hle/service/omm/operation_mode_manager.h
816 hle/service/omm/policy_manager_system.cpp
817 hle/service/omm/policy_manager_system.h
818 hle/service/omm/power_state_interface.cpp
819 hle/service/omm/power_state_interface.h
818 hle/service/os/event.cpp 820 hle/service/os/event.cpp
819 hle/service/os/event.h 821 hle/service/os/event.h
820 hle/service/os/multi_wait_holder.cpp 822 hle/service/os/multi_wait_holder.cpp
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index da0f9e3df..9dc710ba9 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -2,11 +2,8 @@
2// SPDX-License-Identifier: GPL-2.0-or-later 2// SPDX-License-Identifier: GPL-2.0-or-later
3 3
4#include "core/hle/service/am/am.h" 4#include "core/hle/service/am/am.h"
5#include "core/hle/service/am/idle.h"
6#include "core/hle/service/am/omm.h"
7#include "core/hle/service/am/service/all_system_applet_proxies_service.h" 5#include "core/hle/service/am/service/all_system_applet_proxies_service.h"
8#include "core/hle/service/am/service/application_proxy_service.h" 6#include "core/hle/service/am/service/application_proxy_service.h"
9#include "core/hle/service/am/spsm.h"
10#include "core/hle/service/server_manager.h" 7#include "core/hle/service/server_manager.h"
11 8
12namespace Service::AM { 9namespace Service::AM {
@@ -18,9 +15,6 @@ void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) {
18 "appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, nvnflinger)); 15 "appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, nvnflinger));
19 server_manager->RegisterNamedService( 16 server_manager->RegisterNamedService(
20 "appletOE", std::make_shared<IApplicationProxyService>(system, nvnflinger)); 17 "appletOE", std::make_shared<IApplicationProxyService>(system, nvnflinger));
21 server_manager->RegisterNamedService("idle:sys", std::make_shared<IdleSys>(system));
22 server_manager->RegisterNamedService("omm", std::make_shared<OMM>(system));
23 server_manager->RegisterNamedService("spsm", std::make_shared<SPSM>(system));
24 ServerManager::RunServer(std::move(server_manager)); 18 ServerManager::RunServer(std::move(server_manager));
25} 19}
26 20
diff --git a/src/core/hle/service/am/idle.h b/src/core/hle/service/am/idle.h
deleted file mode 100644
index 15b31f67e..000000000
--- a/src/core/hle/service/am/idle.h
+++ /dev/null
@@ -1,20 +0,0 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Core {
9class System;
10}
11
12namespace Service::AM {
13
14class IdleSys final : public ServiceFramework<IdleSys> {
15public:
16 explicit IdleSys(Core::System& system_);
17 ~IdleSys() override;
18};
19
20} // namespace Service::AM
diff --git a/src/core/hle/service/am/omm.h b/src/core/hle/service/am/omm.h
deleted file mode 100644
index 73d0c82d5..000000000
--- a/src/core/hle/service/am/omm.h
+++ /dev/null
@@ -1,20 +0,0 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Core {
9class System;
10}
11
12namespace Service::AM {
13
14class OMM final : public ServiceFramework<OMM> {
15public:
16 explicit OMM(Core::System& system_);
17 ~OMM() override;
18};
19
20} // namespace Service::AM
diff --git a/src/core/hle/service/am/spsm.h b/src/core/hle/service/am/spsm.h
deleted file mode 100644
index 922f8863e..000000000
--- a/src/core/hle/service/am/spsm.h
+++ /dev/null
@@ -1,20 +0,0 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Core {
9class System;
10}
11
12namespace Service::AM {
13
14class SPSM final : public ServiceFramework<SPSM> {
15public:
16 explicit SPSM(Core::System& system_);
17 ~SPSM() override;
18};
19
20} // namespace Service::AM
diff --git a/src/core/hle/service/omm/omm.cpp b/src/core/hle/service/omm/omm.cpp
new file mode 100644
index 000000000..b95319e26
--- /dev/null
+++ b/src/core/hle/service/omm/omm.cpp
@@ -0,0 +1,22 @@
1// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "core/hle/service/omm/omm.h"
5#include "core/hle/service/omm/operation_mode_manager.h"
6#include "core/hle/service/omm/policy_manager_system.h"
7#include "core/hle/service/omm/power_state_interface.h"
8#include "core/hle/service/server_manager.h"
9
10namespace Service::OMM {
11
12void LoopProcess(Core::System& system) {
13 auto server_manager = std::make_unique<ServerManager>(system);
14
15 server_manager->RegisterNamedService("idle:sys",
16 std::make_shared<IPolicyManagerSystem>(system));
17 server_manager->RegisterNamedService("omm", std::make_shared<IOperationModeManager>(system));
18 server_manager->RegisterNamedService("spsm", std::make_shared<IPowerStateInterface>(system));
19 ServerManager::RunServer(std::move(server_manager));
20}
21
22} // namespace Service::OMM
diff --git a/src/core/hle/service/omm/omm.h b/src/core/hle/service/omm/omm.h
new file mode 100644
index 000000000..7bf04688a
--- /dev/null
+++ b/src/core/hle/service/omm/omm.h
@@ -0,0 +1,14 @@
1// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6namespace Core {
7class System;
8}
9
10namespace Service::OMM {
11
12void LoopProcess(Core::System& system);
13
14} // namespace Service::OMM
diff --git a/src/core/hle/service/am/omm.cpp b/src/core/hle/service/omm/operation_mode_manager.cpp
index 66824e495..fe7ed84a7 100644
--- a/src/core/hle/service/am/omm.cpp
+++ b/src/core/hle/service/omm/operation_mode_manager.cpp
@@ -1,11 +1,12 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project 1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later 2// SPDX-License-Identifier: GPL-2.0-or-later
3 3
4#include "core/hle/service/am/omm.h" 4#include "core/hle/service/omm/operation_mode_manager.h"
5 5
6namespace Service::AM { 6namespace Service::OMM {
7 7
8OMM::OMM(Core::System& system_) : ServiceFramework{system_, "omm"} { 8IOperationModeManager::IOperationModeManager(Core::System& system_)
9 : ServiceFramework{system_, "omm"} {
9 // clang-format off 10 // clang-format off
10 static const FunctionInfo functions[] = { 11 static const FunctionInfo functions[] = {
11 {0, nullptr, "GetOperationMode"}, 12 {0, nullptr, "GetOperationMode"},
@@ -43,6 +44,6 @@ OMM::OMM(Core::System& system_) : ServiceFramework{system_, "omm"} {
43 RegisterHandlers(functions); 44 RegisterHandlers(functions);
44} 45}
45 46
46OMM::~OMM() = default; 47IOperationModeManager::~IOperationModeManager() = default;
47 48
48} // namespace Service::AM 49} // namespace Service::OMM
diff --git a/src/core/hle/service/omm/operation_mode_manager.h b/src/core/hle/service/omm/operation_mode_manager.h
new file mode 100644
index 000000000..32bc7b2f9
--- /dev/null
+++ b/src/core/hle/service/omm/operation_mode_manager.h
@@ -0,0 +1,20 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Core {
9class System;
10}
11
12namespace Service::OMM {
13
14class IOperationModeManager final : public ServiceFramework<IOperationModeManager> {
15public:
16 explicit IOperationModeManager(Core::System& system_);
17 ~IOperationModeManager() override;
18};
19
20} // namespace Service::OMM
diff --git a/src/core/hle/service/am/idle.cpp b/src/core/hle/service/omm/policy_manager_system.cpp
index 603515284..1cd6fd807 100644
--- a/src/core/hle/service/am/idle.cpp
+++ b/src/core/hle/service/omm/policy_manager_system.cpp
@@ -1,11 +1,12 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project 1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later 2// SPDX-License-Identifier: GPL-2.0-or-later
3 3
4#include "core/hle/service/am/idle.h" 4#include "core/hle/service/omm/policy_manager_system.h"
5 5
6namespace Service::AM { 6namespace Service::OMM {
7 7
8IdleSys::IdleSys(Core::System& system_) : ServiceFramework{system_, "idle:sys"} { 8IPolicyManagerSystem::IPolicyManagerSystem(Core::System& system_)
9 : ServiceFramework{system_, "idle:sys"} {
9 // clang-format off 10 // clang-format off
10 static const FunctionInfo functions[] = { 11 static const FunctionInfo functions[] = {
11 {0, nullptr, "GetAutoPowerDownEvent"}, 12 {0, nullptr, "GetAutoPowerDownEvent"},
@@ -20,6 +21,6 @@ IdleSys::IdleSys(Core::System& system_) : ServiceFramework{system_, "idle:sys"}
20 RegisterHandlers(functions); 21 RegisterHandlers(functions);
21} 22}
22 23
23IdleSys::~IdleSys() = default; 24IPolicyManagerSystem::~IPolicyManagerSystem() = default;
24 25
25} // namespace Service::AM 26} // namespace Service::OMM
diff --git a/src/core/hle/service/omm/policy_manager_system.h b/src/core/hle/service/omm/policy_manager_system.h
new file mode 100644
index 000000000..151ca0d2e
--- /dev/null
+++ b/src/core/hle/service/omm/policy_manager_system.h
@@ -0,0 +1,20 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Core {
9class System;
10}
11
12namespace Service::OMM {
13
14class IPolicyManagerSystem final : public ServiceFramework<IPolicyManagerSystem> {
15public:
16 explicit IPolicyManagerSystem(Core::System& system_);
17 ~IPolicyManagerSystem() override;
18};
19
20} // namespace Service::OMM
diff --git a/src/core/hle/service/am/spsm.cpp b/src/core/hle/service/omm/power_state_interface.cpp
index ec581e32b..22cac8259 100644
--- a/src/core/hle/service/am/spsm.cpp
+++ b/src/core/hle/service/omm/power_state_interface.cpp
@@ -1,11 +1,12 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project 1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later 2// SPDX-License-Identifier: GPL-2.0-or-later
3 3
4#include "core/hle/service/am/spsm.h" 4#include "core/hle/service/omm/power_state_interface.h"
5 5
6namespace Service::AM { 6namespace Service::OMM {
7 7
8SPSM::SPSM(Core::System& system_) : ServiceFramework{system_, "spsm"} { 8IPowerStateInterface::IPowerStateInterface(Core::System& system_)
9 : ServiceFramework{system_, "spsm"} {
9 // clang-format off 10 // clang-format off
10 static const FunctionInfo functions[] = { 11 static const FunctionInfo functions[] = {
11 {0, nullptr, "GetState"}, 12 {0, nullptr, "GetState"},
@@ -26,6 +27,6 @@ SPSM::SPSM(Core::System& system_) : ServiceFramework{system_, "spsm"} {
26 RegisterHandlers(functions); 27 RegisterHandlers(functions);
27} 28}
28 29
29SPSM::~SPSM() = default; 30IPowerStateInterface::~IPowerStateInterface() = default;
30 31
31} // namespace Service::AM 32} // namespace Service::OMM
diff --git a/src/core/hle/service/omm/power_state_interface.h b/src/core/hle/service/omm/power_state_interface.h
new file mode 100644
index 000000000..825a6512d
--- /dev/null
+++ b/src/core/hle/service/omm/power_state_interface.h
@@ -0,0 +1,20 @@
1// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Core {
9class System;
10}
11
12namespace Service::OMM {
13
14class IPowerStateInterface final : public ServiceFramework<IPowerStateInterface> {
15public:
16 explicit IPowerStateInterface(Core::System& system_);
17 ~IPowerStateInterface() override;
18};
19
20} // namespace Service::OMM
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index f68c3c686..fbdf217ba 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -52,6 +52,7 @@
52#include "core/hle/service/nvnflinger/hos_binder_driver_server.h" 52#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
53#include "core/hle/service/nvnflinger/nvnflinger.h" 53#include "core/hle/service/nvnflinger/nvnflinger.h"
54#include "core/hle/service/olsc/olsc.h" 54#include "core/hle/service/olsc/olsc.h"
55#include "core/hle/service/omm/omm.h"
55#include "core/hle/service/pcie/pcie.h" 56#include "core/hle/service/pcie/pcie.h"
56#include "core/hle/service/pctl/pctl_module.h" 57#include "core/hle/service/pctl/pctl_module.h"
57#include "core/hle/service/pcv/pcv.h" 58#include "core/hle/service/pcv/pcv.h"
@@ -266,6 +267,7 @@ Services::Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system
266 kernel.RunOnGuestCoreProcess("npns", [&] { NPNS::LoopProcess(system); }); 267 kernel.RunOnGuestCoreProcess("npns", [&] { NPNS::LoopProcess(system); });
267 kernel.RunOnGuestCoreProcess("ns", [&] { NS::LoopProcess(system); }); 268 kernel.RunOnGuestCoreProcess("ns", [&] { NS::LoopProcess(system); });
268 kernel.RunOnGuestCoreProcess("olsc", [&] { OLSC::LoopProcess(system); }); 269 kernel.RunOnGuestCoreProcess("olsc", [&] { OLSC::LoopProcess(system); });
270 kernel.RunOnGuestCoreProcess("omm", [&] { OMM::LoopProcess(system); });
269 kernel.RunOnGuestCoreProcess("pcie", [&] { PCIe::LoopProcess(system); }); 271 kernel.RunOnGuestCoreProcess("pcie", [&] { PCIe::LoopProcess(system); });
270 kernel.RunOnGuestCoreProcess("pctl", [&] { PCTL::LoopProcess(system); }); 272 kernel.RunOnGuestCoreProcess("pctl", [&] { PCTL::LoopProcess(system); });
271 kernel.RunOnGuestCoreProcess("pcv", [&] { PCV::LoopProcess(system); }); 273 kernel.RunOnGuestCoreProcess("pcv", [&] { PCV::LoopProcess(system); });