y2r_u.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/log.h"
  5. #include "core/hle/hle.h"
  6. #include "core/hle/kernel/event.h"
  7. #include "core/hle/service/y2r_u.h"
  8. ////////////////////////////////////////////////////////////////////////////////////////////////////
  9. // Namespace Y2R_U
  10. namespace Y2R_U {
  11. /**
  12. * Y2R_U::IsBusyConversion service function
  13. * Outputs:
  14. * 1 : Result of function, 0 on success, otherwise error code
  15. * 2 : Whether the current conversion is of type busy conversion (?)
  16. */
  17. static void IsBusyConversion(Service::Interface* self) {
  18. u32* cmd_buff = Kernel::GetCommandBuffer();
  19. cmd_buff[1] = RESULT_SUCCESS.raw;;
  20. cmd_buff[2] = 0;
  21. LOG_WARNING(Service, "(STUBBED) called");
  22. }
  23. const Interface::FunctionInfo FunctionTable[] = {
  24. {0x00010040, nullptr, "SetInputFormat"},
  25. {0x00030040, nullptr, "SetOutputFormat"},
  26. {0x00050040, nullptr, "SetRotation"},
  27. {0x00070040, nullptr, "SetBlockAlignment"},
  28. {0x000D0040, nullptr, "SetTransferEndInterrupt"},
  29. {0x000F0000, nullptr, "GetTransferEndEvent"},
  30. {0x00100102, nullptr, "SetSendingY"},
  31. {0x00110102, nullptr, "SetSendingU"},
  32. {0x00120102, nullptr, "SetSendingV"},
  33. {0x00180102, nullptr, "SetReceiving"},
  34. {0x001A0040, nullptr, "SetInputLineWidth"},
  35. {0x001C0040, nullptr, "SetInputLines"},
  36. {0x00200040, nullptr, "SetStandardCoefficient"},
  37. {0x00220040, nullptr, "SetAlpha"},
  38. {0x00260000, nullptr, "StartConversion"},
  39. {0x00270000, nullptr, "StopConversion"},
  40. {0x00280000, IsBusyConversion, "IsBusyConversion"},
  41. {0x002A0000, nullptr, "PingProcess"},
  42. {0x002B0000, nullptr, "DriverInitialize"},
  43. {0x002C0000, nullptr, "DriverFinalize"}
  44. };
  45. ////////////////////////////////////////////////////////////////////////////////////////////////////
  46. // Interface class
  47. Interface::Interface() {
  48. Register(FunctionTable, ARRAY_SIZE(FunctionTable));
  49. }
  50. } // namespace