aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2017-03-23 19:29:12 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2017-03-23 19:29:12 +0000
commit591e79bc762a4a95e1e3a537e06d37a3def91950 (patch)
tree02ce264bcedcd6537d6c450856fe7b5335f01e8c /sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h
parent8f7eee5a63f1d5a1844fb1b08cf295b309cd0ccf (diff)
downloadsrc-591e79bc762a4a95e1e3a537e06d37a3def91950.tar.gz
src-591e79bc762a4a95e1e3a537e06d37a3def91950.zip
[mips/broadcom]: Early boot NVRAM support
Add support for early boot access to NVRAM variables, using a new bhnd_nvram_data_getvar_direct() API to support zero-allocation direct reading of NVRAM variables from a bhnd_nvram_io instance backed by the CFE NVRAM device. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D9913
Notes
Notes: svn path=/head/; revision=315866
Diffstat (limited to 'sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h')
-rw-r--r--sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h b/sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h
index b0ca4343870a..20de2e18dfc5 100644
--- a/sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h
+++ b/sys/dev/bhnd/nvram/bhnd_nvram_data_bcmvar.h
@@ -69,4 +69,8 @@ struct bhnd_nvram_bcmhdr {
uint32_t sdram_ncdl; /**< sdram_ncdl */
} __packed;
+int bhnd_nvram_bcm_getvar_direct_common(struct bhnd_nvram_io *io,
+ const char *name, void *outp, size_t *olen, bhnd_nvram_type otype,
+ bool have_header);
+
#endif /* _BHND_NVRAM_BHND_NVRAM_BCMVAR_H_ */