Date: Wed, 6 Oct 2010 18:36:50 +0000 (UTC) From: Doug Ambrisko <ambrisko@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/conf options src/sys/dev/bce if_bce.c if_bcereg.h Message-ID: <201010061837.o96IbA6u089705@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ambrisko 2010-10-06 18:36:50 UTC FreeBSD src repository Modified files: sys/conf options sys/dev/bce if_bce.c if_bcereg.h Log: SVN rev 213489 on 2010-10-06 18:36:50Z by ambrisko 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 Revision Changes Path 1.707 +1 -0 src/sys/conf/options 1.81 +67 -0 src/sys/dev/bce/if_bce.c 1.33 +1 -0 src/sys/dev/bce/if_bcereg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010061837.o96IbA6u089705>