Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 1998 11:03:37 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Stephen Hocking-Senior Programmer PGS Tensor Perth <shocking@prth.pgs.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Reading PCI card config registers et cetera
Message-ID:  <Pine.BSF.4.01.9809241101270.845-100000@herring.nlsystems.com>
In-Reply-To: <199809230737.PAA07767@ariadne.tensor.pgs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9809241101270.845-100000>