boards/boardctl: Add BOARDIOC_MACADDR command

Add a new boardctl command BOARDIOC_MACADDR to retrieve the MAC address of the network interface.

The board_macaddr function needs to be implemented by the board logic.

Signed-off-by: daichuan <daichuan@xiaomi.com>
This commit is contained in:
daichuan
2026-01-20 15:48:55 +08:00
committed by Xiang Xiao
parent d9d438f205
commit 763caabf6d
5 changed files with 72 additions and 1 deletions
@@ -110,6 +110,16 @@ Board information
which to receive the board unique ID.
:dependencies: Board logic must provide the :c:func:`board_uniqueid` interface.
.. c:macro:: BOARDIOC_MACADDR
Get the network driver MAC address.
:Argument: A pointer to an instance of :c:struct:`boardioc_macaddr_s`.
:configuration: CONFIG_BOARDCTL_MACADDR
:dependencies: Board logic must provide the :c:func:`board_macaddr` interface.
Filesystems
-----------