freebsd-skq/sys/dev/dpaa
Justin Hibbits 47cabd046d Remove a hack requiring dtsec0 to always be enabled for mdio.
Instead replace it with a different hack, that turns fman into a simplebus
subclass, and maps its children within its address space.

Since all PHY communication is done through dtsec0's mdio space, the FDT
contains a reference to the dtsec0 mdio handle in all nodes that need it.
Instead of using Freescale's implementation for MII access, use our own (copied
loosely from the eTSEC driver, and could possibly be merged eventually).  This
lets us access the registers directly rather than needing a full dtsec interface
just to access the registers.

Future directions will include turning fman into more of a simplebus, and not
mapping the region and playing games.  This will require changes to the dtsec
driver to make it a child of fman, and possibly other drivers as well.
2016-10-21 02:16:11 +00:00
..
bman_fdt.c
bman_portals.c Use proper integer-pointer type conversions. 2016-10-18 00:55:15 +00:00
bman.c Remove an unnecessary debug printf. 2016-10-21 02:07:03 +00:00
bman.h
dpaa.c
fman_fdt.c Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
fman_mdio.c Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
fman.c Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
fman.h Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
if_dtsec_fdt.c Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
if_dtsec_im.c
if_dtsec_im.h
if_dtsec_rm.c Use the m_extadd() function instead of deprecated MEXTADD(). 2016-03-02 02:29:35 +00:00
if_dtsec_rm.h
if_dtsec.c Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
if_dtsec.h Remove a hack requiring dtsec0 to always be enabled for mdio. 2016-10-21 02:16:11 +00:00
portals_common.c Use proper integer-pointer type conversions. 2016-10-18 00:55:15 +00:00
portals.h
qman_fdt.c
qman_portals.c Use proper integer-pointer type conversions. 2016-10-18 00:55:15 +00:00
qman.c Use proper integer-pointer type conversions. 2016-10-18 00:55:15 +00:00
qman.h