diff options
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.h')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 3bb8a295fbe4..9be7a1582ad3 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h | |||
@@ -140,6 +140,7 @@ enum { | |||
140 | MTIP_PF_SVC_THD_ACTIVE_BIT = 4, | 140 | MTIP_PF_SVC_THD_ACTIVE_BIT = 4, |
141 | MTIP_PF_ISSUE_CMDS_BIT = 5, | 141 | MTIP_PF_ISSUE_CMDS_BIT = 5, |
142 | MTIP_PF_REBUILD_BIT = 6, | 142 | MTIP_PF_REBUILD_BIT = 6, |
143 | MTIP_PF_SR_CLEANUP_BIT = 7, | ||
143 | MTIP_PF_SVC_THD_STOP_BIT = 8, | 144 | MTIP_PF_SVC_THD_STOP_BIT = 8, |
144 | 145 | ||
145 | /* below are bit numbers in 'dd_flag' defined in driver_data */ | 146 | /* below are bit numbers in 'dd_flag' defined in driver_data */ |
@@ -147,15 +148,18 @@ enum { | |||
147 | MTIP_DDF_REMOVE_PENDING_BIT = 1, | 148 | MTIP_DDF_REMOVE_PENDING_BIT = 1, |
148 | MTIP_DDF_OVER_TEMP_BIT = 2, | 149 | MTIP_DDF_OVER_TEMP_BIT = 2, |
149 | MTIP_DDF_WRITE_PROTECT_BIT = 3, | 150 | MTIP_DDF_WRITE_PROTECT_BIT = 3, |
150 | MTIP_DDF_STOP_IO = ((1 << MTIP_DDF_REMOVE_PENDING_BIT) | | 151 | MTIP_DDF_REMOVE_DONE_BIT = 4, |
151 | (1 << MTIP_DDF_SEC_LOCK_BIT) | | ||
152 | (1 << MTIP_DDF_OVER_TEMP_BIT) | | ||
153 | (1 << MTIP_DDF_WRITE_PROTECT_BIT)), | ||
154 | |||
155 | MTIP_DDF_CLEANUP_BIT = 5, | 152 | MTIP_DDF_CLEANUP_BIT = 5, |
156 | MTIP_DDF_RESUME_BIT = 6, | 153 | MTIP_DDF_RESUME_BIT = 6, |
157 | MTIP_DDF_INIT_DONE_BIT = 7, | 154 | MTIP_DDF_INIT_DONE_BIT = 7, |
158 | MTIP_DDF_REBUILD_FAILED_BIT = 8, | 155 | MTIP_DDF_REBUILD_FAILED_BIT = 8, |
156 | |||
157 | MTIP_DDF_STOP_IO = ((1 << MTIP_DDF_REMOVE_PENDING_BIT) | | ||
158 | (1 << MTIP_DDF_SEC_LOCK_BIT) | | ||
159 | (1 << MTIP_DDF_OVER_TEMP_BIT) | | ||
160 | (1 << MTIP_DDF_WRITE_PROTECT_BIT) | | ||
161 | (1 << MTIP_DDF_REBUILD_FAILED_BIT)), | ||
162 | |||
159 | }; | 163 | }; |
160 | 164 | ||
161 | struct smart_attr { | 165 | struct smart_attr { |
@@ -499,6 +503,8 @@ struct driver_data { | |||
499 | 503 | ||
500 | bool trim_supp; /* flag indicating trim support */ | 504 | bool trim_supp; /* flag indicating trim support */ |
501 | 505 | ||
506 | bool sr; | ||
507 | |||
502 | int numa_node; /* NUMA support */ | 508 | int numa_node; /* NUMA support */ |
503 | 509 | ||
504 | char workq_name[32]; | 510 | char workq_name[32]; |
@@ -511,6 +517,8 @@ struct driver_data { | |||
511 | 517 | ||
512 | int isr_binding; | 518 | int isr_binding; |
513 | 519 | ||
520 | struct block_device *bdev; | ||
521 | |||
514 | int unal_qdepth; /* qdepth of unaligned IO queue */ | 522 | int unal_qdepth; /* qdepth of unaligned IO queue */ |
515 | 523 | ||
516 | struct list_head online_list; /* linkage for online list */ | 524 | struct list_head online_list; /* linkage for online list */ |