From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 19 09:05:10 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 3A01316A4CE for ; Sat, 19 Mar 2005 09:05:10 +0000 (GMT) Received: from smp500.sitetronics.com (sitetronics.com [82.192.77.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8FF43D2D for ; Sat, 19 Mar 2005 09:05:09 +0000 (GMT) (envelope-from dodell@offmyserver.com) Received: from localhost.sitetronics.com ([127.0.0.1] helo=smp500.sitetronics.com) by smp500.sitetronics.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1DCZsJ-000MEZ-E1 for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 10:04:03 +0100 Received: (from dodell@localhost) by smp500.sitetronics.com (8.12.11/8.12.11/Submit) id j2J942H9085470 for freebsd-hackers@freebsd.org; Sat, 19 Mar 2005 10:04:02 +0100 (CET) (envelope-from dodell@offmyserver.com) X-Authentication-Warning: smp500.sitetronics.com: dodell set sender to dodell@offmyserver.com using -f Date: Sat, 19 Mar 2005 10:04:02 +0100 From: "Devon H. O'Dell " To: freebsd-hackers@freebsd.org Message-ID: <20050319090402.GZ51688@smp500.sitetronics.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20050318160528.GQ51688@smp500.sitetronics.com> <20050318.155553.41699848.imp@bsdimp.com> <20050319080215.GX51688@smp500.sitetronics.com> <20050319084341.GY51688@smp500.sitetronics.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gSSGYPGSs0dvYOj7" Content-Disposition: inline In-Reply-To: <20050319084341.GY51688@smp500.sitetronics.com> User-Agent: Mutt/1.5.8i 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: Sat, 19 Mar 2005 09:05:10 -0000 --gSSGYPGSs0dvYOj7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > >=20 > > Rather, I have no way to identify that the system has the device :). >=20 > 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? >=20 > --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? --Devon --gSSGYPGSs0dvYOj7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCO+sCSkf3jVXOdl0RApTjAJ9deGmGf+0YWz2ZEXDHaNtnxQVP4wCePi55 yQpu65BMwOl4hFqxpgTHerw= =pyqm -----END PGP SIGNATURE----- --gSSGYPGSs0dvYOj7--