freebsd-dev/sys/mips/cavium
Marius Strobl 8e5d93dbb4 Convert the PHY drivers to honor the mii_flags passed down and convert
the NIC drivers as well as the PHY drivers to take advantage of the
mii_attach() introduced in r213878 to get rid of certain hacks. For
the most part these were:
- Artificially limiting miibus_{read,write}reg methods to certain PHY
  addresses; we now let mii_attach() only probe the PHY at the desired
  address(es) instead.
- PHY drivers setting MIIF_* flags based on the NIC driver they hang
  off from, partly even based on grabbing and using the softc of the
  parent; we now pass these flags down from the NIC to the PHY drivers
  via mii_attach(). This got us rid of all such hacks except those of
  brgphy() in combination with bce(4) and bge(4), which is way beyond
  what can be expressed with simple flags.

While at it, I took the opportunity to change the NIC drivers to pass
up the error returned by mii_attach() (previously by mii_phy_probe())
and unify the error message used in this case where and as appropriate
as mii_attach() actually can fail for a number of reasons, not just
because of no PHY(s) being present at the expected address(es).

Reviewed by:	jhb, yongari
2010-10-15 14:52:11 +00:00
..
cryptocteon o) Add the "octusb" controller which supports the first port of the Octeon 2010-07-20 19:32:25 +00:00
octe Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
usb Fix octusb build. 2010-09-18 00:58:44 +00:00
asm_octeon.S o) Add SMP support for Octeon using U-Boot to launch all the processors at the 2010-04-17 03:08:13 +00:00
ciu.c o) Add bus_teardown_intr for pci and ciu. This allows the Promise SATA 2010-09-24 02:41:52 +00:00
cvmx_config.h Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
files.octeon1 o) Make it possible to attach a PHY directly to an octe device rather than 2010-10-13 09:17:44 +00:00
obio.c Fix to specify generic bus_add_child. 2010-09-19 09:18:27 +00:00
obiovar.h trim unused members of the softc. 2010-01-28 20:38:52 +00:00
octeon_ds1337.c Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
octeon_ebt3000_cf.c Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
octeon_machdep.c Don't use memory that can't be direct-mapped on !n64. 2010-09-19 09:18:07 +00:00
octeon_mp.c Make the meaning of the 'mask' argument to 'set_intr_mask(mask)' consistent 2010-09-15 05:10:50 +00:00
octeon_pcmap_regs.h Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
octeon_rnd.c Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
octeon_rtc.c Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
octopci_bus_space.c Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
octopci.c Give devices lots of time to settle around programming BARs and command 2010-09-27 20:35:40 +00:00
octopcireg.h Flesh out PCI bus support some: 2010-09-24 00:14:24 +00:00
octopcivar.h Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive 2010-07-20 19:25:11 +00:00
std.octeon1 Remove extra cpu setting and commented-out devices, some of which don't exist. 2010-10-02 01:28:18 +00:00
uart_bus_octeonusart.c Rather than shifting offsets by three, set register offset to 3. All our 2010-10-02 05:38:45 +00:00
uart_cpu_octeonusart.c Rather than shifting offsets by three, set register offset to 3. All our 2010-10-02 05:38:45 +00:00
uart_dev_oct16550.c Rather than shifting offsets by three, set register offset to 3. All our 2010-10-02 05:38:45 +00:00