From owner-cvs-all@FreeBSD.ORG Wed Nov 17 16:37:25 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8953816A4CE; Wed, 17 Nov 2004 16:37:25 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78EAF43D39; Wed, 17 Nov 2004 16:37:25 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iAHGbPgf074078; Wed, 17 Nov 2004 16:37:25 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iAHGbPeZ074077; Wed, 17 Nov 2004 16:37:25 GMT (envelope-from marius) Message-Id: <200411171637.iAHGbPeZ074077@repoman.freebsd.org> From: Marius Strobl Date: Wed, 17 Nov 2004 16:37:25 +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/conf files src/sys/dev/mc146818 mc146818.c mc146818reg.h mc146818var.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 16:37:25 -0000 marius 2004-11-17 16:37:25 UTC FreeBSD src repository Modified files: sys/conf files sys/dev/mc146818 mc146818reg.h Added files: sys/dev/mc146818 mc146818.c mc146818var.h Log: Add a driver back end for MC146818 and compatible clocks based on the respective NetBSD driver for use with the genclock interface. It's first use will be on sparc64 but it was also tested on alpha with a preliminary patch to switch alpha to use the genclock code together with this driver instead of the respective code in alpha/alpha/clock.c and the rather MD mcclock(4). Using it on i386 and amd64 won't be that hard but some changes/extensions to improve the genclock code in general should be done first, e.g. add locking and make it easier to access the NVRAM usually coupled with RTCs. Revision Changes Path 1.970 +1 -0 src/sys/conf/files 1.1 +275 -0 src/sys/dev/mc146818/mc146818.c (new) 1.5 +5 -47 src/sys/dev/mc146818/mc146818reg.h 1.1 +60 -0 src/sys/dev/mc146818/mc146818var.h (new)