diff options
| author | 2017-12-28 23:44:39 -0500 | |
|---|---|---|
| committer | 2017-12-28 23:44:39 -0500 | |
| commit | fcd4c1a0dc1345ea3178167fad4582393788824b (patch) | |
| tree | c49c49b3a2682900562741ae98add69d71f4c7a0 | |
| parent | kernel: Add basic support for Domain object. (diff) | |
| download | yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.gz yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.xz yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.zip | |
service: Add empty interface for pctl:a.
| -rw-r--r-- | src/core/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/core/hle/service/pctl/pctl.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/service/pctl/pctl.h | 16 | ||||
| -rw-r--r-- | src/core/hle/service/pctl/pctl_a.cpp | 30 | ||||
| -rw-r--r-- | src/core/hle/service/pctl/pctl_a.h | 22 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 |
6 files changed, 90 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 1e023303d..21d75071d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -56,6 +56,8 @@ set(SRCS | |||
| 56 | hle/service/gsp_gpu.cpp | 56 | hle/service/gsp_gpu.cpp |
| 57 | hle/service/hid/hid.cpp | 57 | hle/service/hid/hid.cpp |
| 58 | hle/service/lm/lm.cpp | 58 | hle/service/lm/lm.cpp |
| 59 | hle/service/pctl/pctl.cpp | ||
| 60 | hle/service/pctl/pctl_a.cpp | ||
| 59 | hle/service/service.cpp | 61 | hle/service/service.cpp |
| 60 | hle/service/sm/controller.cpp | 62 | hle/service/sm/controller.cpp |
| 61 | hle/service/sm/sm.cpp | 63 | hle/service/sm/sm.cpp |
| @@ -150,6 +152,8 @@ set(HEADERS | |||
| 150 | hle/service/gsp_gpu.h | 152 | hle/service/gsp_gpu.h |
| 151 | hle/service/hid/hid.h | 153 | hle/service/hid/hid.h |
| 152 | hle/service/lm/lm.h | 154 | hle/service/lm/lm.h |
| 155 | hle/service/pctl/pctl.h | ||
| 156 | hle/service/pctl/pctl_a.h | ||
| 153 | hle/service/service.h | 157 | hle/service/service.h |
| 154 | hle/service/sm/controller.h | 158 | hle/service/sm/controller.h |
| 155 | hle/service/sm/sm.h | 159 | hle/service/sm/sm.h |
diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cpp new file mode 100644 index 000000000..1b92f9f84 --- /dev/null +++ b/src/core/hle/service/pctl/pctl.cpp | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "core/hle/service/pctl/pctl.h" | ||
| 6 | #include "core/hle/service/pctl/pctl_a.h" | ||
| 7 | |||
| 8 | namespace Service { | ||
| 9 | namespace PCTL { | ||
| 10 | |||
| 11 | void InstallInterfaces(SM::ServiceManager& service_manager) { | ||
| 12 | std::make_shared<PCTL_A>()->InstallAsService(service_manager); | ||
| 13 | } | ||
| 14 | |||
| 15 | } // namespace PCTL | ||
| 16 | } // namespace Service | ||
diff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.h new file mode 100644 index 000000000..132eb0cc1 --- /dev/null +++ b/src/core/hle/service/pctl/pctl.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace PCTL { | ||
| 11 | |||
| 12 | /// Registers all PCTL services with the specified service manager. | ||
| 13 | void InstallInterfaces(SM::ServiceManager& service_manager); | ||
| 14 | |||
| 15 | } // namespace PCTL | ||
| 16 | } // namespace Service | ||
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp new file mode 100644 index 000000000..97cd1d2ee --- /dev/null +++ b/src/core/hle/service/pctl/pctl_a.cpp | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "common/logging/log.h" | ||
| 6 | #include "core/hle/ipc_helpers.h" | ||
| 7 | #include "core/hle/service/pctl/pctl_a.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace PCTL { | ||
| 11 | |||
| 12 | void InstallInterfaces(SM::ServiceManager& service_manager) { | ||
| 13 | std::make_shared<PCTL_A>()->InstallAsService(service_manager); | ||
| 14 | } | ||
| 15 | |||
| 16 | void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { | ||
| 17 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 18 | IPC::RequestBuilder rb{ctx, 1}; | ||
| 19 | rb.Push(RESULT_SUCCESS); | ||
| 20 | } | ||
| 21 | |||
| 22 | PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { | ||
| 23 | static const FunctionInfo functions[] = { | ||
| 24 | {0, &PCTL_A::GetService, "GetService"}, | ||
| 25 | }; | ||
| 26 | RegisterHandlers(functions); | ||
| 27 | } | ||
| 28 | |||
| 29 | } // namespace PCTL | ||
| 30 | } // namespace Service | ||
diff --git a/src/core/hle/service/pctl/pctl_a.h b/src/core/hle/service/pctl/pctl_a.h new file mode 100644 index 000000000..b61622cec --- /dev/null +++ b/src/core/hle/service/pctl/pctl_a.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace PCTL { | ||
| 11 | |||
| 12 | class PCTL_A final : public ServiceFramework<PCTL_A> { | ||
| 13 | public: | ||
| 14 | PCTL_A(); | ||
| 15 | ~PCTL_A() = default; | ||
| 16 | |||
| 17 | private: | ||
| 18 | void GetService(Kernel::HLERequestContext& ctx); | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace PCTL | ||
| 22 | } // namespace Service | ||
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 3394ea414..0fba224e1 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #include "core/hle/service/gsp_gpu.h" | 22 | #include "core/hle/service/gsp_gpu.h" |
| 23 | #include "core/hle/service/hid/hid.h" | 23 | #include "core/hle/service/hid/hid.h" |
| 24 | #include "core/hle/service/lm/lm.h" | 24 | #include "core/hle/service/lm/lm.h" |
| 25 | #include "core/hle/service/pctl/pctl.h" | ||
| 25 | #include "core/hle/service/service.h" | 26 | #include "core/hle/service/service.h" |
| 26 | #include "core/hle/service/sm/controller.h" | 27 | #include "core/hle/service/sm/controller.h" |
| 27 | #include "core/hle/service/sm/sm.h" | 28 | #include "core/hle/service/sm/sm.h" |
| @@ -173,6 +174,7 @@ void Init() { | |||
| 173 | AOC::InstallInterfaces(*SM::g_service_manager); | 174 | AOC::InstallInterfaces(*SM::g_service_manager); |
| 174 | APM::InstallInterfaces(*SM::g_service_manager); | 175 | APM::InstallInterfaces(*SM::g_service_manager); |
| 175 | LM::InstallInterfaces(*SM::g_service_manager); | 176 | LM::InstallInterfaces(*SM::g_service_manager); |
| 177 | PCTL::InstallInterfaces(*SM::g_service_manager); | ||
| 176 | 178 | ||
| 177 | HID::Init(); | 179 | HID::Init(); |
| 178 | 180 | ||