From owner-cvs-src-old@FreeBSD.ORG Wed Oct 6 18:37:10 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59A821065693 for ; Wed, 6 Oct 2010 18:37:10 +0000 (UTC) (envelope-from ambrisko@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 479A18FC14 for ; Wed, 6 Oct 2010 18:37:10 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o96IbAbo089706 for ; Wed, 6 Oct 2010 18:37:10 GMT (envelope-from ambrisko@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o96IbA6u089705 for cvs-src-old@freebsd.org; Wed, 6 Oct 2010 18:37:10 GMT (envelope-from ambrisko@repoman.freebsd.org) Message-Id: <201010061837.o96IbA6u089705@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ambrisko@repoman.freebsd.org using -f From: Doug Ambrisko Date: Wed, 6 Oct 2010 18:36:50 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/conf options src/sys/dev/bce if_bce.c if_bcereg.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2010 18:37:10 -0000 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..nvram_dump Add the capability to write the complete contents of the NVRAM via sysctl dev.bce..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