From owner-freebsd-embedded@FreeBSD.ORG Fri Dec 28 20:30:51 2007 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D505C16A418 for ; Fri, 28 Dec 2007 20:30:51 +0000 (UTC) (envelope-from marcelm@juniper.net) Received: from exprod7og102.obsmtp.com (exprod7og102.obsmtp.com [64.18.2.157]) by mx1.freebsd.org (Postfix) with ESMTP id 8330C13C448 for ; Fri, 28 Dec 2007 20:30:51 +0000 (UTC) (envelope-from marcelm@juniper.net) Received: from source ([66.129.224.36]) by exprod7ob102.postini.com ([64.18.6.12]) with SMTP; Fri, 28 Dec 2007 12:30:32 PST Received: from magenta.juniper.net ([172.17.27.123]) by emailsmtp55.jnpr.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 28 Dec 2007 12:26:56 -0800 Received: from mini-g4.jnpr.net (bobbyg-pc.jnpr.net [172.24.104.164] (may be forged)) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id lBSKR6971758; Fri, 28 Dec 2007 12:27:06 -0800 (PST) (envelope-from marcelm@juniper.net) Message-Id: <595F307F-8FC5-48D5-A69C-84660A768F23@juniper.net> From: Marcel Moolenaar To: "M. Warner Losh" In-Reply-To: <20071228.125020.-1962668065.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Fri, 28 Dec 2007 12:27:06 -0800 References: <20071228.114559.-311937481.imp@bsdimp.com> <20071228.125020.-1962668065.imp@bsdimp.com> X-Mailer: Apple Mail (2.915) X-OriginalArrivalTime: 28 Dec 2007 20:26:56.0405 (UTC) FILETIME=[FD9BB450:01C8498F] Cc: embedded@freebsd.org Subject: Re: ocpbus(4) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 20:30:51 -0000 On Dec 28, 2007, at 11:50 AM, M. Warner Losh wrote: > : Existing drivers that only check DEVTYPE (which I'm sure > : we'll start with) will have to check DEVCLASS as well if > : there's going to be variation within DEVTYPE. > > Are there existing drivers right now? The e500 port uses ocpbus(4) and if we make it generic, I can merge it into CVS independently of the e500 code itself. > FreeBSD has two models for device enumeration. One is where the > parent bus decides, by whatever means, and one where the device itself > has enough information to allow the driver to decide. I think that > trying to shoe-horn the second model into a situation where the first > model is actually better would be a disservice. When would the first be better? -- Marcel Moolenaar marcelm@juniper.net