]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PvScsiDxe/PvScsi.h
OvmfPkg/PvScsiDxe: Report the number of targets and LUNs
[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 UINT8 MaxTarget;
23 UINT8 MaxLun;
24 EFI_EXT_SCSI_PASS_THRU_PROTOCOL PassThru;
25 EFI_EXT_SCSI_PASS_THRU_MODE PassThruMode;
26 } PVSCSI_DEV;
27
28 #define PVSCSI_FROM_PASS_THRU(PassThruPointer) \
29 CR (PassThruPointer, PVSCSI_DEV, PassThru, PVSCSI_SIG)
30
31 #endif // __PVSCSI_DXE_H_