You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/21 09:06:46 UTC

[incubator-nuttx] 02/04: net: add DP83848C constants

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit eaa5f9ab4e4dafa5d1dd2eaf04bb90594bd72ae9
Author: Richard Tucker <ri...@motec.com.au>
AuthorDate: Fri Jun 3 11:08:27 2022 +1000

    net: add DP83848C constants
---
 include/nuttx/net/mii.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/nuttx/net/mii.h b/include/nuttx/net/mii.h
index 2862b9ecb5..31f0ac91dc 100644
--- a/include/nuttx/net/mii.h
+++ b/include/nuttx/net/mii.h
@@ -810,12 +810,19 @@
 
 /* DP83848C-specific register bit settings **********************************/
 
+/* DP83848C Register 0x10: PHY Status */
+
+#define MII_DP83848C_PHYSTS_SPEED     (1 << 1)  /* Bit 1: Speed Status Register */
+#define MII_DP83848C_PHYSTS_DUPLEX    (1 << 2)  /* Bit 2: Duplex Status Register */
+
 /* DP83848C Register 0x11: Interrupt control/status */
+
 #define MII_DP83848C_INT_TEST         (1 << 2)  /* Test Interrupt */
 #define MII_DP83848C_INT_EN           (1 << 1)  /* Interrupt enable */
 #define MII_DP83848C_INT_OEN          (1 << 0)  /* Interrupt output enable */
 
 /* DP83848C Register 0x12: Interrupt control/status */
+
 #define MII_DP83848C_ED_INT           (1 << 14) /* Energy Detect interrupt: */
 #define MII_DP83848C_LINK_INT         (1 << 13) /* Change of Link Status interrupt: */
 #define MII_DP83848C_SPD_INT          (1 << 12) /* Change of speed status interrupt: */