1
0
Fork 0
forked from suyu/suyu

usb: Use proper names

This commit is contained in:
german77 2021-04-08 14:42:53 -06:00
parent 35abd560c4
commit ac14ef70b5

View file

@ -69,15 +69,15 @@ public:
: ServiceFramework{system_, "IClientEpSession"} { : ServiceFramework{system_, "IClientEpSession"} {
// clang-format off // clang-format off
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0, nullptr, "Open"}, {0, nullptr, "ReOpen"},
{1, nullptr, "Close"}, {1, nullptr, "Close"},
{2, nullptr, "Unknown2"}, {2, nullptr, "GetCompletionEvent"},
{3, nullptr, "Populate"}, {3, nullptr, "PopulateRing"},
{4, nullptr, "PostBufferAsync"}, {4, nullptr, "PostBufferAsync"},
{5, nullptr, "GetXferReport"}, {5, nullptr, "GetXferReport"},
{6, nullptr, "PostBufferMultiAsync"}, {6, nullptr, "PostBufferMultiAsync"},
{7, nullptr, "Unknown7"}, {7, nullptr, "CreateSmmuSpace"},
{8, nullptr, "Unknown8"}, {8, nullptr, "ShareReportRing"},
}; };
// clang-format on // clang-format on
@ -91,7 +91,7 @@ public:
: ServiceFramework{system_, "IClientIfSession"} { : ServiceFramework{system_, "IClientIfSession"} {
// clang-format off // clang-format off
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0, nullptr, "Unknown0"}, {0, nullptr, "GetStateChangeEvent"},
{1, nullptr, "SetInterface"}, {1, nullptr, "SetInterface"},
{2, nullptr, "GetInterface"}, {2, nullptr, "GetInterface"},
{3, nullptr, "GetAlternateInterface"}, {3, nullptr, "GetAlternateInterface"},
@ -176,15 +176,15 @@ public:
: ServiceFramework{system_, "IPdCradleSession"} { : ServiceFramework{system_, "IPdCradleSession"} {
// clang-format off // clang-format off
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0, nullptr, "VdmUserWrite"}, {0, nullptr, "SetCradleVdo"},
{1, nullptr, "VdmUserRead"}, {1, nullptr, "GetCradleVdo"},
{2, nullptr, "Vdm20Init"}, {2, nullptr, "ResetCradleUsbHub"},
{3, nullptr, "GetFwType"}, {3, nullptr, "GetHostPdcFirmwareType"},
{4, nullptr, "GetFwRevision"}, {4, nullptr, "GetHostPdcFirmwareRevision"},
{5, nullptr, "GetManufacturerId"}, {5, nullptr, "GetHostPdcManufactureId"},
{6, nullptr, "GetDeviceId"}, {6, nullptr, "GetHostPdcDeviceId"},
{7, nullptr, "Unknown7"}, {7, nullptr, "AwakeCradle"},
{8, nullptr, "Unknown8"}, {8, nullptr, "SleepCradle"},
}; };
// clang-format on // clang-format on
@ -219,12 +219,12 @@ public:
explicit USB_PM(Core::System& system_) : ServiceFramework{system_, "usb:pm"} { explicit USB_PM(Core::System& system_) : ServiceFramework{system_, "usb:pm"} {
// clang-format off // clang-format off
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0, nullptr, "Unknown0"}, {0, nullptr, "GetPowerEvent"},
{1, nullptr, "Unknown1"}, {1, nullptr, "GetPowerState"},
{2, nullptr, "Unknown2"}, {2, nullptr, "GetDataEvent"},
{3, nullptr, "Unknown3"}, {3, nullptr, "GetDataRole"},
{4, nullptr, "Unknown4"}, {4, nullptr, "SetDiagData"},
{5, nullptr, "Unknown5"}, {5, nullptr, "GetDiagData"},
}; };
// clang-format on // clang-format on