From 4ff572830eb1ae95fa85f8ab585521ccc1d86845 Mon Sep 17 00:00:00 2001 From: Faiz Abbas Date: Tue, 15 Oct 2019 18:24:33 +0530 Subject: scsi: Add max_bytes_per_req to scsi_platdata Add max_bytes_per_req to scsi_platdata to enable the host driver to limit the number of bytes that can be read/written per request. Signed-off-by: Faiz Abbas --- include/scsi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/scsi.h') diff --git a/include/scsi.h b/include/scsi.h index 81ab43c842..963abe2b13 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -163,11 +163,13 @@ struct scsi_cmd { * @base: Controller base address * @max_lun: Maximum number of logical units * @max_id: Maximum number of target ids + * @max_bytes_per_req: Maximum number of bytes per read/write request */ struct scsi_platdata { unsigned long base; unsigned long max_lun; unsigned long max_id; + unsigned long max_bytes_per_req; }; /* Operations for SCSI */ -- cgit v1.2.3