From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 15:16:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D97C16A41F for ; Wed, 1 Jun 2005 15:16:55 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A255B43D53 for ; Wed, 1 Jun 2005 15:16:54 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so4210508nzo for ; Wed, 01 Jun 2005 08:16:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=N4Z48EELXbes3bM1jhIyC3W7xe8WoQiuG4TTiSKatUw7m2vCtsdXrW0eztSkd6NHSq+ZwU/ABPISmIOc3V2UO2yztV9VcxNX1csLCdGB2MDJe/AigSHJkR4K3BMCvRoybcSEtzapm6iIkbn+DK++8L+eOGN3Alan8HIp/49S1II= Received: by 10.36.34.18 with SMTP id h18mr2495465nzh; Wed, 01 Jun 2005 08:16:54 -0700 (PDT) Received: by 10.36.104.10 with HTTP; Wed, 1 Jun 2005 08:16:53 -0700 (PDT) Message-ID: <87ab37ab05060108167dee1d6@mail.gmail.com> Date: Wed, 1 Jun 2005 23:16:53 +0800 From: kylin To: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: what is the init entrance for pci bus scan in FREEbsd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kylin List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 15:16:55 -0000 Now i am coding a fake pcihotplug module in Freebsd 5.3 release, it contains two parts ,the userplace using a ioctl way to communicate with an cdev in /dev, and the kernel module which mainly operates on the Devclasses ,devlist and driverlist ....but still in the enable function,i have to rescan the pci bus. BUT, i can not find the pci bus scan code in the freebsd,i guess it was just an entry of the startup table which is made by compiler, still some one told me to follow the pci_init() way in LINUX ,but , i find it too hard in the OO structure bus arch of Freebsd .so WHERE can i get some code to follow in order to finish my pci rescan functi= on?=20 --=20 we who r about to die,salute u!