From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 23 19:37:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F55B16A4D4 for ; Wed, 23 Mar 2005 19:37:13 +0000 (GMT) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9974643D4C for ; Wed, 23 Mar 2005 19:37:12 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9085 invoked from network); 23 Mar 2005 19:37:12 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 23 Mar 2005 19:37:11 -0000 Received: from [10.50.41.231] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j2NJavai063392; Wed, 23 Mar 2005 14:37:05 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Wed, 23 Mar 2005 14:24:54 -0500 User-Agent: KMail/1.6.2 References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050319084341.GY51688@smp500.sitetronics.com> <20050319090402.GZ51688@smp500.sitetronics.com> In-Reply-To: <20050319090402.GZ51688@smp500.sitetronics.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503231424.54258.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: "Devon H. O'Dell " Subject: Re: Ziatech 5503 watchdog driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 19:37:13 -0000 On Saturday 19 March 2005 04:04 am, Devon H. O'Dell wrote: > On Sat, Mar 19, 2005 at 09:43:41AM +0100, Devon H. O'Dell wrote: > > On Sat, Mar 19, 2005 at 09:02:15AM +0100, Devon H. O'Dell wrote: > > > On Fri, Mar 18, 2005 at 03:55:53PM -0700, Warner Losh wrote: > > > > > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and > > > > > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my > > > > > driver, I have no way to identify that the system has the driver, > > > > > so I wanted to make it conditional on > > > > > > Rather, I have no way to identify that the system has the device :). > > > > AHA! But I have finally found something that will make my life a > > little easier, I think. I just noticed a read only register with a > > default value of 0x80 and tested it. It returns 0x80. Is this enough > > to test on / probe for? > > > > --Devon > > Sorry, hate replying to myself. Turns out the value here is variable. > > Assuming I cannot find anything to identify the system, can I simply > attach the driver if it is enabled in the configuration file? Yes. See the identify routines for things like apm and pmtimer for examples. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org