On Fri, 6 Apr 2018, Jonathan Gray wrote: > On Thu, Apr 05, 2018 at 09:57:17PM +0200, Stefan Fritsch wrote: > > Print the error code if hardware initialization failed. > > > > If EM_DEBUG is defined, print the phy/mac type during attach. > > ok jsg@ > > Though these are just enum values we assign that don't come from the > hardware. > > mac_type is set based on pci product and in some cases revision. > phy_type is mostly set based on hw->phy_id from PHY_ID1/PHY_ID2.
My workflow was looking at the code path through the em driver for this hardware, and then look at linux/freebsd what they do differently for the same hardware. Having these two values was necessary for that.