From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 5 00:19:17 2005 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 8CED716A41F for ; Sat, 5 Nov 2005 00:19:17 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D80643D46 for ; Sat, 5 Nov 2005 00:19:16 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so6228wxc for ; Fri, 04 Nov 2005 16:19:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=O9L5nHyMvM/WZ4ndoYah3LjuybEqNboA9ZqtWNfUSfdwPROQgUWO2iHL1JCcc1YzdMr+FD6ij3fsRbdgeLNZHJpORvMXUrIP0d5uZUC5s/CKGAHErktefANQXDki68wciLzVYspNtDKHq07l5ndmHkxJNB3L4h+wPGRcNgE3q0c= Received: by 10.70.44.6 with SMTP id r6mr1545534wxr; Thu, 03 Nov 2005 20:30:38 -0800 (PST) Received: by 10.70.18.16 with HTTP; Thu, 3 Nov 2005 20:30:38 -0800 (PST) Message-ID: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> Date: Fri, 4 Nov 2005 12:30:38 +0800 From: kylin To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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, 05 Nov 2005 00:19:17 -0000 hello every one :) good day! i have list the 3 puzzle coming to me in my recent coding reading of freebs= d 0 /////////////// pci bridge dynamic resize ///////////// it seems that the device arch of freebsd is similar to what is revealed in window OS. i have read the pcie hotplug tps of windows longhorn ,it is said that with some hardware mechanisms the pci bridge driver can do global pci resource window reconfiguration.so good to the hotplugin pci device for it 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 does that a liitle overlap whit each other? -- we who r about to die,salute u!