From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 24 23:10:27 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 14CA216A44C for ; Thu, 24 Nov 2005 23:10:27 +0000 (GMT) (envelope-from nz@thiemo.net) Received: from excalibur.ronald.org (excalibur.ronald.org [83.120.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4EFC445FD for ; Thu, 24 Nov 2005 20:25:40 +0000 (GMT) (envelope-from nz@thiemo.net) Received: from styx.ham01.thiemo.net (port-212-202-20-213.dynamic.qsc.de [212.202.20.213]) by excalibur.ronald.org (8.12.10/8.12.10) with ESMTP id jAOKPVls013123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Nov 2005 21:25:36 +0100 (CET) Received: from mygiea.ham01.thiemo.net (localhost [127.0.0.1]) by styx.ham01.thiemo.net (8.13.3/8.13.3) with ESMTP id jAOKPSAk084955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Nov 2005 21:25:30 +0100 (CET) Received: (from thiemo@localhost) by mygiea.ham01.thiemo.net (8.13.3/8.13.3/Submit) id jAOKPJtx084950; Thu, 24 Nov 2005 21:25:19 +0100 (CET) Date: Thu, 24 Nov 2005 21:25:19 +0100 From: Thiemo Nordenholz To: "M. Warner Losh" Message-ID: <20051124202519.GA84564@mygiea.ham01.thiemo.net> References: <20051123092045.GA48216@mygiea.ham01.thiemo.net> <20051124.021747.02300237.imp@bsdimp.com> <20051124111241.GB75190@mygiea.ham01.thiemo.net> <20051124.112632.65222526.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051124.112632.65222526.imp@bsdimp.com> User-Agent: Mutt/1.4.1i 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 23:10:27 -0000 > 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 As far as I have understood what I have seen so far, this chip will just handle the communication between "the computer" and the SD/MMC (both seem to be very similar to access, unfortunately the SD standard is not publicly available) card. I think once this controller has been programmed to use IRQ, DRQ and register base address, what one wants to access are those resources in the card itself, which can happen through those resources. My plan therefore was to first be able to make those settings and then talk to the card as defined in the MMC standard... Finding out if a card is in the slot, though, should work first as that's done by the controller. Cheers, Thiemo -- Query a PGP key server (e.g. http://www.pgp.net/) for my public key 41068629. Strange sender address? Please see http://www.thiemo.net/misc/list-mail.shtml