]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r233403, r233404
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 31 Mar 2012 00:10:16 +0000 (00:10 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 31 Mar 2012 00:10:16 +0000 (00:10 +0000)
commite0fa343eb3358552d440badbc4057b48f947690a
tree0dc056c3cf33f277dc600e1dcef70b0bafec3956
parentebd34d3ec79bb0d02204fb60311f996e68544d9e
MFC: r233403, r233404

- Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here.
  Note that this driver additionally probes some device IDs for the most
  part not know to other MPT drivers, if at all. So rename the macros not
  present in mpi_cnfg.h to match the naming scheme in the latter and but
  suffix them with a _FB in order to not cause conflicts.
- Like mpt_set_config_regs(), comment out mpt_read_config_regs() as the
  content of the registers read isn't actually used and both functions
  aren't exactly up to date regarding the possible layouts of the BARs
  (these function might be helpful for debugging though, so don't remove
  them completely).
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.
- Remove an unusual check for the softc being NULL.
- Remove redundant zeroing of the softc.
- Remove an overly banal and actually partly incorrect as well as partly
  outdated comment regarding the allocation of the memory resource.

git-svn-id: svn://svn.freebsd.org/base/stable/9@233721 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mpt/mpt.h
sys/dev/mpt/mpt_pci.c