freebsd-skq/sys/mips/broadcom
Landon J. Fuller 111d7cb2e3 Migrate bhndb(4) to the new bhnd_erom API.
Adds support for probing and initializing bhndb(4) bridge state using
the bhnd_erom API, ensuring that full bridge configuration is available
*prior* to actually attaching and enumerating the bhnd(4) child device,
allowing us to safely allocate bus-level agent/device resources during
bhnd(4) bus enumeration.

- Add a bhnd_erom_probe() method usable by bhndb(4). This is an analogue
  to the existing bhnd_erom_probe_static() method, and allows the bhndb
  bridge to discover the best available erom parser class prior to newbus
  probing of its children.
- Add support for supplying identification hints when probing erom
  devices. This is required on early EXTIF-only chipsets, where chip
  identification registers are not available.
- Migrate bhndb over to the new bhnd_erom API, using bhnd_core_info
  records rather than bridged bhnd(4) device_t references to determine
  the bridged chipsets' capability/bridge configuration.
- The bhndb parent (e.g. if_bwn) is now required to supply a hardware
  priority table to the bridge. The default table is currently sufficient
  for our supported devices.
- Drop the two-pass attach approach we used for compatibility with bhndb(4) in
  the bhnd(4) bus drivers, and instead perform bus enumeration immediately,
  and allocate bridged per-child bus-level resources during that enumeration.

Approved by:	adrian (mentor)
Differential Revision:	https://reviews.freebsd.org/D7768
2016-09-04 00:58:19 +00:00
..
bcm_machdep.c Migrate bhndb(4) to the new bhnd_erom API. 2016-09-04 00:58:19 +00:00
bcm_machdep.h Implement a generic bhnd(4) device enumeration table API. 2016-09-03 23:57:17 +00:00
bcm_mips_exts.h [mips/broadcom] Generic platform_reset() support. 2016-08-26 20:16:02 +00:00
bcm_mipscore.c bhnd(4): Fix mips/broadcom core matching and bus pass order. 2016-06-08 21:38:51 +00:00
bcm_mipscore.h
bcm_pmu.c Implement a generic bhnd(4) device enumeration table API. 2016-09-03 23:57:17 +00:00
files.broadcom Implement a generic bhnd(4) device enumeration table API. 2016-09-03 23:57:17 +00:00
std.broadcom Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
uart_bus_chipc.c [mips/broadcom]: Replace static frequency table with generic PMU clock 2016-08-27 00:06:20 +00:00
uart_cpu_chipc.c [mips/broadcom]: Replace static frequency table with generic PMU clock 2016-08-27 00:06:20 +00:00