From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 2 19:34:47 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 978EE195 for ; Tue, 2 Jul 2013 19:34:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by mx1.freebsd.org (Postfix) with ESMTP id 63D17110D for ; Tue, 2 Jul 2013 19:34:47 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id 16so5955668obc.40 for ; Tue, 02 Jul 2013 12:34:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=jHnLEivTa4P2sL7H+sO7zbu56z0j64Agl37Klu1lQq0=; b=O/WQPAkfakOO+MGUoa9A2WBWHBzG69wuxKTDgUUn09pH7ch3auNBng8vop0OyRUSFX 0uXxx0zFDFjUEJYGcE7fC4WmrKSL9OOg9UEztiZrshZ70Pz1k0/31QDlVDXJWQkqYXSw pukFpnbBDAFgLWnxUo7ZTk0XRyGNesQEAHyZVxelj7WOPsOu+prmzMe21zDIyon9GUhJ ipQWlUm+82XEBojd6+aF3Dnb7MIgRHGvjbx89tP/DW+G8iqBGTWBfQYLAdJrFck1c6np BHRUzNLfB4M6NXyaf0r4qqxOz0hy69bMxFWBYyN9pz5uKz0vNTyNSL7xFaP2kglqxh2E yC7w== X-Received: by 10.182.61.73 with SMTP id n9mr13897130obr.86.1372793681296; Tue, 02 Jul 2013 12:34:41 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id rs4sm6174374obc.10.2013.07.02.12.34.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jul 2013 12:34:40 -0700 (PDT) Sender: Warner Losh Subject: Re: [PATCH] SDIO support for Globalscale Dreamplug Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <51D3282C.1090701@bakulin.de> Date: Tue, 2 Jul 2013 13:34:37 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: <20130702145905.GA1847@olymp.kibab.com> <51D3097A.8010601@FreeBSD.org> <51D3282C.1090701@bakulin.de> To: Ilya Bakulin X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkC44XKke3EtV8ke8MHdhVEijuE2JcivqRTG6PutD1WXJTzg8y9JPdwltouEa64v6lboWRe Cc: Alexander Motin , freebsd-arm@freebsd.org, freebsd-embedded@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 19:34:47 -0000 On Jul 2, 2013, at 1:21 PM, Ilya Bakulin wrote: > On 02.07.13 19:10, Alexander Motin wrote: >> I think SD world is a terrible mess by itself. I would like to not add >> more. Functions that suppose card access should take card-specific >> structure or device as an argument, not a bus ones. > The problem is that there is a SDIO card which has up to 7 functions, > but it itself has some characteristics that are available at function 0. > If we add, say, sdio0 device and store this information there, we end up > with > the hierarchy suggested by Ben Gray a year ago. Yea, and I didn't like that at all. It violates the FreeBSD device model. > The SD-specific functions like CSD/CSR operations are also in the mmc.c > and considered to be the bus code... All this code is for device enumeration, which belongs in the bus layer. > Or am I missing something obvious here? > >> I would try to look for SDIO Bluetooth card. I think such ones still >> could be found on eBay, and I think there are some specifications for >> that. Though I've never looked inside. > > The SDIO card found in the Dreamplug has three functions, one of them is > Bluetooth. > Will try to find some docs / Linux code for that... I'll see if I can dig mine up as well. This sounds like a fun project.. I'll review the actual code here in a bit. Warner