ir.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. namespace Service {
  6. class Interface;
  7. namespace IR {
  8. /**
  9. * IR::GetHandles service function
  10. * Outputs:
  11. * 1 : Result of function, 0 on success, otherwise error code
  12. * 2 : Translate header, used by the ARM11-kernel
  13. * 3 : Shared memory handle
  14. * 4 : Event handle
  15. */
  16. void GetHandles(Interface* self);
  17. /**
  18. * IR::InitializeIrNopShared service function
  19. * Inputs:
  20. * 1 : Size of transfer buffer
  21. * 2 : Recv buffer size
  22. * 3 : unknown
  23. * 4 : Send buffer size
  24. * 5 : unknown
  25. * 6 : BaudRate (u8)
  26. * 7 : 0
  27. * 8 : Handle of transfer shared memory
  28. * Outputs:
  29. * 1 : Result of function, 0 on success, otherwise error code
  30. */
  31. void InitializeIrNopShared(Interface* self);
  32. /**
  33. * IR::FinalizeIrNop service function
  34. * Outputs:
  35. * 1 : Result of function, 0 on success, otherwise error code
  36. */
  37. void FinalizeIrNop(Interface* self);
  38. /**
  39. * IR::GetConnectionStatusEvent service function
  40. * Outputs:
  41. * 1 : Result of function, 0 on success, otherwise error code
  42. * 2 : Connection Status Event handle
  43. */
  44. void GetConnectionStatusEvent(Interface* self);
  45. /**
  46. * IR::Disconnect service function
  47. * Outputs:
  48. * 1 : Result of function, 0 on success, otherwise error code
  49. */
  50. void Disconnect(Interface* self);
  51. /**
  52. * IR::RequireConnection service function
  53. * Inputs:
  54. * 1 : unknown (u8), looks like always 1
  55. * Outputs:
  56. * 1 : Result of function, 0 on success, otherwise error code
  57. */
  58. void RequireConnection(Interface* self);
  59. /// Initialize IR service
  60. void Init();
  61. /// Shutdown IR service
  62. void Shutdown();
  63. } // namespace IR
  64. } // namespace Service