OvmfPkg/LsiScsiDxe: Examine the incoming SCSI Request Packet

This is the first part of LsiScsiPassThru(). Before processing the SCSI
Request packet, we have to make sure whether the packet is valid or not.

v2: Make LsiScsiPassThru() return EFI_UNSUPPORTED since this function is
    half-implemented

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200717061130.8881-10-glin@suse.com>
This commit is contained in:
Gary Lin
2020-07-17 14:11:28 +08:00
committed by mergify[bot]
parent f1d6c1eba1
commit 97e60818b6
2 changed files with 102 additions and 0 deletions

View File

@@ -13,6 +13,10 @@
#define _LSI_SCSI_DXE_H_
typedef struct {
//
// The max size of CDB is 32.
//
UINT8 Cdb[32];
//
// Allocate 64KB for read/write buffer. It seems sufficient for the common
// boot scenarios.