From owner-freebsd-mobile@FreeBSD.ORG Fri Dec 28 14:41:59 2007 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC77616A417 for ; Fri, 28 Dec 2007 14:41:59 +0000 (UTC) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (chuggalug2.demon.co.uk [83.104.169.191]) by mx1.freebsd.org (Postfix) with ESMTP id 35F4013C4CC for ; Fri, 28 Dec 2007 14:41:58 +0000 (UTC) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (localhost [127.0.0.1]) by chuggalug.clues.com (8.14.0/8.12.10) with ESMTP id lBSESjed036402 for ; Fri, 28 Dec 2007 14:28:45 GMT (envelope-from geoffb@chuggalug.clues.com) Received: (from geoffb@localhost) by chuggalug.clues.com (8.13.8/8.12.10/Submit) id lBSESj0N036401 for mobile@freebsd.org; Fri, 28 Dec 2007 14:28:45 GMT (envelope-from geoffb) Date: Fri, 28 Dec 2007 14:28:45 +0000 From: Geoff Buckingham To: mobile@freebsd.org Message-ID: <20071228142845.GA35822@chuggalug.clues.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Cc: Subject: sdh PCI SD driver use in RELENG_7? 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: Fri, 28 Dec 2007 14:41:59 -0000 I have been trying to get the sdh driver working in RELENG_7. I have found the original driver doesn't compile. http://lists.freebsd.org/pipermail/freebsd-mobile/2007-February/009508.html However some use of google found updated versions of sdh.c sdhreg.h and sdhvar.h at: http://phk.freebsd.dk/patch/ These allow me to compile a module, that attaches: sdh0@pci0:3:1:1: class=0x080501 card=0x01bd1028 chip=0x08221180 rev=0x19 hdr=0x00 vendor = 'Ricoh Company, Ltd.' device = 'R5C832, R5C843 SDA Standard Compliant SD Host Controller' class = base peripheral and gives me a slow, but working /dev/mmcsd0. I have found no explanation of the phk hosted versions, however a diff of sdh.c showed they addressed the first compile error I was getting with the original version. So I used them and it seems to work. Is there a more up to date version I should be using?