diff options
Diffstat (limited to 'drivers/target/target_core_file.h')
-rw-r--r-- | drivers/target/target_core_file.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/target/target_core_file.h b/drivers/target/target_core_file.h index d7772c167685..182cbb295039 100644 --- a/drivers/target/target_core_file.h +++ b/drivers/target/target_core_file.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #define FD_VERSION "4.0" | 4 | #define FD_VERSION "4.0" |
5 | 5 | ||
6 | #define FD_MAX_DEV_NAME 256 | 6 | #define FD_MAX_DEV_NAME 256 |
7 | #define FD_MAX_DEV_PROT_NAME FD_MAX_DEV_NAME + 16 | ||
7 | #define FD_DEVICE_QUEUE_DEPTH 32 | 8 | #define FD_DEVICE_QUEUE_DEPTH 32 |
8 | #define FD_MAX_DEVICE_QUEUE_DEPTH 128 | 9 | #define FD_MAX_DEVICE_QUEUE_DEPTH 128 |
9 | #define FD_BLOCKSIZE 512 | 10 | #define FD_BLOCKSIZE 512 |
@@ -18,6 +19,13 @@ | |||
18 | #define FBDF_HAS_PATH 0x01 | 19 | #define FBDF_HAS_PATH 0x01 |
19 | #define FBDF_HAS_SIZE 0x02 | 20 | #define FBDF_HAS_SIZE 0x02 |
20 | #define FDBD_HAS_BUFFERED_IO_WCE 0x04 | 21 | #define FDBD_HAS_BUFFERED_IO_WCE 0x04 |
22 | #define FDBD_FORMAT_UNIT_SIZE 2048 | ||
23 | |||
24 | struct fd_prot { | ||
25 | unsigned char *prot_buf; | ||
26 | struct scatterlist *prot_sg; | ||
27 | u32 prot_sg_nents; | ||
28 | }; | ||
21 | 29 | ||
22 | struct fd_dev { | 30 | struct fd_dev { |
23 | struct se_device dev; | 31 | struct se_device dev; |
@@ -32,6 +40,7 @@ struct fd_dev { | |||
32 | u32 fd_block_size; | 40 | u32 fd_block_size; |
33 | unsigned long long fd_dev_size; | 41 | unsigned long long fd_dev_size; |
34 | struct file *fd_file; | 42 | struct file *fd_file; |
43 | struct file *fd_prot_file; | ||
35 | /* FILEIO HBA device is connected to */ | 44 | /* FILEIO HBA device is connected to */ |
36 | struct fd_host *fd_host; | 45 | struct fd_host *fd_host; |
37 | } ____cacheline_aligned; | 46 | } ____cacheline_aligned; |