Wired network: Ethernet Wireless network: 4G, wifi, Bluetooth, 5G Summary: Internal MAC + external PHY + RJ45 socket (built-in network transformer) constitute a complete embedded network interface hardware. The internal MAC peripheral will connect to the external PHY chip through the MII or RMII interface. The MII/RMII interface is used to transmit network data. In addition, the master needs to configure or read the PHY chip, that is, read and write the internal registers of the PHY, so a control interface called MIDO is also required. MDIO is very similar to IIC, and also has two wires, a data line called MDIO, and a clock line called MDC. (1) Data link layer MAC is the abbreviation of Media Access Control, which is the media access control sublayer protocol. This protocol is located in the lower half of the data link layer in the OSI seven-layer protocol, and is mainly responsible for controlling the physical medium that connects the physical layer. When sending data, the MAC protocol can determine in advance whether the data can be sent. If it can be sent, some control information will be added to the data, and finally the data and control information will be sent to the physical layer in the specified format. When receiving data, the MAC protocol first determines the input information and whether a transmission error occurs. If there is no error, the control information will be removed and sent to the LLC layer. The Ethernet MAC is defined by the IEEE-802.3 Ethernet standard. (2) Physical layer PHY is the physical interface transceiver, which implements the physical layer. It includes MII/GMII (media independent interface) sublayer, PCS (physical coding sublayer), PMA (physical medium attachment) sublayer, PMD (physical medium dependent) sublayer, and MDI sublayer. (3) MII stands for Media Independent Interface. “Media independent” means that any type of PHY device can work normally without redesigning or replacing the MAC hardware. Includes two independent channels for transmitter and receiver respectively. Each channel has its own data, clock, and control signals. The MII data interface requires a total of 16 signals, including TX_ER, TXD<3:0>, TX_EN, TX_CLK, COL, RXD, RX_EX, RX_CLK, CRS, RX_DV, etc. (4) RMII stands for Reduced Media Independent Interface, which is a simplified version of the MII interface. The RMII interface only requires 7 data lines, which is 9 less than MII, greatly facilitating board wiring. A bus clock of 50 MHz is generally required. Like MII, RMII supports 10M and 100M bus interface speeds . (5) GMII is the MII interface of Gigabit Ethernet . It also has a corresponding RGMII interface, which means a simplified GMII interface. GMII uses 8-bit interface data and a working clock of 125MHz , so the transmission rate can reach 1000Mbps. It is also compatible with the 10/100 Mbps operating mode specified by MII. (6) MDIO interface Therefore, the MAC and external PHY chip are connected mainly through the MII/RMII and MDIO interfaces, and other pins such as reset and interrupt may also be required. appendix: This is the end of this article about the network driver of Linux devices. For more relevant Linux network driver content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Analysis of two usages of the a tag in HTML post request
>>: The best 9 foreign free picture material websites
This article shares with you the graphic tutorial...
The MySQL built-in date function TIMESTAMPDIFF ca...
This article example shares the specific code of ...
The warning points in this article have nothing t...
1. Install Docker yum -y install docker-io The &q...
Keepalived+Nginx+Tomcat to achieve high availabil...
MySQL 5.7 installation We are learning MySQL data...
Table of contents 1. Install Docker 2. Create a c...
This article example shares the specific code of ...
Vue components are connected, so it is inevitable...
The party that creates a new connection is equiva...
Because what I wrote before was not detailed enou...
After installing docker, there will usually be a ...
Table of contents 1. Basics 2. Problem Descriptio...
Linux file permissions First, let's check the...