]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] dpt_i2o: move from virt_to_bus/bus_to_virt to dma_alloc_coherent
authorMiquel van Smoorenburg <miquels@cistron.nl>
Thu, 1 May 2008 23:06:39 +0000 (01:06 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 2 May 2008 18:15:26 +0000 (13:15 -0500)
commit49bacea952ba16c7e88840b3aee6c83c7a254996
tree0d56ebdd995415c574bd574c9434da1e8931e104
parent43ccb4b835318e65ca245640208d5c9d8fe491dc
[SCSI] dpt_i2o: move from virt_to_bus/bus_to_virt to dma_alloc_coherent

Remove virt_to_bus/bus_to_virt code from dpt_i2o, and use
dma_alloc_coherent() / dma_free_coherent().

This is in preparation of 64-bit support, dma_alloc_coherent()
can allocate memory in the lower 32 bits of physical memory
which is needed because the HBA only supports message blocks under 4GB

This code is based in part on the unofficial adaptec 64-bit
dpt_i2o driver update that I got from Mark Salyzyn at Adaptec.

Signed-off-by: Miquel van Smoorenburg <miquels@cistron.nl>
Acked-by: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/dpt_i2o.c
drivers/scsi/dpti.h