xiaoxiang781216 commented on code in PR #18031:
URL: https://github.com/apache/nuttx/pull/18031#discussion_r2707620646


##########
include/nuttx/board.h:
##########
@@ -635,6 +635,26 @@ void board_autoled_off(int led);
 #  define board_autoled_off(led)
 #endif
 
+/****************************************************************************
+ * Name: board_get_netmac
+ *
+ * Description:
+ *   Get the network driver mac address.
+ *
+ * Input Parameters:
+ *   iface - The interface index.
+ *   mac   - The mac address.
+ *
+ * Returned Value:
+ *   Zero (OK) is returned on success; a negated errno value is returned on
+ *   any failure.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_BOARDCTL_NET_GETMAC
+int board_get_netmac(int iface, FAR uint8_t *mac);

Review Comment:
   ```suggestion
   int board_macaddr(int iface, FAR uint8_t *mac);
   ```



##########
include/sys/boardctl.h:
##########
@@ -216,6 +216,7 @@
 #define BOARDIOC_RESET_CAUSE       _BOARDIOC(0x0015)
 #define BOARDIOC_IRQ_AFFINITY      _BOARDIOC(0x0016)
 #define BOARDIOC_START_CPU         _BOARDIOC(0x0017)
+#define BOARDIOC_NET_GETMAC        _BOARDIOC(0x0018)

Review Comment:
   ```suggestion
   #define BOARDIOC_MACADDR           _BOARDIOC(0x0018)
   ```



##########
boards/Kconfig:
##########
@@ -5322,6 +5322,14 @@ config BOARDCTL_START_CPU
                Architecture specific logic must provide the board_start_cpu()
                interface.
 
+config BOARDCTL_NET_GETMAC

Review Comment:
   ```suggestion
   config BOARDCTL_MACADDR
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to