[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/26] hw/net: Add more MII definitions
From: |
Akihiko Odaki |
Subject: |
[PATCH v2 02/26] hw/net: Add more MII definitions |
Date: |
Tue, 24 Jan 2023 13:31:19 +0900 |
The definitions will be used by igb.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
include/hw/net/mii.h | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/include/hw/net/mii.h b/include/hw/net/mii.h
index 4ae4dcce7e..c6a767a49a 100644
--- a/include/hw/net/mii.h
+++ b/include/hw/net/mii.h
@@ -81,20 +81,31 @@
#define MII_ANLPAR_ACK (1 << 14)
#define MII_ANLPAR_PAUSEASY (1 << 11) /* can pause asymmetrically */
#define MII_ANLPAR_PAUSE (1 << 10) /* can pause */
+#define MII_ANLPAR_T4 (1 << 9)
#define MII_ANLPAR_TXFD (1 << 8)
#define MII_ANLPAR_TX (1 << 7)
#define MII_ANLPAR_10FD (1 << 6)
#define MII_ANLPAR_10 (1 << 5)
#define MII_ANLPAR_CSMACD (1 << 0)
-#define MII_ANER_NWAY (1 << 0) /* Can do N-way auto-nego */
+#define MII_ANER_NP (1 << 2) /* Next Page Able */
+#define MII_ANER_NWAY (1 << 0) /* Can do N-way auto-nego */
+#define MII_ANNP_MP (1 << 13) /* Message Page */
+
+#define MII_CTRL1000_MASTER (1 << 11) /* MASTER-SLAVE Manual Configuration
Value */
+#define MII_CTRL1000_PORT (1 << 10) /* T2_Repeater/DTE bit */
#define MII_CTRL1000_FULL (1 << 9) /* 1000BASE-T full duplex */
#define MII_CTRL1000_HALF (1 << 8) /* 1000BASE-T half duplex */
+#define MII_STAT1000_LOK (1 << 13) /* Local Receiver Status */
+#define MII_STAT1000_ROK (1 << 12) /* Remote Receiver Status */
#define MII_STAT1000_FULL (1 << 11) /* 1000BASE-T full duplex */
#define MII_STAT1000_HALF (1 << 10) /* 1000BASE-T half duplex */
+#define MII_EXTSTAT_1000T_FD (1 << 13) /* 1000BASE-T Full Duplex */
+#define MII_EXTSTAT_1000T_HD (1 << 12) /* 1000BASE-T Half Duplex */
+
/* List of vendor identifiers */
/* RealTek 8201 */
#define RTL8201CP_PHYID1 0x0000
--
2.39.0
- [PATCH v2 00/26] e1000x cleanups (preliminary for IGB), Akihiko Odaki, 2023/01/23
- [PATCH v2 01/26] e1000e: Fix the code style, Akihiko Odaki, 2023/01/23
- [PATCH v2 02/26] hw/net: Add more MII definitions,
Akihiko Odaki <=
- [PATCH v2 03/26] fsl_etsec: Use hw/net/mii.h, Akihiko Odaki, 2023/01/23
- [PATCH v2 04/26] e1000: Use hw/net/mii.h, Akihiko Odaki, 2023/01/23
- [PATCH v2 05/26] e1000: Mask registers when writing, Akihiko Odaki, 2023/01/23
- [PATCH v2 06/26] e1000e: Mask registers when writing, Akihiko Odaki, 2023/01/23
- [PATCH v2 07/26] e1000: Use more constant definitions, Akihiko Odaki, 2023/01/23
- [PATCH v2 08/26] e1000e: Use more constant definitions, Akihiko Odaki, 2023/01/23
- [PATCH v2 09/26] e1000: Use memcpy to intialize registers, Akihiko Odaki, 2023/01/23
- [PATCH v2 10/26] e1000e: Use memcpy to intialize registers, Akihiko Odaki, 2023/01/23
- [PATCH v2 11/26] e1000e: Remove pending interrupt flags, Akihiko Odaki, 2023/01/23
- [PATCH v2 12/26] e1000e: Improve software reset, Akihiko Odaki, 2023/01/23