Browse Source
Merge pull request #833 from lioncash/irs
Merge pull request #833 from lioncash/irs
service/hid: Add missing servicespull/15/merge
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 352 additions and 0 deletions
-
4src/core/CMakeLists.txt
-
225src/core/hle/service/hid/hid.cpp
-
49src/core/hle/service/hid/irs.cpp
-
21src/core/hle/service/hid/irs.h
-
37src/core/hle/service/hid/xcd.cpp
-
16src/core/hle/service/hid/xcd.h
@ -0,0 +1,49 @@ |
|||||
|
// Copyright 2018 yuzu emulator team
|
||||
|
// Licensed under GPLv2 or any later version
|
||||
|
// Refer to the license.txt file included.
|
||||
|
|
||||
|
#include "core/hle/service/hid/irs.h"
|
||||
|
|
||||
|
namespace Service::HID { |
||||
|
|
||||
|
IRS::IRS() : ServiceFramework{"irs"} { |
||||
|
// clang-format off
|
||||
|
static const FunctionInfo functions[] = { |
||||
|
{302, nullptr, "ActivateIrsensor"}, |
||||
|
{303, nullptr, "DeactivateIrsensor"}, |
||||
|
{304, nullptr, "GetIrsensorSharedMemoryHandle"}, |
||||
|
{305, nullptr, "StopImageProcessor"}, |
||||
|
{306, nullptr, "RunMomentProcessor"}, |
||||
|
{307, nullptr, "RunClusteringProcessor"}, |
||||
|
{308, nullptr, "RunImageTransferProcessor"}, |
||||
|
{309, nullptr, "GetImageTransferProcessorState"}, |
||||
|
{310, nullptr, "RunTeraPluginProcessor"}, |
||||
|
{311, nullptr, "GetNpadIrCameraHandle"}, |
||||
|
{312, nullptr, "RunPointingProcessor"}, |
||||
|
{313, nullptr, "SuspendImageProcessor"}, |
||||
|
{314, nullptr, "CheckFirmwareVersion"}, |
||||
|
{315, nullptr, "SetFunctionLevel"}, |
||||
|
{316, nullptr, "RunImageTransferExProcessor"}, |
||||
|
{317, nullptr, "RunIrLedProcessor"}, |
||||
|
{318, nullptr, "StopImageProcessorAsync"}, |
||||
|
{319, nullptr, "ActivateIrsensorWithFunctionLevel"}, |
||||
|
}; |
||||
|
// clang-format on
|
||||
|
|
||||
|
RegisterHandlers(functions); |
||||
|
} |
||||
|
|
||||
|
IRS_SYS::IRS_SYS() : ServiceFramework{"irs:sys"} { |
||||
|
// clang-format off
|
||||
|
static const FunctionInfo functions[] = { |
||||
|
{500, nullptr, "SetAppletResourceUserId"}, |
||||
|
{501, nullptr, "RegisterAppletResourceUserId"}, |
||||
|
{502, nullptr, "UnregisterAppletResourceUserId"}, |
||||
|
{503, nullptr, "EnableAppletToGetInput"}, |
||||
|
}; |
||||
|
// clang-format on
|
||||
|
|
||||
|
RegisterHandlers(functions); |
||||
|
} |
||||
|
|
||||
|
} // namespace Service::HID
|
||||
@ -0,0 +1,21 @@ |
|||||
|
// Copyright 2018 yuzu emulator team |
||||
|
// Licensed under GPLv2 or any later version |
||||
|
// Refer to the license.txt file included. |
||||
|
|
||||
|
#pragma once |
||||
|
|
||||
|
#include "core/hle/service/service.h" |
||||
|
|
||||
|
namespace Service::HID { |
||||
|
|
||||
|
class IRS final : public ServiceFramework<IRS> { |
||||
|
public: |
||||
|
explicit IRS(); |
||||
|
}; |
||||
|
|
||||
|
class IRS_SYS final : public ServiceFramework<IRS_SYS> { |
||||
|
public: |
||||
|
explicit IRS_SYS(); |
||||
|
}; |
||||
|
|
||||
|
} // namespace Service::HID |
||||
@ -0,0 +1,37 @@ |
|||||
|
// Copyright 2018 yuzu emulator team
|
||||
|
// Licensed under GPLv2 or any later version
|
||||
|
// Refer to the license.txt file included.
|
||||
|
|
||||
|
#include "core/hle/service/hid/xcd.h"
|
||||
|
|
||||
|
namespace Service::HID { |
||||
|
|
||||
|
XCD_SYS::XCD_SYS() : ServiceFramework{"xcd:sys"} { |
||||
|
// clang-format off
|
||||
|
static const FunctionInfo functions[] = { |
||||
|
{0, nullptr, "GetDataFormat"}, |
||||
|
{1, nullptr, "SetDataFormat"}, |
||||
|
{2, nullptr, "GetMcuState"}, |
||||
|
{3, nullptr, "SetMcuState"}, |
||||
|
{4, nullptr, "GetMcuVersionForNfc"}, |
||||
|
{5, nullptr, "CheckNfcDevicePower"}, |
||||
|
{10, nullptr, "SetNfcEvent"}, |
||||
|
{11, nullptr, "GetNfcInfo"}, |
||||
|
{12, nullptr, "StartNfcDiscovery"}, |
||||
|
{13, nullptr, "StopNfcDiscovery"}, |
||||
|
{14, nullptr, "StartNtagRead"}, |
||||
|
{15, nullptr, "StartNtagWrite"}, |
||||
|
{16, nullptr, "SendNfcRawData"}, |
||||
|
{17, nullptr, "RegisterMifareKey"}, |
||||
|
{18, nullptr, "ClearMifareKey"}, |
||||
|
{19, nullptr, "StartMifareRead"}, |
||||
|
{20, nullptr, "StartMifareWrite"}, |
||||
|
{101, nullptr, "GetAwakeTriggerReasonForLeftRail"}, |
||||
|
{102, nullptr, "GetAwakeTriggerReasonForRightRail"}, |
||||
|
}; |
||||
|
// clang-format on
|
||||
|
|
||||
|
RegisterHandlers(functions); |
||||
|
} |
||||
|
|
||||
|
} // namespace Service::HID
|
||||
@ -0,0 +1,16 @@ |
|||||
|
// Copyright 2018 yuzu emulator team |
||||
|
// Licensed under GPLv2 or any later version |
||||
|
// Refer to the license.txt file included. |
||||
|
|
||||
|
#pragma once |
||||
|
|
||||
|
#include "core/hle/service/service.h" |
||||
|
|
||||
|
namespace Service::HID { |
||||
|
|
||||
|
class XCD_SYS final : public ServiceFramework<XCD_SYS> { |
||||
|
public: |
||||
|
explicit XCD_SYS(); |
||||
|
}; |
||||
|
|
||||
|
} // namespace Service::HID |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue