diff options
author | marius <marius@FreeBSD.org> | 2005-11-22 21:34:26 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-11-22 21:34:26 +0000 |
commit | 129625a60097f14b92908074f47e0a0ff1a5d673 (patch) | |
tree | 2a4a5b14aba44aa1246e61bdce574cd53c267e5f /etc | |
parent | 75d54c3006163d4f340af814056f5ee9054ef8c7 (diff) | |
download | FreeBSD-src-129625a60097f14b92908074f47e0a0ff1a5d673.zip FreeBSD-src-129625a60097f14b92908074f47e0a0ff1a5d673.tar.gz |
Some clean-up, style changes and changes that will reduce differences
between this driver and other Host-PCI bridge drivers based on this one:
- Make the code fit into 80 columns.
- Make the code adhere style(9) (don't use function calls in initializers,
use uintXX_t instead of u_intXX_t, add missing prototypes, ...).
- Remove unused and superfluous struct declaration, softc member, casts,
includes, etc.
- Use FBSDID.
- Sprinkle const.
- Try to make comments and messages consistent in style throughout the
driver.
- Use convenience macros for the number of interrupts and ranges of the
bridge.
- Use __func__ instead of hardcoded function names in panic strings and
error messages. Some of the hardcoded function names actually were
outdated through moving code around. [1]
- Rename softc members related to the PCI side of the bridge to sc_pci_*
in order to make it clear which side of the bridge they refer to (so
stuff like sc_bushandle vs. sc_bh is less confusing while reading the
code).
PR: 76052 [1]
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions