Applet Manager services: Difference between revisions

No edit summary
 
Line 3,447: Line 3,447:
| 1 || [[#Ping|Ping]]
| 1 || [[#Ping|Ping]]
|-
|-
| 2 ||
| 2 || [[#GetEvent|GetEvent]]
|-
|-
| 3 || [20.1.1+]  
| 3 || [20.1.1+]  
Line 3,477: Line 3,477:
| 24 || [20.1.1+]
| 24 || [20.1.1+]
|-
|-
| 31 ||
| 31 || [[#GetFrameBufferInfo|GetFrameBufferInfo]]
|-
|-
| 8001 ||
| 8001 || [[#GetFrameBufferInfoForDebug|GetFrameBufferInfoForDebug]]
|-
|-
| 8003 || [19.0.0-19.1.0]
| 8003 || [19.0.0-19.1.0]
Line 3,486: Line 3,486:
|}
|}


=== Cmd2 ===
=== GetEvent ===
Unofficial name.
 
No input. Returns an output Event handle.
No input. Returns an output Event handle.


Line 3,531: Line 3,533:
Takes an ipc-buf with size 0xD8. No output.
Takes an ipc-buf with size 0xD8. No output.


=== Cmd31 ===
=== GetFrameBufferInfo ===
No input. Returns a struct with 0x28 and a struct with size 0x10.
Unofficial name.


=== Cmd8001 ===
No input. Returns an [[#(S2)_AdrawFrameBufferInfo|AdrawFrameBufferInfo]].
No input. Returns a struct with size 0x28 and a struct with size 0x10.
 
[[#(S2)_AdrawFrameBufferInfo|Id]] is "adrawfb".
 
=== GetFrameBufferInfoForDebug ===
Unofficial name.
 
No input. Returns an [[#(S2)_AdrawFrameBufferInfo|AdrawFrameBufferInfo]].


=== Cmd8003 ===
=== Cmd8003 ===
Line 3,675: Line 3,683:
|-
|-
| 423 ||  
| 423 ||  
|-
| 428 || [[#GetImageInfo]]
|-
|-
| 434 ||  
| 434 ||  
Line 3,711: Line 3,721:
|-
|-
| 1102 ||  
| 1102 ||  
|-
| 1301 || [[#InitializeAdraw]]
|-
| 1302 || [[#StartAdraw]]
|-
| 1325 || [[#GetAdrawFrameBufferHandle]]
|-
| 1326 || [[#GetAdrawImageHandle]]
|-
|-
| 1401 || [[#CreateNvDrv2UserSessionWithTransferMemory]]  
| 1401 || [[#CreateNvDrv2UserSessionWithTransferMemory]]  
Line 3,774: Line 3,792:


Called directly after [[#PrepareGpuManagerSession]].
Called directly after [[#PrepareGpuManagerSession]].
== GetImageInfo ==
Unofficial name.
Takes an input u32 '''ImageHandle'''. Returns an [[#(S2)_ImageInfo|ImageInfo]].


== CreateGpuManagerSessionWithTransferMemory ==
== CreateGpuManagerSessionWithTransferMemory ==
Line 3,788: Line 3,811:


[19.0.0] '''Version''' must be 2.
[19.0.0] '''Version''' must be 2.
== InitializeAdraw ==
Unofficial name.
No input/output.
== StartAdraw ==
Unofficial name.
No input/output.
Called directly after [[#InitializeAdraw]].
== GetAdrawFrameBufferHandle ==
Unofficial name.
Takes an input u64. Returns an output u32 '''FrameBufferHandle'''.
Official software sends the [[#(S2)_AdrawFrameBufferInfo|Id]] obtained with [[#GetFrameBufferInfo|GetFrameBufferInfo]] from [[#(S2)_adraw:a|adraw]].
== GetAdrawImageHandle ==
Unofficial name.
Takes seven input u64s, two input u16s and two input u32s. Returns an output u32 '''ImageHandle'''.
Official software sends 0x100000000 in the first u64, 0 in all remaining u64s, [[#(S2)_AdrawFrameBufferInfo|Width]] and [[#(S2)_AdrawFrameBufferInfo|Height]] in the two u16s, [[#(S2)_AdrawFrameBufferInfo|BlockCount]] int the first u32 and the '''FrameBufferHandle''' from [[#GetAdrawFrameBufferHandle|GetAdrawFrameBufferHandle]] in the last u32.


== CreateNvDrv2UserSessionWithTransferMemory ==
== CreateNvDrv2UserSessionWithTransferMemory ==
Line 4,714: Line 4,763:
|-
|-
| 4 || dp
| 4 || dp
|}
= (S2) AdrawFrameBufferInfo =
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x8 || Id
|-
| 0x8 || 0x2 || Width
|-
| 0xA || 0x2 || Height
|-
| 0xC || 0x4 || BlockCount
|-
| 0x10 || 0x8 ||
|-
| 0x18 || 0x8 ||
|-
| 0x20 || 0x8 ||
|}
= (S2) ImageInfo =
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x8 ||
|-
| 0x8 || 0x8 || Address
|-
| 0x10 || 0x8 ||
|-
| 0x18 || 0x8 ||
|-
| 0x20 || 0x8 ||
|-
| 0x28 || 0x8 ||
|-
| 0x30 || 0x8 ||
|-
| 0x38 || 0x4 || Offset
|-
| 0x3C || 0x4 || Size
|-
| 0x40 || 0x8 ||
|-
| 0x48 || 0x8 ||
|-
| 0x50 || 0x8 ||
|-
| 0x58 || 0x8 ||
|-
| 0x60 || 0x8 ||
|-
| 0x68 || 0x8 ||
|-
| 0x70 || 0x8 ||
|-
| 0x78 || 0x8 ||
|-
| 0x80 || 0x8 ||
|-
| 0x88 || 0x8 ||
|-
| 0x90 || 0x4 || Flags
|}
|}