Browse Source

service/usb: Update function tables

nce_cpp
Lioncash 4 years ago
parent
commit
3599c5f7c8
  1. 42
      src/core/hle/service/usb/usb.cpp

42
src/core/hle/service/usb/usb.cpp

@ -15,36 +15,11 @@ namespace Service::USB {
class IDsInterface final : public ServiceFramework<IDsInterface> { class IDsInterface final : public ServiceFramework<IDsInterface> {
public: public:
explicit IDsInterface(Core::System& system_) : ServiceFramework{system_, "IDsInterface"} { explicit IDsInterface(Core::System& system_) : ServiceFramework{system_, "IDsInterface"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "GetDsEndpoint"},
{1, nullptr, "GetSetupEvent"},
{2, nullptr, "Unknown2"},
{3, nullptr, "EnableInterface"},
{4, nullptr, "DisableInterface"},
{5, nullptr, "CtrlInPostBufferAsync"},
{6, nullptr, "CtrlOutPostBufferAsync"},
{7, nullptr, "GetCtrlInCompletionEvent"},
{8, nullptr, "GetCtrlInReportData"},
{9, nullptr, "GetCtrlOutCompletionEvent"},
{10, nullptr, "GetCtrlOutReportData"},
{11, nullptr, "StallCtrl"},
{12, nullptr, "AppendConfigurationData"},
};
// clang-format on
RegisterHandlers(functions);
}
};
class USB_DS final : public ServiceFramework<USB_DS> {
public:
explicit USB_DS(Core::System& system_) : ServiceFramework{system_, "usb:ds"} {
// clang-format off // clang-format off
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0, nullptr, "BindDevice"}, {0, nullptr, "BindDevice"},
{1, nullptr, "BindClientProcess"}, {1, nullptr, "BindClientProcess"},
{2, nullptr, "GetDsInterface"},
{2, nullptr, "AddInterface"},
{3, nullptr, "GetStateChangeEvent"}, {3, nullptr, "GetStateChangeEvent"},
{4, nullptr, "GetState"}, {4, nullptr, "GetState"},
{5, nullptr, "ClearDeviceData"}, {5, nullptr, "ClearDeviceData"},
@ -62,6 +37,19 @@ public:
} }
}; };
class USB_DS final : public ServiceFramework<USB_DS> {
public:
explicit USB_DS(Core::System& system_) : ServiceFramework{system_, "usb:ds"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "OpenDsService"},
};
// clang-format on
RegisterHandlers(functions);
}
};
class IClientEpSession final : public ServiceFramework<IClientEpSession> { class IClientEpSession final : public ServiceFramework<IClientEpSession> {
public: public:
explicit IClientEpSession(Core::System& system_) explicit IClientEpSession(Core::System& system_)
@ -120,7 +108,7 @@ public:
{5, nullptr, "DestroyInterfaceAvailableEvent"}, {5, nullptr, "DestroyInterfaceAvailableEvent"},
{6, nullptr, "GetInterfaceStateChangeEvent"}, {6, nullptr, "GetInterfaceStateChangeEvent"},
{7, nullptr, "AcquireUsbIf"}, {7, nullptr, "AcquireUsbIf"},
{8, nullptr, "Unknown8"},
{8, nullptr, "ResetDevice"},
}; };
// clang-format on // clang-format on

Loading…
Cancel
Save