]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve r238673 to additionally allow for odd-aligned buffers as
authorMarius Strobl <marius@FreeBSD.org>
Sat, 2 Feb 2013 21:57:06 +0000 (21:57 +0000)
committerMarius Strobl <marius@FreeBSD.org>
Sat, 2 Feb 2013 21:57:06 +0000 (21:57 +0000)
commitba514351d1a89720825006bbbf5eb2bbcbf212a8
tree172a8c2a5da6ab5738825163bb13f0285c451cc9
parent96acb2c4fa6d53ada57f1ff4bf1b32eeebb64f0d
Improve r238673 to additionally allow for odd-aligned buffers as
passed in by smartd of smartmontools.
While at it, hint the compiler that 32-bit PIO is the most likely
case (idea from Linux) and use bus_{read,write}_stream_2(9) instead
of bus_{read,write}_multi_stream_2(9) for single count reads/writes.

MFC after: 1 week
sys/dev/ata/ata-all.h
sys/dev/ata/ata-lowlevel.c