Difference between revisions of "GSPGPU:WriteHWRegs"

From 3dbrew
Jump to navigation Jump to search
(Convert to IPC templates)
 
Line 1: Line 1:
 
=Request=
 
=Request=
{| class="wikitable" border="1"
+
{{IPC/Request|Request}}
|-
+
{{IPC/RequestHeader|0x0001|2|2}}
!  Index Word
+
{{IPC/RequestEntry|[[GPU]] address based at 0x1EB00000, must be word-aligned}}
!  Description
+
{{IPC/RequestEntry|<nowiki>Size, must be <=0x80 and word-aligned</nowiki>}}
|-
+
{{IPC/TranslateStaticBuffer|Data pointer|0}}
| 0
+
{{IPC/RequestEnd}}
| Header code [0x00010082]
 
|-
 
| 1
 
| [[GPU]] address based at 0x1EB00000, must be word-aligned
 
|-
 
| 2
 
| Size, must be <=0x80 and word-aligned
 
|-
 
| 3
 
| {{IPC/TranslationDescriptor|(Size<<14) <nowiki>|</nowiki> 2}}
 
|-
 
| 4
 
| Data pointer
 
|}
 
  
 
=Response=
 
=Response=
{| class="wikitable" border="1"
+
{{IPC/Request|Response}}
|-
+
{{IPC/RequestHeader|0x0001|1|0}}
!  Index Word
+
{{IPC/RequestEntry|Result code}}
!  Description
+
{{IPC/RequestEnd}}
|-
 
| 0
 
| Header code
 
|-
 
| 1
 
| Result code
 
|}
 
  
 
=Description=
 
=Description=
 
This writes the input data to the specified GPU register address. The GPU register offset must be <0x420000.
 
This writes the input data to the specified GPU register address. The GPU register offset must be <0x420000.

Latest revision as of 23:18, 17 September 2024

Request[edit]

Request Word Description
0
Header 0x00010082 Cmd 0x0001 Param 2 Xlat 2
1 GPU address based at 0x1EB00000, must be word-aligned
2 Size, must be <=0x80 and word-aligned
3 Descriptor for static buffer (id 0)
4 Data pointer

Response[edit]

Response Word Description
0
Header 0x00010040 Cmd 0x0001 Param 1 Xlat 0
1 Result code

Description[edit]

This writes the input data to the specified GPU register address. The GPU register offset must be <0x420000.