[bhnd] Integrate bhnd_chipc's BUS_ADD_CHILD() with a child resource mapping table.
authoradrian <adrian@FreeBSD.org>
Thu, 26 May 2016 00:43:08 +0000 (00:43 +0000)
committeradrian <adrian@FreeBSD.org>
Thu, 26 May 2016 00:43:08 +0000 (00:43 +0000)
commit09f2468df4ebd45e8ce907e2000fa8a79cb4dffe
tree803f7ac2851f7d1eb0b8b8e9f9dc9cd9caf65871
parent221ca14ee282d2a4c15a2e79f446f6d3e74f80b1
[bhnd] Integrate bhnd_chipc's BUS_ADD_CHILD() with a child resource mapping table.

This adds support for automatically configuring bhnd_chipc bus children
with associated resources, using an internal 'hints' table based directly
on Michael Zhilin's chipc resource mapping work.

The bhnd_sprom_chipc driver has been converted to use DEVICE_IDENTIFY()
with the new resource table.

This should be nearly drop-in compatible with the child device drivers
in D6250.

Submitted by: Landon Fuller <landonf@landonf.org>
Reviewed by: Michael Zhilin <mizhka@gmail.com>
Differential Revision: https://reviews.freebsd.org/D6525
sys/dev/bhnd/cores/chipc/bhnd_sprom_chipc.c
sys/dev/bhnd/cores/chipc/chipc.c
sys/dev/bhnd/cores/chipc/chipcreg.h