From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 24 18:28:12 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 128FB16A429 for ; Thu, 24 Nov 2005 18:28:12 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5B1F43D90 for ; Thu, 24 Nov 2005 18:27:27 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jAOIQD8s007916; Thu, 24 Nov 2005 11:26:13 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 24 Nov 2005 11:26:32 -0700 (MST) Message-Id: <20051124.112632.65222526.imp@bsdimp.com> To: listmember@thiemo.net From: "M. Warner Losh" In-Reply-To: <20051124111241.GB75190@mygiea.ham01.thiemo.net> References: <20051123092045.GA48216@mygiea.ham01.thiemo.net> <20051124.021747.02300237.imp@bsdimp.com> <20051124111241.GB75190@mygiea.ham01.thiemo.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 24 Nov 2005 11:26:13 -0700 (MST) Cc: freebsd-hackers@freebsd.org Subject: Re: Writing a driver for a card reader controller - how? 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: Thu, 24 Nov 2005 18:28:13 -0000 In message: <20051124111241.GB75190@mygiea.ham01.thiemo.net> Thiemo Nordenholz writes: : Hi Warner, : : > to be set. Can you send me a pointer to the winbond datasheet you are : > using? IIRC, this chip has an odd API since it appears to be derived : : As I have to wait for some spare time before trying to use the hints I have : received here, for now I can only answer that question - I found a datasheet : at http://www.winbond.com/e-winbondhtm/partner/PDFresult.asp?Pname=863 : which is what I try to work with. (That page sends a file "PDFresult.asp", : which is actually a PDF.) I've read through this pdf. As far as I can find, it just talks about how to setup the base address for each of the sets of registers without actually talking about the sets of registers themselves. Nor can I find in the document a pointer to the different register sets. Do you have one of those as well? It looks fairly easy to program this device's base addresses or inquire what they are. It is done in much the same way that super I/O chips are programmed. Warner