NWMSOC:GetMACAddress

From 3dbrew
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Request

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

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

Description

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.