Date: Fri, 4 May 2007 19:15:29 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/gem if_gem.c if_gem_pci.c if_gemvar.h Message-ID: <200705041915.l44JFUDI069303@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705041915.l44JFUDI069303>