aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bhnd/bhnd.h
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2016-07-12 02:16:48 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2016-07-12 02:16:48 +0000
commitfdedcd9f95e22a3e443cdd4b3df5d58de6ac6c28 (patch)
treead288409b1351008455e72cc1429fd69f7b65789 /sys/dev/bhnd/bhnd.h
parent494fa6b93328909ffd45c7eb9c113df5e154cd45 (diff)
downloadsrc-fdedcd9f95e22a3e443cdd4b3df5d58de6ac6c28.tar.gz
src-fdedcd9f95e22a3e443cdd4b3df5d58de6ac6c28.zip
bhnd(4): Add bus pass-aware discovery of platform devices (PMU,
NVRAM, ChipCommon, etc). This extends the existing handling of NVRAM core discovery to support locating additional devices that may be attached either directly as real cores, or indirectly via ChipCommon (e.g. bhnd_pmu). When attached as a SoC root bus (as opposed to a bridged WiFi device), the platform devices may not be attached until later bus passes, necessitating delayed discovery/initialization. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6962
Notes
Notes: svn path=/head/; revision=302604
Diffstat (limited to 'sys/dev/bhnd/bhnd.h')
-rw-r--r--sys/dev/bhnd/bhnd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/bhnd/bhnd.h b/sys/dev/bhnd/bhnd.h
index f0112376b1c7..33fbbfa3665e 100644
--- a/sys/dev/bhnd/bhnd.h
+++ b/sys/dev/bhnd/bhnd.h
@@ -43,6 +43,8 @@
#include "bhnd_bus_if.h"
#include "bhnd_match.h"
+#include "nvram/bhnd_nvram.h"
+
extern devclass_t bhnd_devclass;
extern devclass_t bhnd_hostb_devclass;
extern devclass_t bhnd_nvram_devclass;
@@ -242,6 +244,7 @@ struct bhnd_device {
const char *bhnd_vendor_name(uint16_t vendor);
const char *bhnd_port_type_name(bhnd_port_type port_type);
+const char *bhnd_nvram_src_name(bhnd_nvram_src nvram_src);
const char *bhnd_find_core_name(uint16_t vendor,
uint16_t device);
@@ -324,7 +327,7 @@ bool bhnd_bus_generic_is_hw_disabled(device_t dev,
bool bhnd_bus_generic_is_region_valid(device_t dev,
device_t child, bhnd_port_type type,
u_int port, u_int region);
-int bhnd_bus_generic_read_nvram_var(device_t dev,
+int bhnd_bus_generic_get_nvram_var(device_t dev,
device_t child, const char *name,
void *buf, size_t *size);
const struct bhnd_chipid *bhnd_bus_generic_get_chipid(device_t dev,
@@ -332,9 +335,6 @@ const struct bhnd_chipid *bhnd_bus_generic_get_chipid(device_t dev,
int bhnd_bus_generic_read_board_info(device_t dev,
device_t child,
struct bhnd_board_info *info);
-int bhnd_bus_generic_get_nvram_var(device_t dev,
- device_t child, const char *name,
- void *buf, size_t *size);
struct bhnd_resource *bhnd_bus_generic_alloc_resource (device_t dev,
device_t child, int type, int *rid,
rman_res_t start, rman_res_t end,