From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 28 17:56:22 2005 Return-Path: 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 8A99916A4CE for ; Thu, 28 Apr 2005 17:56:22 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A052243D1F for ; Thu, 28 Apr 2005 17:56:21 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 57CD46538E; Thu, 28 Apr 2005 18:55:32 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28418-05-2; Thu, 28 Apr 2005 18:55:32 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-198-100.in-addr.btopenworld.com [81.134.198.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 7B9EB65213; Thu, 28 Apr 2005 18:55:31 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id EB3A9623B; Thu, 28 Apr 2005 18:56:17 +0100 (BST) Date: Thu, 28 Apr 2005 18:56:17 +0100 From: Bruce M Simpson To: Cole Message-ID: <20050428175617.GC1619@empiric.icir.org> Mail-Followup-To: Cole , freebsd-hackers@freebsd.org References: <000901c54c19$3dba2570$4206000a@deadmind> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c54c19$3dba2570$4206000a@deadmind> cc: freebsd-hackers@freebsd.org Subject: Re: PCI Programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 17:56:22 -0000 On Thu, Apr 28, 2005 at 07:39:33PM +0200, Cole wrote: > If anyone has any sample code or anything that I could read to proceed any further, it would be greatly appreciated. Have a look at the man page in section 9 for pci. You should be able to find most of what you need there. You should probably also look at one of the simpler PCI drivers in the kernel tree to see how similar things are done in FreeBSD land. Though it looks like the idiom you're trying to port may not be needed (you can just match the IDs in your driver's probe or attach routine, when the pci bus parent driver calls them through NEWBUS). Regards, BMS