Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 05/18/1998 10:30:02
cgd
Mon May 18 10:25:18 PDT 1998
Update of /cvsroot/src/sys/dev/pci
In directory nb00:/tmp/cvs-serv18841

Modified Files:
	pci_subr.c pcivar.h 
Log Message:
largely reimplement pci_conf_print():  
* print all configuration space registers.  Then, where possible,
  interpret them.  (That is, PRESENT ALL THE DATA, then interpret it --
  don't hide data behind interpretation.  Also, when interpreting
  fields, try to print out the specific value that's being interpreted.)
* handle different header types.
* allow caller to specify a function which can interpret the
  device-dependent header and is responsible for pretty-printing it.

It spews (use 'options MSGBUFSIZE=...' 8-), but when you want the data,
you really want _all_ of it.

Still needs some cleanup and additional code (e.g. interepretation
of PCI-PCI (type 1) and PCI-Cardbus (type 2(?)) bridge headers).


cgd
Mon May 18 10:28:07 PDT 1998
Update of /cvsroot/src/sys/dev/pci
In directory nb00:/tmp/cvs-serv18893

Modified Files:
	pci.c 
Log Message:
add an #if 0'd chunk which will pci_conf_print() every device (spews
lots of data, e.g. ~18k on a PCI system with few add-in devices; use
with MSGBUFSIZE=...).  Useful to have here so that people who want as
much data about the PCI configuration in a machine can get it without
having to craft their own code.  Also, clean up a few of the other
#if 0'd printfs.