From owner-freebsd-mobile@FreeBSD.ORG Mon Jan 29 09:53:37 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DACC016A591 for ; Mon, 29 Jan 2007 09:53:37 +0000 (UTC) (envelope-from a.bittau@cs.ucl.ac.uk) Received: from darkircop.org (tapir.cs.ucl.ac.uk [128.16.66.93]) by mx1.freebsd.org (Postfix) with ESMTP id 967F013C471 for ; Mon, 29 Jan 2007 09:53:37 +0000 (UTC) (envelope-from a.bittau@cs.ucl.ac.uk) Received: by darkircop.org (Postfix, from userid 0) id 444DC6D752; Mon, 29 Jan 2007 09:53:18 +0000 (GMT) Date: Mon, 29 Jan 2007 09:53:18 +0000 From: Andrea Bittau To: "M. Warner Losh" Message-ID: <20070129095317.GA1632@shorty.sorbonet.org> References: <20070126235526.GA10005@shorty.sorbonet.org> <20070126.222144.-1303465344.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070126.222144.-1303465344.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i X-Echelon: Bush Bomb War KGB Cc: mail@sashi.de, freebsd-mobile@freebsd.org Subject: Re: Hack for using SD card reader [on IBM x60s - Ricoh] X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 09:53:37 -0000 On Fri, Jan 26, 2007 at 10:21:44PM -0700, M. Warner Losh wrote: > Any chance you are interested in integrating this into the existing > sd/mmc infrastructure on FreeBSD? I read your blog and saw you were working on this. I wasn't able to find the code---duh; found it now [wasn't looking for "mmc"]. Here's a rough version [I ran out of time] that uses your mmc stuff. It does PIO [no DMA] =(. Check it out and let me know what i'm doing wrong. http://darkircop.org/sdh.tgz The main problem with the existing MMC stuff is how to tell the bus to remove card / add card. Or rather, to rescan the bus.