]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PvScsiDxe/PvScsi.h
5f611dbbc98c5e2e41cb864769e4a6f9ae04f78a
[mirror_edk2.git] / OvmfPkg / PvScsiDxe / PvScsi.h
1 /** @file
2
3 Internal definitions for the PVSCSI driver, which produces Extended SCSI
4 Pass Thru Protocol instances for pvscsi devices.
5
6 Copyright (C) 2020, Oracle and/or its affiliates.
7
8 SPDX-License-Identifier: BSD-2-Clause-Patent
9
10 **/
11
12 #ifndef __PVSCSI_DXE_H_
13 #define __PVSCSI_DXE_H_
14
15 #include <Library/DebugLib.h>
16 #include <Protocol/ScsiPassThruExt.h>
17
18 #define PVSCSI_SIG SIGNATURE_32 ('P', 'S', 'C', 'S')
19
20 typedef struct {
21 UINT32 Signature;
22 EFI_PCI_IO_PROTOCOL *PciIo;
23 UINT64 OriginalPciAttributes;
24 UINT8 MaxTarget;
25 UINT8 MaxLun;
26 EFI_EXT_SCSI_PASS_THRU_PROTOCOL PassThru;
27 EFI_EXT_SCSI_PASS_THRU_MODE PassThruMode;
28 } PVSCSI_DEV;
29
30 #define PVSCSI_FROM_PASS_THRU(PassThruPointer) \
31 CR (PassThruPointer, PVSCSI_DEV, PassThru, PVSCSI_SIG)
32
33 #endif // __PVSCSI_DXE_H_