
From: Simon Glass <sjg@chromium.org> QEMU's virtio-scsi likes to have larger command/response buffers than U-Boot so increase these accordingly. Add some #defines for the new sizes. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/scsi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/scsi.h b/include/scsi.h index b18ae37b861..d3bf4ed2b9c 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -12,6 +12,9 @@ struct udevice; +#define CMD_BUF_SIZE 32 +#define SENSE_BUF_LEN 96 + /** * struct scsi_cmd - information about a SCSI command to be processed * @@ -34,8 +37,8 @@ struct udevice; * @dma_dir: Direction of data structure */ struct scsi_cmd { - unsigned char cmd[16]; - unsigned char sense_buf[64] + unsigned char cmd[CMD_BUF_SIZE]; + unsigned char sense_buf[SENSE_BUF_LEN] __attribute__((aligned(ARCH_DMA_MINALIGN))); unsigned char status; unsigned char target; -- 2.43.0