summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/LsiScsiDxe/LsiScsi.h
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2020-07-17 14:11:26 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-07-17 20:51:55 +0000
commit8d6193902f2da15c8bad9941bfe493cca903a3ca (patch)
tree8c4a78a7a6fb75d314fbb13a5e810b91fd731f65 /OvmfPkg/LsiScsiDxe/LsiScsi.h
parent12d99b8f2367c2fd1ca9b3165acd52a0c9dcc99e (diff)
downloadedk2-8d6193902f2da15c8bad9941bfe493cca903a3ca.tar.gz
edk2-8d6193902f2da15c8bad9941bfe493cca903a3ca.tar.bz2
edk2-8d6193902f2da15c8bad9941bfe493cca903a3ca.zip
OvmfPkg/LsiScsiDxe: Open PciIo protocol and initialize the device
Open PciIo protocol and use it to initialize the device. The initialization of LSI 53C895A is simple: just set the SRST bit in Interrupt Status Zero register to reset the device. v2: - Use the BITx macros for the bit constants - Add the closing of PciIo protocol in LsiScsiControllerStop() 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> Message-Id: <20200717061130.8881-8-glin@suse.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/LsiScsiDxe/LsiScsi.h')
-rw-r--r--OvmfPkg/LsiScsiDxe/LsiScsi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/OvmfPkg/LsiScsiDxe/LsiScsi.h b/OvmfPkg/LsiScsiDxe/LsiScsi.h
index 6c6ed25f1c..8c2acff6e8 100644
--- a/OvmfPkg/LsiScsiDxe/LsiScsi.h
+++ b/OvmfPkg/LsiScsiDxe/LsiScsi.h
@@ -14,6 +14,9 @@
typedef struct {
UINT32 Signature;
+ UINT64 OrigPciAttrs;
+ EFI_EVENT ExitBoot;
+ EFI_PCI_IO_PROTOCOL *PciIo;
UINT8 MaxTarget;
UINT8 MaxLun;
EFI_EXT_SCSI_PASS_THRU_MODE PassThruMode;