NWMSOC:GetMACAddress

From 3dbrew
Revision as of 23:19, 12 February 2017 by Yellows8 (talk | contribs) (Created page with "=Request= {{IPC/Request}} {{#vardefine:ipc_offset|0}} {{IPC/RequestEntry|Header code [0x00080040]}} {{IPC/RequestEntry|s32 size}} {{IPC/RequestEnd}} {{IPC/RequestStaticBuffer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x00080040]
1 s32 size

The handler for this IPC command expects the following 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 Descriptor for static buffer
1 Output buffer address

Response[edit]

Index Word Description
0 Header code
1 Result code
2 Descriptor for static buffer
3 Output data pointer

Description[edit]

Uses size=6 internally unless the input is <=6. Uses an ipc static_buffer(static_buf_id=0) for output with the specified size. The size is not used afterwards except for writing the static_buf translate-hdr to the cmdreply. This just copies 6-bytes from state(system MAC address) to the outbuf and returns 0.