From owner-freebsd-hackers@FreeBSD.ORG Tue May 30 14:42:23 2006 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 D60C316A595 for ; Tue, 30 May 2006 14:42:23 +0000 (UTC) (envelope-from fierykylin@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E51043D5E for ; Tue, 30 May 2006 14:42:22 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so288514wxd for ; Tue, 30 May 2006 07:42:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=kH6B2n05ysa6ACgoGfbMl/xxz9a4cHo0mX4QaAbe/CJsMRaxmVgmtjgUz5R1f5o+srEVVzOe9jlnsJyZi9A6KGl4QmXia0IX79xVZYxhPnsf/mD/Octiq2j4PMKuNnTpbEAffaKTFRAru6qyH1zhV+m9TRtDGQRCqbK6QpowE8w= Received: by 10.70.69.8 with SMTP id r8mr3633491wxa; Tue, 30 May 2006 07:42:22 -0700 (PDT) Received: by 10.70.43.11 with HTTP; Tue, 30 May 2006 07:42:22 -0700 (PDT) Message-ID: <87ab37ab0605300742h14493096gbf8cb05e72bacd74@mail.gmail.com> Date: Tue, 30 May 2006 22:42:22 +0800 From: "william wallace" Sender: fierykylin@gmail.com To: "Scott Long" In-Reply-To: <447C548C.4080302@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060524153153.GF49081@funkthat.com> <87ab37ab0605280309s15a31cb4yc8a54be1af5472dd@mail.gmail.com> <87ab37ab0605300642ja608c97s24836a317cdac24@mail.gmail.com> <20060530.075818.-820706528.imp@bsdimp.com> <447C548C.4080302@samsco.org> X-Google-Sender-Auth: 86e5d887ecc22c28 Cc: freebsd-hackers@freebsd.org, John-Mark Gurney Subject: Re: misc questions about the device&driver arch 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: Tue, 30 May 2006 14:42:27 -0000 On 5/30/06, Scott Long wrote: > M. Warner Losh wrote: > > : THIRD > > : Because the PCIE configure space is 4k long ,shall we change the > > : #define PCI_REGMAX 255 > > : to facilitate the PCI express config R/W? > > > > Maybe. Lemme investigate because PCIe changes this from a well known > > constant for all pci busses, to a variable one... > > > > Warner > > When I added PCIe extended config support, I never took into > consderation the userland access point of view. Changing this > definition to 4096 might Just Work, and it might Not Work. Dunno. > In the 18 months since I implemented it, no other person has asked > about userland access. Other than the silly case of people trying > to write device drivers in PERL, I'm not sure how much value it > gives compared to the stability and security risk it imposes. > > Scott > > I have to clarify my intentions that i am not TRYing to do a userland PCI express driver . I just want to make a interesting branch whitch can do pci express native Hot plug and hot remove ,with Mr Losh and other gentlemen's help ,i am making progress ,and now a loadable module is finishing . I have borrowed many Ideas from Linux ,but several fatal difficulties paused me ,with the PCI_REGMAX included. wish to hear from u :) thank u! -- we who r about to die,salute u!