diff options
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.h')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 18627a1d04c..b1742640556 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h | |||
@@ -33,6 +33,9 @@ | |||
33 | /* offset of Device Control register in PCIe extended capabilites space */ | 33 | /* offset of Device Control register in PCIe extended capabilites space */ |
34 | #define PCIE_CONFIG_EXT_DEVICE_CONTROL_OFFSET 0x48 | 34 | #define PCIE_CONFIG_EXT_DEVICE_CONTROL_OFFSET 0x48 |
35 | 35 | ||
36 | /* check for erase mode support during secure erase */ | ||
37 | #define MTIP_SEC_ERASE_MODE 0x2 | ||
38 | |||
36 | /* # of times to retry timed out/failed IOs */ | 39 | /* # of times to retry timed out/failed IOs */ |
37 | #define MTIP_MAX_RETRIES 2 | 40 | #define MTIP_MAX_RETRIES 2 |
38 | 41 | ||
@@ -152,14 +155,14 @@ enum { | |||
152 | MTIP_DDF_REBUILD_FAILED_BIT = 8, | 155 | MTIP_DDF_REBUILD_FAILED_BIT = 8, |
153 | }; | 156 | }; |
154 | 157 | ||
155 | __packed struct smart_attr{ | 158 | struct smart_attr { |
156 | u8 attr_id; | 159 | u8 attr_id; |
157 | u16 flags; | 160 | u16 flags; |
158 | u8 cur; | 161 | u8 cur; |
159 | u8 worst; | 162 | u8 worst; |
160 | u32 data; | 163 | u32 data; |
161 | u8 res[3]; | 164 | u8 res[3]; |
162 | }; | 165 | } __packed; |
163 | 166 | ||
164 | /* Register Frame Information Structure (FIS), host to device. */ | 167 | /* Register Frame Information Structure (FIS), host to device. */ |
165 | struct host_to_dev_fis { | 168 | struct host_to_dev_fis { |