From owner-freebsd-hackers@FreeBSD.ORG Wed May 24 07:48:47 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 695C516A425 for ; Wed, 24 May 2006 07:48:47 +0000 (UTC) (envelope-from fierykylin@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5EC343D49 for ; Wed, 24 May 2006 07:48:46 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so1208062wxd for ; Wed, 24 May 2006 00:48:46 -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=eAyR6ccIw3GleM8CcLAA50VjGx5+Bb7jQ6+J1FAMwLZIc1gBAhPDNMXmfJANVQu6lAwhBwvunHzbKABUJn1LAEiNC4pguauTiAKv+XxyDYpUYopL7tsMZ+QLh4//eZTuTtDNS8o0sSHcfNHsTgS3r89U4vH6mXidyP/frLmKRFg= Received: by 10.70.116.10 with SMTP id o10mr7398859wxc; Wed, 24 May 2006 00:48:46 -0700 (PDT) Received: by 10.70.43.11 with HTTP; Wed, 24 May 2006 00:48:46 -0700 (PDT) Message-ID: <87ab37ab0605240048g224218a5s87cfe1b1ed5cc8c9@mail.gmail.com> Date: Wed, 24 May 2006 15:48:46 +0800 From: "william wallace" Sender: fierykylin@gmail.com To: "Scott Long" , imp@bsdimp.com In-Reply-To: <44729B81.8010909@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0605210108w127a235bue281428f52bbc784@mail.gmail.com> <20060521.114807.74702188.imp@bsdimp.com> <87ab37ab0605212328ue7c70fcu49c5fec8921ae229@mail.gmail.com> <20060522.005010.104089663.imp@bsdimp.com> <87ab37ab0605221816y6cca5387sc43fa1e1116f55cc@mail.gmail.com> <44729B81.8010909@samsco.org> X-Google-Sender-Auth: ee0f50cfeb6d7863 Cc: "freebsd-hackers@freebsd.org" 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: Wed, 24 May 2006 07:48:49 -0000 IN static device_method_t pci_methods[] =3D { what is the freeBSD's magic to connect pci_read_config_method wtih PCI_READ_CONFIG? awk script?and so on? which DEVMETHOD(pci_read_config,=09pci_read_config_method), in pci.c command =3D PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2); in pci_enable_io_method in pci.c and what if i create a new method in pci method interface ? such as DEVMETHOD(pci_have_rest ,=09pci_have_rest_method) what else should i do when i want to use PCI_HAVE_REST(dev ) point to pci_have_rest_method On 5/23/06, Scott Long wrote: > william wallace wrote: > > [...] > > > MSI: > > I've bantered around different suggestions for an API that will support > > this. The basic thing that a driver needs from this is to know > > exactly how many message interrupt vectors are available to it. It > > can't just register vectors and handlers blindly since the purpose of > > MSI is to assign special meanings to each vector and allow the driver t= o > > handle each one in specifically. > > [...] > > I just wanted to briefly say that an MSI implementation has been done > recently, and that it should start getting wider circulation and review > soon. That's not to say that more work and design can't be done in this > area, but we should probably wait a bit and see what has been done > already. > > Scott > > --=20 we who r about to die,salute u!