cvs commit: src/sys/dev/gem if_gem.c if_gem_pci.c if_gemvar.h
Poul-Henning Kamp
phk at FreeBSD.org
Fri May 4 19:15:30 UTC 2007
phk 2007-05-04 19:15:29 UTC
FreeBSD src repository
Modified files:
sys/dev/gem if_gem.c if_gem_pci.c if_gemvar.h
Log:
Since if_gem is being touted as one of our more architecturally
correct network drivers with respect to busmaster DMA, go over it
with at duster to make other aspects of it a role model:
Eliminate the pci specific softc, it serves no rational purpose.
Use convenience resource allocation/deallocation functions to save
code and errorhandling.
Switch from bus_space_{read|write}_%u() to bus_{read|write}_%u()
functions and forget about tags and handles, the resource will know
about those, should they be needed. This also eliminates a number
of inconsistently named local variables.
Revision Changes Path
1.41 +112 -141 src/sys/dev/gem/if_gem.c
1.22 +27 -52 src/sys/dev/gem/if_gem_pci.c
1.13 +2 -2 src/sys/dev/gem/if_gemvar.h
More information about the cvs-src
mailing list