summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/CMakeLists.txt10
-rw-r--r--src/core/hle/service/dlp/dlp.cpp24
-rw-r--r--src/core/hle/service/dlp/dlp.h15
-rw-r--r--src/core/hle/service/dlp/dlp_clnt.cpp20
-rw-r--r--src/core/hle/service/dlp/dlp_clnt.h22
-rw-r--r--src/core/hle/service/dlp/dlp_fkcl.cpp20
-rw-r--r--src/core/hle/service/dlp/dlp_fkcl.h22
-rw-r--r--src/core/hle/service/dlp/dlp_srvr.cpp (renamed from src/core/hle/service/dlp_srvr.cpp)22
-rw-r--r--src/core/hle/service/dlp/dlp_srvr.h (renamed from src/core/hle/service/dlp_srvr.h)13
-rw-r--r--src/core/hle/service/service.cpp5
10 files changed, 150 insertions, 23 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index ed80cf0e4..e9b04098b 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -70,7 +70,10 @@ set(SRCS
70 hle/service/cfg/cfg_s.cpp 70 hle/service/cfg/cfg_s.cpp
71 hle/service/cfg/cfg_u.cpp 71 hle/service/cfg/cfg_u.cpp
72 hle/service/csnd_snd.cpp 72 hle/service/csnd_snd.cpp
73 hle/service/dlp_srvr.cpp 73 hle/service/dlp/dlp.cpp
74 hle/service/dlp/dlp_clnt.cpp
75 hle/service/dlp/dlp_fkcl.cpp
76 hle/service/dlp/dlp_srvr.cpp
74 hle/service/dsp_dsp.cpp 77 hle/service/dsp_dsp.cpp
75 hle/service/err_f.cpp 78 hle/service/err_f.cpp
76 hle/service/frd/frd.cpp 79 hle/service/frd/frd.cpp
@@ -206,7 +209,10 @@ set(HEADERS
206 hle/service/cfg/cfg_s.h 209 hle/service/cfg/cfg_s.h
207 hle/service/cfg/cfg_u.h 210 hle/service/cfg/cfg_u.h
208 hle/service/csnd_snd.h 211 hle/service/csnd_snd.h
209 hle/service/dlp_srvr.h 212 hle/service/dlp/dlp.h
213 hle/service/dlp/dlp_clnt.h
214 hle/service/dlp/dlp_fkcl.h
215 hle/service/dlp/dlp_srvr.h
210 hle/service/dsp_dsp.h 216 hle/service/dsp_dsp.h
211 hle/service/err_f.h 217 hle/service/err_f.h
212 hle/service/frd/frd.h 218 hle/service/frd/frd.h
diff --git a/src/core/hle/service/dlp/dlp.cpp b/src/core/hle/service/dlp/dlp.cpp
new file mode 100644
index 000000000..7c8db794b
--- /dev/null
+++ b/src/core/hle/service/dlp/dlp.cpp
@@ -0,0 +1,24 @@
1// Copyright 2016 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/service.h"
6#include "core/hle/service/dlp/dlp.h"
7#include "core/hle/service/dlp/dlp_clnt.h"
8#include "core/hle/service/dlp/dlp_fkcl.h"
9#include "core/hle/service/dlp/dlp_srvr.h"
10
11namespace Service {
12namespace DLP {
13
14void Init() {
15 AddService(new DLP_CLNT_Interface);
16 AddService(new DLP_FKCL_Interface);
17 AddService(new DLP_SRVR_Interface);
18}
19
20void Shutdown() {
21}
22
23} // namespace DLP
24} // namespace Service
diff --git a/src/core/hle/service/dlp/dlp.h b/src/core/hle/service/dlp/dlp.h
new file mode 100644
index 000000000..ec2fe46e8
--- /dev/null
+++ b/src/core/hle/service/dlp/dlp.h
@@ -0,0 +1,15 @@
1// Copyright 2016 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5namespace Service {
6namespace DLP {
7
8/// Initializes the DLP services.
9void Init();
10
11/// Shuts down the DLP services.
12void Shutdown();
13
14} // namespace DLP
15} // namespace Service
diff --git a/src/core/hle/service/dlp/dlp_clnt.cpp b/src/core/hle/service/dlp/dlp_clnt.cpp
new file mode 100644
index 000000000..0b31d47df
--- /dev/null
+++ b/src/core/hle/service/dlp/dlp_clnt.cpp
@@ -0,0 +1,20 @@
1// Copyright 2016 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/dlp/dlp_clnt.h"
6
7namespace Service {
8namespace DLP {
9
10const Interface::FunctionInfo FunctionTable[] = {
11 {0x000100C3, nullptr, "Initialize"},
12 {0x00110000, nullptr, "GetWirelessRebootPassphrase"},
13};
14
15DLP_CLNT_Interface::DLP_CLNT_Interface() {
16 Register(FunctionTable);
17}
18
19} // namespace DLP
20} // namespace Service
diff --git a/src/core/hle/service/dlp/dlp_clnt.h b/src/core/hle/service/dlp/dlp_clnt.h
new file mode 100644
index 000000000..067f11e37
--- /dev/null
+++ b/src/core/hle/service/dlp/dlp_clnt.h
@@ -0,0 +1,22 @@
1// Copyright 2016 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
9namespace Service {
10namespace DLP {
11
12class DLP_CLNT_Interface final : public Interface {
13public:
14 DLP_CLNT_Interface();
15
16 std::string GetPortName() const override {
17 return "dlp:CLNT";
18 }
19};
20
21} // namespace DLP
22} // namespace Service
diff --git a/src/core/hle/service/dlp/dlp_fkcl.cpp b/src/core/hle/service/dlp/dlp_fkcl.cpp
new file mode 100644
index 000000000..a845260e5
--- /dev/null
+++ b/src/core/hle/service/dlp/dlp_fkcl.cpp
@@ -0,0 +1,20 @@
1// Copyright 2016 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/dlp/dlp_fkcl.h"
6
7namespace Service {
8namespace DLP {
9
10const Interface::FunctionInfo FunctionTable[] = {
11 {0x00010083, nullptr, "Initialize"},
12 {0x000F0000, nullptr, "GetWirelessRebootPassphrase"},
13};
14
15DLP_FKCL_Interface::DLP_FKCL_Interface() {
16 Register(FunctionTable);
17}
18
19} // namespace DLP
20} // namespace Service
diff --git a/src/core/hle/service/dlp/dlp_fkcl.h b/src/core/hle/service/dlp/dlp_fkcl.h
new file mode 100644
index 000000000..e4837a167
--- /dev/null
+++ b/src/core/hle/service/dlp/dlp_fkcl.h
@@ -0,0 +1,22 @@
1// Copyright 2016 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
9namespace Service {
10namespace DLP {
11
12class DLP_FKCL_Interface final : public Interface {
13public:
14 DLP_FKCL_Interface();
15
16 std::string GetPortName() const override {
17 return "dlp:FKCL";
18 }
19};
20
21} // namespace DLP
22} // namespace Service
diff --git a/src/core/hle/service/dlp_srvr.cpp b/src/core/hle/service/dlp/dlp_srvr.cpp
index 1f30188da..da9b30f56 100644
--- a/src/core/hle/service/dlp_srvr.cpp
+++ b/src/core/hle/service/dlp/dlp_srvr.cpp
@@ -2,16 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/common_types.h"
5#include "common/logging/log.h" 6#include "common/logging/log.h"
6#include "core/hle/hle.h" 7#include "core/hle/result.h"
7#include "core/hle/service/dlp_srvr.h" 8#include "core/hle/service/dlp/dlp_srvr.h"
8 9
9//////////////////////////////////////////////////////////////////////////////////////////////////// 10namespace Service {
10// Namespace DLP_SRVR 11namespace DLP {
11 12
12namespace DLP_SRVR { 13static void unk_0x000E0040(Interface* self) {
13
14static void unk_0x000E0040(Service::Interface* self) {
15 u32* cmd_buff = Kernel::GetCommandBuffer(); 14 u32* cmd_buff = Kernel::GetCommandBuffer();
16 15
17 cmd_buff[1] = RESULT_SUCCESS.raw; 16 cmd_buff[1] = RESULT_SUCCESS.raw;
@@ -23,14 +22,13 @@ static void unk_0x000E0040(Service::Interface* self) {
23const Interface::FunctionInfo FunctionTable[] = { 22const Interface::FunctionInfo FunctionTable[] = {
24 {0x00010183, nullptr, "Initialize"}, 23 {0x00010183, nullptr, "Initialize"},
25 {0x00020000, nullptr, "Finalize"}, 24 {0x00020000, nullptr, "Finalize"},
25 {0x000800C0, nullptr, "SendWirelessRebootPassphrase"},
26 {0x000E0040, unk_0x000E0040, "unk_0x000E0040"}, 26 {0x000E0040, unk_0x000E0040, "unk_0x000E0040"},
27}; 27};
28 28
29//////////////////////////////////////////////////////////////////////////////////////////////////// 29DLP_SRVR_Interface::DLP_SRVR_Interface() {
30// Interface class
31
32Interface::Interface() {
33 Register(FunctionTable); 30 Register(FunctionTable);
34} 31}
35 32
36} // namespace 33} // namespace DLP
34} // namespace Service
diff --git a/src/core/hle/service/dlp_srvr.h b/src/core/hle/service/dlp/dlp_srvr.h
index d65d00814..19fe17840 100644
--- a/src/core/hle/service/dlp_srvr.h
+++ b/src/core/hle/service/dlp/dlp_srvr.h
@@ -6,18 +6,17 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9//////////////////////////////////////////////////////////////////////////////////////////////////// 9namespace Service {
10// Namespace DLP_SRVR 10namespace DLP {
11 11
12namespace DLP_SRVR { 12class DLP_SRVR_Interface final : public Interface {
13
14class Interface : public Service::Interface {
15public: 13public:
16 Interface(); 14 DLP_SRVR_Interface();
17 15
18 std::string GetPortName() const override { 16 std::string GetPortName() const override {
19 return "dlp:SRVR"; 17 return "dlp:SRVR";
20 } 18 }
21}; 19};
22 20
23} // namespace 21} // namespace DLP
22} // namespace Service
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index d7e7d4fe3..395880843 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -10,7 +10,6 @@
10#include "core/hle/service/act_a.h" 10#include "core/hle/service/act_a.h"
11#include "core/hle/service/act_u.h" 11#include "core/hle/service/act_u.h"
12#include "core/hle/service/csnd_snd.h" 12#include "core/hle/service/csnd_snd.h"
13#include "core/hle/service/dlp_srvr.h"
14#include "core/hle/service/dsp_dsp.h" 13#include "core/hle/service/dsp_dsp.h"
15#include "core/hle/service/err_f.h" 14#include "core/hle/service/err_f.h"
16#include "core/hle/service/gsp_gpu.h" 15#include "core/hle/service/gsp_gpu.h"
@@ -31,6 +30,7 @@
31#include "core/hle/service/boss/boss.h" 30#include "core/hle/service/boss/boss.h"
32#include "core/hle/service/cam/cam.h" 31#include "core/hle/service/cam/cam.h"
33#include "core/hle/service/cecd/cecd.h" 32#include "core/hle/service/cecd/cecd.h"
33#include "core/hle/service/dlp/dlp.h"
34#include "core/hle/service/frd/frd.h" 34#include "core/hle/service/frd/frd.h"
35#include "core/hle/service/fs/archive.h" 35#include "core/hle/service/fs/archive.h"
36#include "core/hle/service/cfg/cfg.h" 36#include "core/hle/service/cfg/cfg.h"
@@ -111,6 +111,7 @@ void Init() {
111 Service::CAM::Init(); 111 Service::CAM::Init();
112 Service::CECD::Init(); 112 Service::CECD::Init();
113 Service::CFG::Init(); 113 Service::CFG::Init();
114 Service::DLP::Init();
114 Service::FRD::Init(); 115 Service::FRD::Init();
115 Service::HID::Init(); 116 Service::HID::Init();
116 Service::IR::Init(); 117 Service::IR::Init();
@@ -123,7 +124,6 @@ void Init() {
123 AddService(new ACT_A::Interface); 124 AddService(new ACT_A::Interface);
124 AddService(new ACT_U::Interface); 125 AddService(new ACT_U::Interface);
125 AddService(new CSND_SND::Interface); 126 AddService(new CSND_SND::Interface);
126 AddService(new DLP_SRVR::Interface);
127 AddService(new DSP_DSP::Interface); 127 AddService(new DSP_DSP::Interface);
128 AddService(new GSP_GPU::Interface); 128 AddService(new GSP_GPU::Interface);
129 AddService(new GSP_LCD::Interface); 129 AddService(new GSP_LCD::Interface);
@@ -150,6 +150,7 @@ void Shutdown() {
150 Service::IR::Shutdown(); 150 Service::IR::Shutdown();
151 Service::HID::Shutdown(); 151 Service::HID::Shutdown();
152 Service::FRD::Shutdown(); 152 Service::FRD::Shutdown();
153 Service::DLP::Shutdown();
153 Service::CFG::Shutdown(); 154 Service::CFG::Shutdown();
154 Service::CECD::Shutdown(); 155 Service::CECD::Shutdown();
155 Service::CAM::Shutdown(); 156 Service::CAM::Shutdown();