From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 04:42:36 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 974BC16A401 for ; Fri, 22 Feb 2008 04:42:36 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.freebsd.org (Postfix) with ESMTP id 42F2A13C46A for ; Fri, 22 Feb 2008 04:42:35 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so425980wra.13 for ; Thu, 21 Feb 2008 20:42:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=EkirH+l1t5lCH2tHOTbHegjoO+k6m4PrRtDXpqQvz4E=; b=RCV8t78m6ieYgP8nFANEHpQGZXxge53hv0vpIuwNzNLYkgKq6N9qnbmdrHg7wVZ6VcXXh7sP5Ep66w62yndAEKY+OhQ8oSN4ejMSts1K6V0lmAtmbyO0KuKOVBx6yuM0r2/gOF4kfU39E+37+e8Nvc81UxJdEg38wTNrzpLCroU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=jEhqn1uYQ72Va3BIDd3dPYhPYs1x+RRX/K8bMmTiWqoG4pfvsvdetf76jbXJDCI3drvd3JWW6n5HYWqzWxwpfNzWBFFUB0r+7WAKvUosi92J9aDGPShDzwd4cVqmlkDlKwsKKQIPjsTyinMJFOMavn1y4h2ECsNNU/EX6SefDL0= Received: by 10.142.141.21 with SMTP id o21mr8377927wfd.56.1203655353321; Thu, 21 Feb 2008 20:42:33 -0800 (PST) Received: from ?10.2.0.49? ( [67.96.45.122]) by mx.google.com with ESMTPS id 32sm1555263wfa.13.2008.02.21.20.42.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Feb 2008 20:42:32 -0800 (PST) Message-Id: <77944CFE-0BDB-433A-BA5C-6F776A5531AD@gmail.com> From: Garrett Cooper To: Mike Tancsa In-Reply-To: <200802220357.m1M3vt1u025891@lava.sentex.ca> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 21 Feb 2008 20:43:43 -0800 References: <200802220357.m1M3vt1u025891@lava.sentex.ca> X-Mailer: Apple Mail (2.919.2) Cc: David Duchscher , current@freebsd.org Subject: Re: Winbond IO chip driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 04:42:36 -0000 On Feb 21, 2008, at 7:57 PM, Mike Tancsa wrote: > At 10:21 PM 2/21/2008, David Duchscher wrote: >> I have started work on a WinBond chip driver (currently only the >> W83627HF chip) to provide access to the chips watchdog timer and > > Hi, > We have a similar one at > http://www.tancsa.com/watchdog/ > > its for the W83697UF/UG > > Not sure how different your chip is. I used the old ichwd driver as > a template > > ---Mike Looking at the relevant datasheets the pin config is different for all sides of the chip. Thus, you'll have to change the OP codes and methods used in read, writing, and polling operations. Plus the WDT setting procedure may be different... I too haven't written drivers for FreeBSD, but given my [limited] experience with C and PLDs (PICs to be exact), you may want to see whether or not the timing specs aren't being met as shown in the datasheet (assuming you're running into some level of deterministic errors). Using NOPs or verifying via readback for write operations (although inefficient) would most likely work to your advantage. May also want to try hackers@ instead of current@ Cheers, -Garrett