aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bhnd/bhnd.h
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2016-06-04 19:31:06 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2016-06-04 19:31:06 +0000
commit2b693a88f62ce9cfa7e8c38d5d2222130edeb9ad (patch)
tree9945ad132f35c47ec7b89498af667c639ecfd8cf /sys/dev/bhnd/bhnd.h
parent574842628054be87be9d1768332b42d5be9acf93 (diff)
downloadsrc-2b693a88f62ce9cfa7e8c38d5d2222130edeb9ad.tar.gz
src-2b693a88f62ce9cfa7e8c38d5d2222130edeb9ad.zip
Fix several MIPS/BCM-blocking bugs in bhnd(4) chipc
- Correct IRQ lines for UART (to fix IRQ lookup in future) - Check device unit in resource assignment during chipc_add_child - If chipc hint->size is RM_MAX_END, resource end should be same as window end - Clear reference from resource list entry to resource in case of resource release - Add CHIPC_GET_CAPS implementation - Correct chipc flash constants (to be unshifted) - Default implementation of get_attach_type should iterate over device tree - Add default implementation for BHND_CHIPC_GET_CAPS usable by chipc grandchildren Submitted by: Michael Zhilin <mizhka@gmail.com> Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6584
Notes
Notes: svn path=/head/; revision=301408
Diffstat (limited to 'sys/dev/bhnd/bhnd.h')
-rw-r--r--sys/dev/bhnd/bhnd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bhnd/bhnd.h b/sys/dev/bhnd/bhnd.h
index 82a1ed8bdb5c..53215cf49648 100644
--- a/sys/dev/bhnd/bhnd.h
+++ b/sys/dev/bhnd/bhnd.h
@@ -356,6 +356,8 @@ int bhnd_bus_generic_activate_resource (device_t dev,
int bhnd_bus_generic_deactivate_resource (device_t dev,
device_t child, int type, int rid,
struct bhnd_resource *r);
+bhnd_attach_type bhnd_bus_generic_get_attach_type(device_t dev,
+ device_t child);