summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2010-10-06 18:36:50 +0000
committerambrisko <ambrisko@FreeBSD.org>2010-10-06 18:36:50 +0000
commit81421f8fc287fbb1fc113cd84cab418e9c373270 (patch)
treea4d3e56f16adea3c40a46a6008c8ebf8a02cc705 /sys/conf
parent526f3b44831a9e2ca2e896f3f88bc955b35dccf6 (diff)
downloadFreeBSD-src-81421f8fc287fbb1fc113cd84cab418e9c373270.zip
FreeBSD-src-81421f8fc287fbb1fc113cd84cab418e9c373270.tar.gz
Add the capability to read the complete contents of the NVRAM via sysctl
dev.bce.<unit>.nvram_dump Add the capability to write the complete contents of the NVRAM via sysctl dev.bce.<unit>.nvram_write These are only available if the kernel option BCE_DEBUG is enabled. The nvram_write sysctl also requires the kernel option BCE_NVRAM_WRITE_SUPPORT to be enabled. These are to be used at your own caution. Since the MAC addresses are stored in the NVRAM, if you dump one NIC and restore it on another NIC the destination NIC's MAC addresses will not be preserved. A tool can be made using these sysctl's to manage the on-chip firmware. Reviewed by: davidch, yongari
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/options1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options
index b12290a..75e2024 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -696,6 +696,7 @@ ED_SIC opt_ed.h
# bce driver
BCE_DEBUG opt_bce.h
+BCE_NVRAM_WRITE_SUPPORT opt_bce.h
SOCKBUF_DEBUG opt_global.h
OpenPOWER on IntegriCloud