From owner-freebsd-hackers@FreeBSD.ORG Sat May 20 03:15:17 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 B6D2916A459 for ; Sat, 20 May 2006 03:15:17 +0000 (UTC) (envelope-from fierykylin@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id C507B43D5A for ; Sat, 20 May 2006 03:15:09 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so630144wxd for ; Fri, 19 May 2006 20:15:09 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lv8Z51CdKFAZE9t39n2+PvwqnB/Ybzz8er2CXwVLcsxzgsuSC0+EDsmtrRXfv9/AyJiMKpqEYB7Bd7RXQRL+AQaEJS2nkC1/S1tRDEBBsv34H/2mnc3YcmQDDcEFdA0LSofwwyi3YsERqjiQXABk59X3XDAd2Uf8mb/3bYoGa58= Received: by 10.70.15.2 with SMTP id 2mr2867796wxo; Fri, 19 May 2006 20:15:08 -0700 (PDT) Received: by 10.70.43.11 with HTTP; Fri, 19 May 2006 20:15:08 -0700 (PDT) Message-ID: <87ab37ab0605192015h363ef74aw23dcc2d97721dea9@mail.gmail.com> Date: Sat, 20 May 2006 11:15:08 +0800 From: "william wallace" Sender: fierykylin@gmail.com To: freebsd-hackers@freebsd.org In-Reply-To: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> X-Google-Sender-Auth: 3a89d8a7b056ffee 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: Sat, 20 May 2006 03:15:17 -0000 about devclass_find_internal devclass_find_internal will be called to create a new devclass in such 2 conditions : one is creating a new device , as : if (name) { dc =3D devclass_find_internal(name, 0, TRUE); another is in the function:devclass_add_driver. but ,if a driver 's name is different from the name of any deviceclass in the system ,it just create a new devclass ,and link it self into the parent busdevice's driver link and do nothing .what is the use of the driver at this situation? On 11/4/05, kylin wrote: > > hello every one :) good day! > i have list the 3 puzzle coming to me in my recent coding reading of free= bsd > 0 > /////////////// > pci bridge dynamic resize > ///////////// > it seems that the device arch of freebsd is similar to what is revealed i= n > window OS. i have read the pcie hotplug tps of windows longhorn ,it is sa= id > that with some hardware mechanisms the pci bridge driver can do global pc= i > resource window reconfiguration.so good to the hotplugin pci device for i= t > avoid prelocating resource for the device . > i wonder ,if the mem /io/irq reconfiguration possible under freebsd .:) > > 1 > ////////////// > is bus_data_generation > ///////// > what idoes bus_data_generation for, is it the generation count for the > device manager tree? > void > bus_data_generation_update(void) > { > bus_data_generation++; > } > > 2 > ////////////// > pci_write_config vs pci_write_config_method > ////////////// > under the source code /dev/pci .there are functions name pci_write_config > (pcivar.h) and pci_write_config_method(pci.c) > they both call the parent method ,though the content is different ,but do= es > that a liitle overlap whit each other? > > > -- > we who r about to die,salute u! --=20 we who r about to die,salute u!