There is no single standard or common interface to the networking hardware. However, there are a few widely used standards that provide a common way to access the networking hardware.
- PCIe: Most modern network adapters use the Peripheral Component Interconnect Express (PCIe) bus to communicate with the rest of the system. PCIe is a high-speed serial bus that provides a standardized interface for connecting peripherals to a computer.
- Ethernet: Ethernet is the most common type of wired network technology. Ethernet adapters typically use the Media Independent Interface (MII) or Reduced Media Independent Interface (RMII) to connect to the Ethernet cable. MII and RMII are standardized interfaces that define the electrical and signaling characteristics of the connection between the Ethernet adapter and the Ethernet cable.
In addition to the physical interface, there is also a software interface that is used to access the networking hardware. The most common software interface for network adapters is the network driver. A network driver is a software program that allows the operating system to communicate with the network adapter.
Do we still need drivers for each and every network adapter?
Yes, we still need drivers for each and every network adapter. This is because different network adapters use different hardware designs and features. The driver provides the operating system with the information it needs to communicate with the specific hardware design of the network adapter.
Can we just DMA into hardware in a more-or-less the same way?
In some cases, it is possible to DMA into the networking hardware without using a driver. However, this is typically only possible for very simple network adapters. For more complex network adapters, it is necessary to use a driver to access the hardware.
Conclusion
While there are some standards that provide a common way to access the networking hardware, there is no single standard or common interface to the networking hardware. As a result, we still need drivers for each and every network adapter.
Additional information
In some cases, it is possible to use a generic driver for a particular type of network adapter. This can be useful if you are using a network adapter that is not supported by a specific operating system. However, using a generic driver may not provide the same level of performance and features as using a specific driver for the network adapter.
There are also some operating systems that do not require drivers for network adapters. These operating systems typically use a built-in driver that supports a wide range of network adapters. However, these built-in drivers may not provide the same level of performance and features as using a specific driver for the network adapter.