iommu sg merging: PCI: add device_dma_parameters support
authorFUJITA Tomonori <tomof@acm.org>
Tue, 5 Feb 2008 06:27:55 +0000 (22:27 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:10 +0000 (09:44 -0800)
commit4d57cdfacaa1c207bf4c071f89835e0368766a50
treeb0b617efcd2e228573e42e7efbea4a95955ddf70
parent6b7b651055221127304a4e373ee9b762398d54d7
iommu sg merging: PCI: add device_dma_parameters support

This adds struct device_dma_parameters in struct pci_dev and properly
sets up a pointer in struct device.

The default max_segment_size is set to 64K, same to the block layer's
default value.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mostly-acked-by: Jeff Garzik <jeff@garzik.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/pci.c
drivers/pci/probe.c
include/linux/pci.h