summaryrefslogtreecommitdiffstats
path: root/sys/tools
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-12-14 00:03:41 +0000
committerscottl <scottl@FreeBSD.org>2005-12-14 00:03:41 +0000
commitd44b29aa0d22daf1081015987f2dd13417d4f1b3 (patch)
tree5b2643e1b5c145ce9c4b01551a608edf380f3197 /sys/tools
parentc69212d7ad6c77d6438c320fcf573c9bc04be259 (diff)
downloadFreeBSD-src-d44b29aa0d22daf1081015987f2dd13417d4f1b3.zip
FreeBSD-src-d44b29aa0d22daf1081015987f2dd13417d4f1b3.tar.gz
Fix the Tigon I/II driver to support 64-bit DMA. In the process, convert it
to use busdma. Unlike most of the other drivers, but similar to the if_em driver, pre-allocate the dmamaps at init time instead of allocating them on the fly when descriptors need to be filled. This isn't ideal right now because a map is allocated for every descriptor slot in the tx, rx, mini, and jumbo rings (which is a lot!) in order to simplify the bookkeeping, even though the driver might support filling only a subset of those slots. Luckily, maps are typically NULL on i386 and amd64, so the cost isn't very high. It could be an issue with sparc64, but the driver isn't endian clean either, and that is a much bigger problem to solve first. Note that jumbo frame support is under-tested, and I'm not even sure if it till really works correctly given the evil VM magic that is does. The changes here attempt to preserve the existing semanitcs. Thanks to Martin Nillson for contributing the Netgear card for this work. MFC-After: 3 weeks
Diffstat (limited to 'sys/tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud