diff options
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 4ef58336310a..b2c88da26b2a 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h | |||
@@ -113,33 +113,35 @@ | |||
113 | 113 | ||
114 | #define __force_bit2int (unsigned int __force) | 114 | #define __force_bit2int (unsigned int __force) |
115 | 115 | ||
116 | /* below are bit numbers in 'flags' defined in mtip_port */ | 116 | enum { |
117 | #define MTIP_PF_IC_ACTIVE_BIT 0 /* pio/ioctl */ | 117 | /* below are bit numbers in 'flags' defined in mtip_port */ |
118 | #define MTIP_PF_EH_ACTIVE_BIT 1 /* error handling */ | 118 | MTIP_PF_IC_ACTIVE_BIT = 0, /* pio/ioctl */ |
119 | #define MTIP_PF_SE_ACTIVE_BIT 2 /* secure erase */ | 119 | MTIP_PF_EH_ACTIVE_BIT = 1, /* error handling */ |
120 | #define MTIP_PF_DM_ACTIVE_BIT 3 /* download microcde */ | 120 | MTIP_PF_SE_ACTIVE_BIT = 2, /* secure erase */ |
121 | #define MTIP_PF_PAUSE_IO ((1 << MTIP_PF_IC_ACTIVE_BIT) | \ | 121 | MTIP_PF_DM_ACTIVE_BIT = 3, /* download microcde */ |
122 | MTIP_PF_PAUSE_IO = ((1 << MTIP_PF_IC_ACTIVE_BIT) | \ | ||
122 | (1 << MTIP_PF_EH_ACTIVE_BIT) | \ | 123 | (1 << MTIP_PF_EH_ACTIVE_BIT) | \ |
123 | (1 << MTIP_PF_SE_ACTIVE_BIT) | \ | 124 | (1 << MTIP_PF_SE_ACTIVE_BIT) | \ |
124 | (1 << MTIP_PF_DM_ACTIVE_BIT)) | 125 | (1 << MTIP_PF_DM_ACTIVE_BIT)), |
125 | 126 | ||
126 | #define MTIP_PF_SVC_THD_ACTIVE_BIT 4 | 127 | MTIP_PF_SVC_THD_ACTIVE_BIT = 4, |
127 | #define MTIP_PF_ISSUE_CMDS_BIT 5 | 128 | MTIP_PF_ISSUE_CMDS_BIT = 5, |
128 | #define MTIP_PF_REBUILD_BIT 6 | 129 | MTIP_PF_REBUILD_BIT = 6, |
129 | #define MTIP_PF_SVC_THD_STOP_BIT 8 | 130 | MTIP_PF_SVC_THD_STOP_BIT = 8, |
130 | 131 | ||
131 | /* below are bit numbers in 'dd_flag' defined in driver_data */ | 132 | /* below are bit numbers in 'dd_flag' defined in driver_data */ |
132 | #define MTIP_DDF_REMOVE_PENDING_BIT 1 | 133 | MTIP_DDF_REMOVE_PENDING_BIT = 1, |
133 | #define MTIP_DDF_OVER_TEMP_BIT 2 | 134 | MTIP_DDF_OVER_TEMP_BIT = 2, |
134 | #define MTIP_DDF_WRITE_PROTECT_BIT 3 | 135 | MTIP_DDF_WRITE_PROTECT_BIT = 3, |
135 | #define MTIP_DDF_STOP_IO ((1 << MTIP_DDF_REMOVE_PENDING_BIT) | \ | 136 | MTIP_DDF_STOP_IO = ((1 << MTIP_DDF_REMOVE_PENDING_BIT) | \ |
136 | (1 << MTIP_DDF_OVER_TEMP_BIT) | \ | 137 | (1 << MTIP_DDF_OVER_TEMP_BIT) | \ |
137 | (1 << MTIP_DDF_WRITE_PROTECT_BIT)) | 138 | (1 << MTIP_DDF_WRITE_PROTECT_BIT)), |
138 | 139 | ||
139 | #define MTIP_DDF_CLEANUP_BIT 5 | 140 | MTIP_DDF_CLEANUP_BIT = 5, |
140 | #define MTIP_DDF_RESUME_BIT 6 | 141 | MTIP_DDF_RESUME_BIT = 6, |
141 | #define MTIP_DDF_INIT_DONE_BIT 7 | 142 | MTIP_DDF_INIT_DONE_BIT = 7, |
142 | #define MTIP_DDF_REBUILD_FAILED_BIT 8 | 143 | MTIP_DDF_REBUILD_FAILED_BIT = 8, |
144 | }; | ||
143 | 145 | ||
144 | __packed struct smart_attr{ | 146 | __packed struct smart_attr{ |
145 | u8 attr_id; | 147 | u8 attr_id; |