From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 22 16:22:34 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 81A3710656A3 for ; Sun, 22 Aug 2010 16:22:34 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 458EA8FC13 for ; Sun, 22 Aug 2010 16:22:33 +0000 (UTC) Received: by iwn36 with SMTP id 36so5587556iwn.13 for ; Sun, 22 Aug 2010 09:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SY19jtqZNPCpGK4Z3QbCyHKBM7+nw9deVlOuyDulRr4=; b=smVAR4oLhg5MgncYPmY4ZMO3t1XDsQTxHLNDseDHVRt1OcCy27f8zNVutNJvCqPUuo Y0Z9kI6809aLQ7X/Qducw0ItIW9bUK8UsNWbGqx1CmSCJUbhw1eIuEJkpup4IQ4T/JqZ q4xwIcm25WIzD3dYAeMEOp3dvk38ijdOlxlTQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=N/dj91NORtBrBUK6FG89KPFDi/XorgKD0aUbOBMNKoHM95+5QAvCDek8MZnX3HCcYl 1FLKUzpBd+jfKLTwX+wLodfDO8blLyEa7vAZL6SnZ+I4esewUXWT4jbjvuDdCnlGiRkr 9cZbvG0pCfBVrX39+WZpJQD+tKVuyrNthE7uw= MIME-Version: 1.0 Received: by 10.231.183.200 with SMTP id ch8mr5150623ibb.124.1282492462216; Sun, 22 Aug 2010 08:54:22 -0700 (PDT) Received: by 10.231.146.10 with HTTP; Sun, 22 Aug 2010 08:54:22 -0700 (PDT) In-Reply-To: <86ocde8tzd.fsf@ds4.des.no> 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> <86ocde8tzd.fsf@ds4.des.no> Date: Sun, 22 Aug 2010 08:54:22 -0700 Message-ID: From: Xin LI To: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org 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: Sun, 22 Aug 2010 16:22:34 -0000 2010/8/7 Dag-Erling Sm=C3=B8rgrav : > 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. =C2= =A0I > imagine you check the PCI id etc. first? It's not a PCI device unfortunately (at least, not the one I have encountered on my Supermicro board). I have a code snapshot at: http://people.freebsd.org/~delphij/for_review/winbondwd/ But there are some good features in bz@'s driver which I would like to brin= g in. Cheers, --=20 Xin LI http://www.delphij.net