[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/51] hw/net: Add more MII definitions
From: |
Jason Wang |
Subject: |
[PULL 02/51] hw/net: Add more MII definitions |
Date: |
Tue, 7 Mar 2023 15:07:27 +0800 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
The definitions will be used by igb.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.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 4ae4dcc..c6a767a 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.7.4
- [PULL 00/51] Net patches, Jason Wang, 2023/03/07
- [PULL 01/51] e1000e: Fix the code style, Jason Wang, 2023/03/07
- [PULL 02/51] hw/net: Add more MII definitions,
Jason Wang <=
- [PULL 03/51] fsl_etsec: Use hw/net/mii.h, Jason Wang, 2023/03/07
- [PULL 04/51] e1000: Use hw/net/mii.h, Jason Wang, 2023/03/07
- [PULL 05/51] e1000: Mask registers when writing, Jason Wang, 2023/03/07
- [PULL 07/51] e1000e: Mask registers when writing, Jason Wang, 2023/03/07
- [PULL 06/51] e1000e: Introduce E1000E_LOW_BITS_SET_FUNC, Jason Wang, 2023/03/07
- [PULL 09/51] e1000e: Use more constant definitions, Jason Wang, 2023/03/07
- [PULL 08/51] e1000: Use more constant definitions, Jason Wang, 2023/03/07
- [PULL 10/51] e1000: Use memcpy to intialize registers, Jason Wang, 2023/03/07
- [PULL 11/51] e1000e: Use memcpy to intialize registers, Jason Wang, 2023/03/07
- [PULL 12/51] e1000e: Remove pending interrupt flags, Jason Wang, 2023/03/07