In the U-boot source code, miiphy_init() and phy_init() functions are initialising global variables for mii_dev and phy_driver structures.
I am looking for the source who will create/initialise global structure eth_device variable and maintain/use it during runtime.
Basically I am trying to understand who will create eth_device structure and how it will be handled during run time.