diff options
| author | 2017-10-10 17:32:14 -0400 | |
|---|---|---|
| committer | 2017-10-10 17:32:14 -0400 | |
| commit | 0906de9a14b735d1d409290ca050eb7d2c2d3d84 (patch) | |
| tree | 79bb57d3a4dc4ca377e7a62744c3941de29e785b /src/core/hle/service/cecd | |
| parent | Merge remote-tracking branch 'upstream/master' into nx (diff) | |
| download | yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.gz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.xz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.zip | |
hle: Remove a large amount of 3ds-specific service code.
Diffstat (limited to 'src/core/hle/service/cecd')
| -rw-r--r-- | src/core/hle/service/cecd/cecd.cpp | 66 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd.h | 60 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd_ndm.cpp | 23 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd_ndm.h | 22 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd_s.cpp | 36 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd_s.h | 22 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd_u.cpp | 36 | ||||
| -rw-r--r-- | src/core/hle/service/cecd/cecd_u.h | 22 |
8 files changed, 0 insertions, 287 deletions
diff --git a/src/core/hle/service/cecd/cecd.cpp b/src/core/hle/service/cecd/cecd.cpp deleted file mode 100644 index 421006a9e..000000000 --- a/src/core/hle/service/cecd/cecd.cpp +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | // Copyright 2015 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.h" | ||
| 7 | #include "core/hle/kernel/event.h" | ||
| 8 | #include "core/hle/kernel/handle_table.h" | ||
| 9 | #include "core/hle/result.h" | ||
| 10 | #include "core/hle/service/cecd/cecd.h" | ||
| 11 | #include "core/hle/service/cecd/cecd_ndm.h" | ||
| 12 | #include "core/hle/service/cecd/cecd_s.h" | ||
| 13 | #include "core/hle/service/cecd/cecd_u.h" | ||
| 14 | #include "core/hle/service/service.h" | ||
| 15 | |||
| 16 | namespace Service { | ||
| 17 | namespace CECD { | ||
| 18 | |||
| 19 | static Kernel::SharedPtr<Kernel::Event> cecinfo_event; | ||
| 20 | static Kernel::SharedPtr<Kernel::Event> change_state_event; | ||
| 21 | |||
| 22 | void GetCecStateAbbreviated(Service::Interface* self) { | ||
| 23 | u32* cmd_buff = Kernel::GetCommandBuffer(); | ||
| 24 | |||
| 25 | cmd_buff[1] = RESULT_SUCCESS.raw; // No error | ||
| 26 | cmd_buff[2] = static_cast<u32>(CecStateAbbreviated::CEC_STATE_ABBREV_IDLE); | ||
| 27 | |||
| 28 | LOG_WARNING(Service_CECD, "(STUBBED) called"); | ||
| 29 | } | ||
| 30 | |||
| 31 | void GetCecInfoEventHandle(Service::Interface* self) { | ||
| 32 | u32* cmd_buff = Kernel::GetCommandBuffer(); | ||
| 33 | |||
| 34 | cmd_buff[1] = RESULT_SUCCESS.raw; // No error | ||
| 35 | cmd_buff[3] = Kernel::g_handle_table.Create(cecinfo_event).Unwrap(); // Event handle | ||
| 36 | |||
| 37 | LOG_WARNING(Service_CECD, "(STUBBED) called"); | ||
| 38 | } | ||
| 39 | |||
| 40 | void GetChangeStateEventHandle(Service::Interface* self) { | ||
| 41 | u32* cmd_buff = Kernel::GetCommandBuffer(); | ||
| 42 | |||
| 43 | cmd_buff[1] = RESULT_SUCCESS.raw; // No error | ||
| 44 | cmd_buff[3] = Kernel::g_handle_table.Create(change_state_event).Unwrap(); // Event handle | ||
| 45 | |||
| 46 | LOG_WARNING(Service_CECD, "(STUBBED) called"); | ||
| 47 | } | ||
| 48 | |||
| 49 | void Init() { | ||
| 50 | AddService(new CECD_NDM); | ||
| 51 | AddService(new CECD_S); | ||
| 52 | AddService(new CECD_U); | ||
| 53 | |||
| 54 | cecinfo_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "CECD::cecinfo_event"); | ||
| 55 | change_state_event = | ||
| 56 | Kernel::Event::Create(Kernel::ResetType::OneShot, "CECD::change_state_event"); | ||
| 57 | } | ||
| 58 | |||
| 59 | void Shutdown() { | ||
| 60 | cecinfo_event = nullptr; | ||
| 61 | change_state_event = nullptr; | ||
| 62 | } | ||
| 63 | |||
| 64 | } // namespace CECD | ||
| 65 | |||
| 66 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd.h b/src/core/hle/service/cecd/cecd.h deleted file mode 100644 index ea97f9266..000000000 --- a/src/core/hle/service/cecd/cecd.h +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | // Copyright 2015 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 | namespace Service { | ||
| 8 | |||
| 9 | class Interface; | ||
| 10 | |||
| 11 | namespace CECD { | ||
| 12 | |||
| 13 | enum class CecStateAbbreviated { | ||
| 14 | CEC_STATE_ABBREV_IDLE = 1, ///< Corresponds to CEC_STATE_IDLE | ||
| 15 | CEC_STATE_ABBREV_NOT_LOCAL = 2, ///< Corresponds to CEC_STATEs *FINISH*, *POST, and OVER_BOSS | ||
| 16 | CEC_STATE_ABBREV_SCANNING = 3, ///< Corresponds to CEC_STATE_SCANNING | ||
| 17 | CEC_STATE_ABBREV_WLREADY = | ||
| 18 | 4, ///< Corresponds to CEC_STATE_WIRELESS_READY when some unknown bool is true | ||
| 19 | CEC_STATE_ABBREV_OTHER = 5, ///< Corresponds to CEC_STATEs besides *FINISH*, *POST, and | ||
| 20 | /// OVER_BOSS and those listed here | ||
| 21 | }; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * GetCecStateAbbreviated service function | ||
| 25 | * Inputs: | ||
| 26 | * 0: 0x000E0000 | ||
| 27 | * Outputs: | ||
| 28 | * 1: ResultCode | ||
| 29 | * 2: CecStateAbbreviated | ||
| 30 | */ | ||
| 31 | void GetCecStateAbbreviated(Service::Interface* self); | ||
| 32 | |||
| 33 | /** | ||
| 34 | * GetCecInfoEventHandle service function | ||
| 35 | * Inputs: | ||
| 36 | * 0: 0x000F0000 | ||
| 37 | * Outputs: | ||
| 38 | * 1: ResultCode | ||
| 39 | * 3: Event Handle | ||
| 40 | */ | ||
| 41 | void GetCecInfoEventHandle(Service::Interface* self); | ||
| 42 | |||
| 43 | /** | ||
| 44 | * GetChangeStateEventHandle service function | ||
| 45 | * Inputs: | ||
| 46 | * 0: 0x00100000 | ||
| 47 | * Outputs: | ||
| 48 | * 1: ResultCode | ||
| 49 | * 3: Event Handle | ||
| 50 | */ | ||
| 51 | void GetChangeStateEventHandle(Service::Interface* self); | ||
| 52 | |||
| 53 | /// Initialize CECD service(s) | ||
| 54 | void Init(); | ||
| 55 | |||
| 56 | /// Shutdown CECD service(s) | ||
| 57 | void Shutdown(); | ||
| 58 | |||
| 59 | } // namespace CECD | ||
| 60 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd_ndm.cpp b/src/core/hle/service/cecd/cecd_ndm.cpp deleted file mode 100644 index 7baf93750..000000000 --- a/src/core/hle/service/cecd/cecd_ndm.cpp +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 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/cecd/cecd.h" | ||
| 6 | #include "core/hle/service/cecd/cecd_ndm.h" | ||
| 7 | |||
| 8 | namespace Service { | ||
| 9 | namespace CECD { | ||
| 10 | |||
| 11 | static const Interface::FunctionInfo FunctionTable[] = { | ||
| 12 | {0x00010000, nullptr, "Initialize"}, | ||
| 13 | {0x00020000, nullptr, "Deinitialize"}, | ||
| 14 | {0x00030000, nullptr, "ResumeDaemon"}, | ||
| 15 | {0x00040040, nullptr, "SuspendDaemon"}, | ||
| 16 | }; | ||
| 17 | |||
| 18 | CECD_NDM::CECD_NDM() { | ||
| 19 | Register(FunctionTable); | ||
| 20 | } | ||
| 21 | |||
| 22 | } // namespace CECD | ||
| 23 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd_ndm.h b/src/core/hle/service/cecd/cecd_ndm.h deleted file mode 100644 index 2e2e50ada..000000000 --- a/src/core/hle/service/cecd/cecd_ndm.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 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 | |||
| 9 | namespace Service { | ||
| 10 | namespace CECD { | ||
| 11 | |||
| 12 | class CECD_NDM : public Interface { | ||
| 13 | public: | ||
| 14 | CECD_NDM(); | ||
| 15 | |||
| 16 | std::string GetPortName() const override { | ||
| 17 | return "cecd:ndm"; | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace CECD | ||
| 22 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd_s.cpp b/src/core/hle/service/cecd/cecd_s.cpp deleted file mode 100644 index eacda7d41..000000000 --- a/src/core/hle/service/cecd/cecd_s.cpp +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | // Copyright 2015 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/cecd/cecd.h" | ||
| 6 | #include "core/hle/service/cecd/cecd_s.h" | ||
| 7 | |||
| 8 | namespace Service { | ||
| 9 | namespace CECD { | ||
| 10 | |||
| 11 | static const Interface::FunctionInfo FunctionTable[] = { | ||
| 12 | // cecd:u shared commands | ||
| 13 | {0x000100C2, nullptr, "OpenRawFile"}, | ||
| 14 | {0x00020042, nullptr, "ReadRawFile"}, | ||
| 15 | {0x00030104, nullptr, "ReadMessage"}, | ||
| 16 | {0x00040106, nullptr, "ReadMessageWithHMAC"}, | ||
| 17 | {0x00050042, nullptr, "WriteRawFile"}, | ||
| 18 | {0x00060104, nullptr, "WriteMessage"}, | ||
| 19 | {0x00070106, nullptr, "WriteMessageWithHMAC"}, | ||
| 20 | {0x00080102, nullptr, "Delete"}, | ||
| 21 | {0x000A00C4, nullptr, "GetSystemInfo"}, | ||
| 22 | {0x000B0040, nullptr, "RunCommand"}, | ||
| 23 | {0x000C0040, nullptr, "RunCommandAlt"}, | ||
| 24 | {0x000E0000, GetCecStateAbbreviated, "GetCecStateAbbreviated"}, | ||
| 25 | {0x000F0000, GetCecInfoEventHandle, "GetCecInfoEventHandle"}, | ||
| 26 | {0x00100000, GetChangeStateEventHandle, "GetChangeStateEventHandle"}, | ||
| 27 | {0x00110104, nullptr, "OpenAndWrite"}, | ||
| 28 | {0x00120104, nullptr, "OpenAndRead"}, | ||
| 29 | }; | ||
| 30 | |||
| 31 | CECD_S::CECD_S() { | ||
| 32 | Register(FunctionTable); | ||
| 33 | } | ||
| 34 | |||
| 35 | } // namespace CECD | ||
| 36 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd_s.h b/src/core/hle/service/cecd/cecd_s.h deleted file mode 100644 index ab6c6789a..000000000 --- a/src/core/hle/service/cecd/cecd_s.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | // Copyright 2015 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 CECD { | ||
| 11 | |||
| 12 | class CECD_S : public Interface { | ||
| 13 | public: | ||
| 14 | CECD_S(); | ||
| 15 | |||
| 16 | std::string GetPortName() const override { | ||
| 17 | return "cecd:s"; | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace CECD | ||
| 22 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd_u.cpp b/src/core/hle/service/cecd/cecd_u.cpp deleted file mode 100644 index 3ed864f0b..000000000 --- a/src/core/hle/service/cecd/cecd_u.cpp +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | // Copyright 2014 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/cecd/cecd.h" | ||
| 6 | #include "core/hle/service/cecd/cecd_u.h" | ||
| 7 | |||
| 8 | namespace Service { | ||
| 9 | namespace CECD { | ||
| 10 | |||
| 11 | static const Interface::FunctionInfo FunctionTable[] = { | ||
| 12 | // cecd:u shared commands | ||
| 13 | {0x000100C2, nullptr, "OpenRawFile"}, | ||
| 14 | {0x00020042, nullptr, "ReadRawFile"}, | ||
| 15 | {0x00030104, nullptr, "ReadMessage"}, | ||
| 16 | {0x00040106, nullptr, "ReadMessageWithHMAC"}, | ||
| 17 | {0x00050042, nullptr, "WriteRawFile"}, | ||
| 18 | {0x00060104, nullptr, "WriteMessage"}, | ||
| 19 | {0x00070106, nullptr, "WriteMessageWithHMAC"}, | ||
| 20 | {0x00080102, nullptr, "Delete"}, | ||
| 21 | {0x000A00C4, nullptr, "GetSystemInfo"}, | ||
| 22 | {0x000B0040, nullptr, "RunCommand"}, | ||
| 23 | {0x000C0040, nullptr, "RunCommandAlt"}, | ||
| 24 | {0x000E0000, GetCecStateAbbreviated, "GetCecStateAbbreviated"}, | ||
| 25 | {0x000F0000, GetCecInfoEventHandle, "GetCecInfoEventHandle"}, | ||
| 26 | {0x00100000, GetChangeStateEventHandle, "GetChangeStateEventHandle"}, | ||
| 27 | {0x00110104, nullptr, "OpenAndWrite"}, | ||
| 28 | {0x00120104, nullptr, "OpenAndRead"}, | ||
| 29 | }; | ||
| 30 | |||
| 31 | CECD_U::CECD_U() { | ||
| 32 | Register(FunctionTable); | ||
| 33 | } | ||
| 34 | |||
| 35 | } // namespace CECD | ||
| 36 | } // namespace Service | ||
diff --git a/src/core/hle/service/cecd/cecd_u.h b/src/core/hle/service/cecd/cecd_u.h deleted file mode 100644 index 16e874ff5..000000000 --- a/src/core/hle/service/cecd/cecd_u.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | // Copyright 2014 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 CECD { | ||
| 11 | |||
| 12 | class CECD_U : public Interface { | ||
| 13 | public: | ||
| 14 | CECD_U(); | ||
| 15 | |||
| 16 | std::string GetPortName() const override { | ||
| 17 | return "cecd:u"; | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace CECD | ||
| 22 | } // namespace Service | ||