How MDIO , SGMII is connected with phy chip and ethernet controller?
There may not be a separate MAC chip as they tend to be integrated into the SOC these days.

SGMII is the link that transfers Ethernet packet data between the MAC and PHY. MDIO is for configuration and status.