1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef TARGET_CORE_PSCSI_H
3 #define TARGET_CORE_PSCSI_H
5 #define PSCSI_VERSION "v4.0"
7 /* used in pscsi_find_alloc_len() */
8 #ifndef INQUIRY_DATA_SIZE
9 #define INQUIRY_DATA_SIZE 0x24
12 /* used in pscsi_add_device_to_list() */
13 #define PSCSI_DEFAULT_QUEUEDEPTH 1
16 #define PS_TIMEOUT_DISK (15*HZ)
17 #define PS_TIMEOUT_OTHER (500*HZ)
19 #include <linux/cache.h> /* ___cacheline_aligned */
20 #include <target/target_core_base.h> /* struct se_device */
26 #define PDF_HAS_CHANNEL_ID 0x01
27 #define PDF_HAS_TARGET_ID 0x02
28 #define PDF_HAS_LUN_ID 0x04
29 #define PDF_HAS_VPD_UNIT_SERIAL 0x08
30 #define PDF_HAS_VPD_DEV_IDENT 0x10
31 #define PDF_HAS_VIRT_HOST_ID 0x20
33 struct pscsi_dev_virt
{
40 struct file
*pdv_bdev_file
;
41 struct scsi_device
*pdv_sd
;
42 struct Scsi_Host
*pdv_lld_host
;
43 } ____cacheline_aligned
;
45 typedef enum phv_modes
{
50 struct pscsi_hba_virt
{
53 struct Scsi_Host
*phv_lld_host
;
54 } ____cacheline_aligned
;
56 #endif /*** TARGET_CORE_PSCSI_H ***/