|
|
@ -2,34 +2,36 @@
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
|
|
|
|
#include "core/hle/service/cecd/cecd.h"
|
|
|
|
|
|
|
|
#include "core/hle/service/cecd/cecd_s.h"
|
|
|
|
#include "core/hle/service/cecd/cecd_s.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Service {
|
|
|
|
namespace Service {
|
|
|
|
namespace CECD {
|
|
|
|
namespace CECD {
|
|
|
|
|
|
|
|
|
|
|
|
static const Interface::FunctionInfo FunctionTable[] = {
|
|
|
|
CECD_S::CECD_S(std::shared_ptr<Module> cecd)
|
|
|
|
// cecd:u shared commands
|
|
|
|
: Module::Interface(std::move(cecd), "cecd:s", DefaultMaxSessions) {
|
|
|
|
{0x000100C2, nullptr, "OpenRawFile"},
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0x00020042, nullptr, "ReadRawFile"},
|
|
|
|
// cecd:u shared commands
|
|
|
|
{0x00030104, nullptr, "ReadMessage"},
|
|
|
|
// clang-format off
|
|
|
|
{0x00040106, nullptr, "ReadMessageWithHMAC"},
|
|
|
|
{0x000100C2, nullptr, "OpenRawFile"},
|
|
|
|
{0x00050042, nullptr, "WriteRawFile"},
|
|
|
|
{0x00020042, nullptr, "ReadRawFile"},
|
|
|
|
{0x00060104, nullptr, "WriteMessage"},
|
|
|
|
{0x00030104, nullptr, "ReadMessage"},
|
|
|
|
{0x00070106, nullptr, "WriteMessageWithHMAC"},
|
|
|
|
{0x00040106, nullptr, "ReadMessageWithHMAC"},
|
|
|
|
{0x00080102, nullptr, "Delete"},
|
|
|
|
{0x00050042, nullptr, "WriteRawFile"},
|
|
|
|
{0x000A00C4, nullptr, "GetSystemInfo"},
|
|
|
|
{0x00060104, nullptr, "WriteMessage"},
|
|
|
|
{0x000B0040, nullptr, "RunCommand"},
|
|
|
|
{0x00070106, nullptr, "WriteMessageWithHMAC"},
|
|
|
|
{0x000C0040, nullptr, "RunCommandAlt"},
|
|
|
|
{0x00080102, nullptr, "Delete"},
|
|
|
|
{0x000E0000, GetCecStateAbbreviated, "GetCecStateAbbreviated"},
|
|
|
|
{0x000A00C4, nullptr, "GetSystemInfo"},
|
|
|
|
{0x000F0000, GetCecInfoEventHandle, "GetCecInfoEventHandle"},
|
|
|
|
{0x000B0040, nullptr, "RunCommand"},
|
|
|
|
{0x00100000, GetChangeStateEventHandle, "GetChangeStateEventHandle"},
|
|
|
|
{0x000C0040, nullptr, "RunCommandAlt"},
|
|
|
|
{0x00110104, nullptr, "OpenAndWrite"},
|
|
|
|
{0x000E0000, &CECD_S::GetCecStateAbbreviated, "GetCecStateAbbreviated"},
|
|
|
|
{0x00120104, nullptr, "OpenAndRead"},
|
|
|
|
{0x000F0000, &CECD_S::GetCecInfoEventHandle, "GetCecInfoEventHandle"},
|
|
|
|
};
|
|
|
|
{0x00100000, &CECD_S::GetChangeStateEventHandle, "GetChangeStateEventHandle"},
|
|
|
|
|
|
|
|
{0x00110104, nullptr, "OpenAndWrite"},
|
|
|
|
|
|
|
|
{0x00120104, nullptr, "OpenAndRead"},
|
|
|
|
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
CECD_S::CECD_S() {
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
Register(FunctionTable);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace CECD
|
|
|
|
} // namespace CECD
|
|
|
|