]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
- Add missing bus_dmamap_sync(9) calls for the work DMA map. Previously
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Sep 2009 16:45:27 +0000 (16:45 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Sep 2009 16:45:27 +0000 (16:45 +0000)
commit722e708107940696f22c21846ccc011b93d21dee
treeba96446de5b3509378eaa4800c7f4e9c0ce0a1ea
parent1f0200a759b5525577ff0c52d497b2cc5066b140
- Add missing bus_dmamap_sync(9) calls for the work DMA map. Previously
  the work area was totally unsynchronized which means this driver only
  had a chance of working on x86 when no bounce buffers were involved,
  which isn't that likely given that support for 64-bit DMA is currently
  broken throughout ata(4).
- Add necessary little-endian conversion of accesses to the work area,
  making this driver work on big-endian hosts. While at it, use the
  alignment-agnostic byte order encoders in order to be on the safe side.
- Clear the reserved member of the SG list entries in order to be on the
  safe side. [1]

Submitted by: yongari [1]
Reviewed by: yongari
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@197488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ata/chipsets/ata-marvell.c