From owner-cvs-src@FreeBSD.ORG Thu May 19 21:16:50 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA33516A4CE; Thu, 19 May 2005 21:16:50 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8164943D49; Thu, 19 May 2005 21:16:50 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4JLGoV4073465; Thu, 19 May 2005 21:16:50 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4JLGo2m073464; Thu, 19 May 2005 21:16:50 GMT (envelope-from marius) Message-Id: <200505192116.j4JLGo2m073464@repoman.freebsd.org> From: Marius Strobl Date: Thu, 19 May 2005 21:16:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/mk48txx mk48txx.c mk48txxreg.h mk48txxvar.h src/sys/sparc64/sparc64 eeprom.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 21:16:50 -0000 marius 2005-05-19 21:16:50 UTC FreeBSD src repository Modified files: sys/dev/mk48txx mk48txx.c mk48txxreg.h mk48txxvar.h sys/sparc64/sparc64 eeprom.c Log: - Add locking. - Add support for storing the century in MK48TXX_WDAY_CB on MK48Txx with extended registers when the MK48TXX_NO_CENT_ADJUST flag is set (and which is termed somewhat confusing as it actually means don't manually adjust the century in the driver). - Add the MI part of interfacing the watchdog functionality of MK48Txx with extended registers with watchdog(9). This is inspired by the SunOS/Solaris drivers for the 'eeprom' devices also having watchdog support. I actually expected this to work out of the box on Sun Exx00 machines with 'eeprom' devices which have a 'watchdog-enable' property. On terminal count of the the watchdog timer however only the MK48TXX_FLAGS_WDF bit rises but the reset signal and the interrupt respectively (depending on whether the MK48TXX_WDOG_WDS bit of the chip and the MK48TXX_WDOG_ENABLE_WDS flag of the driver respectively is set) goes nowhere. Apparently passing the reset signal on to the WDR line of the CPUs has to be enabled somewhere else but we don't have documentation for the Exx00 specific controllers. I decided to commit this nevertheless so it can be enabled in the eeprom(4) front-end later in e.g. 6.0-STABLE without breaking the API. Besides the Exx00 the watchdog part of the MK48Txx should also work on E250 and E450. Possibly also without extra fiddling on these machines but I haven't found someone willing to give it a try on such a machine so far. - Use uintXX_t instead of u_intXX_t, use __func__ instead of hardcoded function names in error strings. Revision Changes Path 1.6 +110 -38 src/sys/dev/mk48txx/mk48txx.c 1.5 +2 -0 src/sys/dev/mk48txx/mk48txxreg.h 1.2 +8 -3 src/sys/dev/mk48txx/mk48txxvar.h 1.9 +11 -1 src/sys/sparc64/sparc64/eeprom.c