GMAC Source Code Structure

The source code of GMAC is located in the following path:
Drivers/net/ethernet/stmicro/stmmac
The following code block provides an example of the GMAC source code.
1 Drivers/net/ethernet/stmicro/stmmac
2
3├── stmmac.h
4 ├── dwmac-starfive-plat.c
5 ├── stmmac_main.c 
Table 1. GMAC Source Code Structure
File Explanation
stmmac.h GMAC driver header file of the DWMAC platform. In this file, some macros, data structures and internal interfaces are defined.
dwmac-starfive-plat.c GMAC driver specific configuration options of the StarFive DWMAC platform
stmmac_main.c GMAC driver public interface on the DWMAC platform