From owner-freebsd-hackers Thu Sep 24 03:04:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA05852 for freebsd-hackers-outgoing; Thu, 24 Sep 1998 03:04:39 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA05847 for ; Thu, 24 Sep 1998 03:04:37 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.9.1/8.8.5) with SMTP id LAA03155; Thu, 24 Sep 1998 11:03:37 +0100 (BST) Date: Thu, 24 Sep 1998 11:03:37 +0100 (BST) From: Doug Rabson To: Stephen Hocking-Senior Programmer PGS Tensor Perth cc: hackers@FreeBSD.ORG Subject: Re: Reading PCI card config registers et cetera In-Reply-To: <199809230737.PAA07767@ariadne.tensor.pgs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 23 Sep 1998, Stephen Hocking-Senior Programmer PGS Tensor Perth wrote: > Linux has a whole bunch of functions for reading the configuration registers > of PCI cards and stuff that are nicely standardised. After a quick look > through the various. PCI drivers I can't see anything similar for FreeBSD. Can > anyone enlighten me if we have any such beast? Most of the important config registers (for memory regions etc) are read automatically. Any extra registers can be accessed with pci_cfgread() (new api) or pci_conf_read() (2.2 compatible api). You may also need to use pci_map_mem() and/or pci_map_port() to get access to memory and io regions. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message