From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 12:53:12 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2427B106566B for ; Sat, 7 Aug 2010 12:53:12 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id D98CD8FC16 for ; Sat, 7 Aug 2010 12:53:11 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id B368C1FFC33; Sat, 7 Aug 2010 12:53:10 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 8D1188452D; Sat, 7 Aug 2010 14:53:10 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: d@delphij.net References: <4C2B07F5.6030801@delphij.net> <4C2B4D35.8060903@feral.com> <86lj9wmbrz.fsf@ds4.des.no> <4C2BBF3C.4070503@delphij.net> <86hbkkmad1.fsf@ds4.des.no> <4C2BD498.3090704@delphij.net> <86d3v7n093.fsf@ds4.des.no> <4C5D4BFD.9080803@delphij.net> Date: Sat, 07 Aug 2010 14:53:10 +0200 In-Reply-To: <4C5D4BFD.9080803@delphij.net> (Xin LI's message of "Sat, 07 Aug 2010 05:05:17 -0700") Message-ID: <86ocde8tzd.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: Winbond Watchdog X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2010 12:53:12 -0000 Xin LI writes: > I'm still polishing up the driver, there seems to be no way to figure > out the base port address directly (datasheet said it's either 0x2e and > 0x4e) so for now I have its device identify method to do some dirty > hacks (outb/inb directly) and only check if with appropriate key entered > to the port we will get non-0xff value. Sounds gross, but if there's no other way, I guess it'll have to do. I imagine you check the PCI id etc. first? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no