Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
target_core_pscsi.h
Go to the documentation of this file.
1 #ifndef TARGET_CORE_PSCSI_H
2 #define TARGET_CORE_PSCSI_H
3 
4 #define PSCSI_VERSION "v4.0"
5 
6 /* used in pscsi_find_alloc_len() */
7 #ifndef INQUIRY_DATA_SIZE
8 #define INQUIRY_DATA_SIZE 0x24
9 #endif
10 
11 /* used in pscsi_add_device_to_list() */
12 #define PSCSI_DEFAULT_QUEUEDEPTH 1
13 
14 #define PS_RETRY 5
15 #define PS_TIMEOUT_DISK (15*HZ)
16 #define PS_TIMEOUT_OTHER (500*HZ)
17 
18 #include <linux/device.h>
19 #include <scsi/scsi_driver.h>
20 #include <scsi/scsi_device.h>
21 #include <linux/kref.h>
22 #include <linux/kobject.h>
23 
29  unsigned char pscsi_cdb[0];
31 
32 #define PDF_HAS_CHANNEL_ID 0x01
33 #define PDF_HAS_TARGET_ID 0x02
34 #define PDF_HAS_LUN_ID 0x04
35 #define PDF_HAS_VPD_UNIT_SERIAL 0x08
36 #define PDF_HAS_VPD_DEV_IDENT 0x10
37 #define PDF_HAS_VIRT_HOST_ID 0x20
38 
40  int pdv_flags;
47  struct se_hba *pdv_se_hba;
49 
50 typedef enum phv_modes {
53 } phv_modes_t;
54 
60 
61 #endif /*** TARGET_CORE_PSCSI_H ***/