Subject: CVS commit: src/sys/dev/pci
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 08/11/2007 00:31:05
Module Name: src
Committed By: dyoung
Date: Sat Aug 11 00:31:05 UTC 2007
Modified Files:
src/sys/dev/pci: pccbb.c pccbbreg.h
Log Message:
Make pccbb(4) use more PCI configuration register definitions,
especially the Bridge Control Register definition, instead of
rolling its own.
As we read/modify/write configuration registers, use a variable
that is named for the register we're r/m/w'ing, instead of using
the variable 'reg' over and over. This helps both a human reader
verify that we're not reading register X, modifying it, and writing
back to register Y (oops); the compiler can help a little by warning
that a variable is used before it is initialized.
To generate a diff of this commit:
cvs rdiff -r1.145 -r1.146 src/sys/dev/pci/pccbb.c
cvs rdiff -r1.11 -r1.12 src/sys/dev/pci/pccbbreg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.