mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
scsi: core: add a host / host template field for the virt boundary
This allows drivers setting it up easily instead of branching out to block layer calls in slave_alloc, and ensures the upgraded max_segment_size setting gets picked up by the DMA layer. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Kashyap Desai < [email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
f9b0530fa0
commit
7ad388d8e4
3 changed files with 8 additions and 1 deletions
|
|
@ -369,6 +369,8 @@ struct scsi_host_template {
|
|||
*/
|
||||
unsigned long dma_boundary;
|
||||
|
||||
unsigned long virt_boundary_mask;
|
||||
|
||||
/*
|
||||
* This specifies "machine infinity" for host templates which don't
|
||||
* limit the transfer size. Note this limit represents an absolute
|
||||
|
|
@ -587,6 +589,7 @@ struct Scsi_Host {
|
|||
unsigned int max_sectors;
|
||||
unsigned int max_segment_size;
|
||||
unsigned long dma_boundary;
|
||||
unsigned long virt_boundary_mask;
|
||||
/*
|
||||
* In scsi-mq mode, the number of hardware queues supported by the LLD.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue