Date: Mon, 24 Jun 1996 21:52:54 +0200 From: se@zpr.uni-koeln.de (Stefan Esser) To: A JOSEPH KOSHY <koshy@india.hp.com> Cc: hackers@freebsd.org Subject: Re: Q: Getting PCI information Message-ID: <199606241952.AA11705@Sisyphos> In-Reply-To: A JOSEPH KOSHY <koshy@india.hp.com> "Q: Getting PCI information" (Jun 24, 14:24)
next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 24, 14:24, A JOSEPH KOSHY wrote: } Subject: Q: Getting PCI information } } Is there any way from user-land to get the current PCI configuration } on a machine? There are several possible approaches: 1) Read the PCI configuration space registers using port accesses 2) Read the PCI configuration space registers by calling PCI BIOS functions 3) Have the PCI probe code keep all information from the boot phase in a kernel table I'm strongly in favour of 3), since the other methods can't be guaranteed to be non-disruptive. Reading a port or memory mappings base address is no problem, but reading the size of such a map is done by changing the devices current configuration may cause a operation to fail! What information do you want to obtain ? Regards, STefan -- Stefan Esser, Zentrum fuer Paralleles Rechnen Tel: +49 221 4706021 Universitaet zu Koeln, Weyertal 80, 50931 Koeln FAX: +49 221 4705160 ============================================================================== http://www.zpr.uni-koeln.de/~se <se@ZPR.Uni-Koeln.DE>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606241952.AA11705>