osd_attributes.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __OSD_ATTRIBUTES_H__
  3. #define __OSD_ATTRIBUTES_H__
  4. #include <scsi/osd_protocol.h>
  5. /*
  6. * Contains types and constants that define attribute pages and attribute
  7. * numbers and their data types.
  8. */
  9. #define ATTR_SET(pg, id, l, ptr) \
  10. { .attr_page = pg, .attr_id = id, .len = l, .val_ptr = ptr }
  11. #define ATTR_DEF(pg, id, l) ATTR_SET(pg, id, l, NULL)
  12. /* osd-r10 4.7.3 Attributes pages */
  13. enum {
  14. OSD_APAGE_OBJECT_FIRST = 0x0,
  15. OSD_APAGE_OBJECT_DIRECTORY = 0,
  16. OSD_APAGE_OBJECT_INFORMATION = 1,
  17. OSD_APAGE_OBJECT_QUOTAS = 2,
  18. OSD_APAGE_OBJECT_TIMESTAMP = 3,
  19. OSD_APAGE_OBJECT_COLLECTIONS = 4,
  20. OSD_APAGE_OBJECT_SECURITY = 5,
  21. OSD_APAGE_OBJECT_LAST = 0x2fffffff,
  22. OSD_APAGE_PARTITION_FIRST = 0x30000000,
  23. OSD_APAGE_PARTITION_DIRECTORY = OSD_APAGE_PARTITION_FIRST + 0,
  24. OSD_APAGE_PARTITION_INFORMATION = OSD_APAGE_PARTITION_FIRST + 1,
  25. OSD_APAGE_PARTITION_QUOTAS = OSD_APAGE_PARTITION_FIRST + 2,
  26. OSD_APAGE_PARTITION_TIMESTAMP = OSD_APAGE_PARTITION_FIRST + 3,
  27. OSD_APAGE_PARTITION_ATTR_ACCESS = OSD_APAGE_PARTITION_FIRST + 4,
  28. OSD_APAGE_PARTITION_SECURITY = OSD_APAGE_PARTITION_FIRST + 5,
  29. OSD_APAGE_PARTITION_LAST = 0x5FFFFFFF,
  30. OSD_APAGE_COLLECTION_FIRST = 0x60000000,
  31. OSD_APAGE_COLLECTION_DIRECTORY = OSD_APAGE_COLLECTION_FIRST + 0,
  32. OSD_APAGE_COLLECTION_INFORMATION = OSD_APAGE_COLLECTION_FIRST + 1,
  33. OSD_APAGE_COLLECTION_TIMESTAMP = OSD_APAGE_COLLECTION_FIRST + 3,
  34. OSD_APAGE_COLLECTION_SECURITY = OSD_APAGE_COLLECTION_FIRST + 5,
  35. OSD_APAGE_COLLECTION_LAST = 0x8FFFFFFF,
  36. OSD_APAGE_ROOT_FIRST = 0x90000000,
  37. OSD_APAGE_ROOT_DIRECTORY = OSD_APAGE_ROOT_FIRST + 0,
  38. OSD_APAGE_ROOT_INFORMATION = OSD_APAGE_ROOT_FIRST + 1,
  39. OSD_APAGE_ROOT_QUOTAS = OSD_APAGE_ROOT_FIRST + 2,
  40. OSD_APAGE_ROOT_TIMESTAMP = OSD_APAGE_ROOT_FIRST + 3,
  41. OSD_APAGE_ROOT_SECURITY = OSD_APAGE_ROOT_FIRST + 5,
  42. OSD_APAGE_ROOT_LAST = 0xBFFFFFFF,
  43. OSD_APAGE_RESERVED_TYPE_FIRST = 0xC0000000,
  44. OSD_APAGE_RESERVED_TYPE_LAST = 0xEFFFFFFF,
  45. OSD_APAGE_COMMON_FIRST = 0xF0000000,
  46. OSD_APAGE_COMMON_LAST = 0xFFFFFFFD,
  47. OSD_APAGE_CURRENT_COMMAND = 0xFFFFFFFE,
  48. OSD_APAGE_REQUEST_ALL = 0xFFFFFFFF,
  49. };
  50. /* subcategories of attr pages within each range above */
  51. enum {
  52. OSD_APAGE_STD_FIRST = 0x0,
  53. OSD_APAGE_STD_DIRECTORY = 0,
  54. OSD_APAGE_STD_INFORMATION = 1,
  55. OSD_APAGE_STD_QUOTAS = 2,
  56. OSD_APAGE_STD_TIMESTAMP = 3,
  57. OSD_APAGE_STD_COLLECTIONS = 4,
  58. OSD_APAGE_STD_POLICY_SECURITY = 5,
  59. OSD_APAGE_STD_LAST = 0x0000007F,
  60. OSD_APAGE_RESERVED_FIRST = 0x00000080,
  61. OSD_APAGE_RESERVED_LAST = 0x00007FFF,
  62. OSD_APAGE_OTHER_STD_FIRST = 0x00008000,
  63. OSD_APAGE_OTHER_STD_LAST = 0x0000EFFF,
  64. OSD_APAGE_PUBLIC_FIRST = 0x0000F000,
  65. OSD_APAGE_PUBLIC_LAST = 0x0000FFFF,
  66. OSD_APAGE_APP_DEFINED_FIRST = 0x00010000,
  67. OSD_APAGE_APP_DEFINED_LAST = 0x1FFFFFFF,
  68. OSD_APAGE_VENDOR_SPECIFIC_FIRST = 0x20000000,
  69. OSD_APAGE_VENDOR_SPECIFIC_LAST = 0x2FFFFFFF,
  70. };
  71. enum {
  72. OSD_ATTR_PAGE_IDENTIFICATION = 0, /* in all pages 40 bytes */
  73. };
  74. struct page_identification {
  75. u8 vendor_identification[8];
  76. u8 page_identification[32];
  77. } __packed;
  78. struct osd_attr_page_header {
  79. __be32 page_number;
  80. __be32 page_length;
  81. } __packed;
  82. /* 7.1.2.8 Root Information attributes page (OSD_APAGE_ROOT_INFORMATION) */
  83. enum {
  84. OSD_ATTR_RI_OSD_SYSTEM_ID = 0x3, /* 20 */
  85. OSD_ATTR_RI_VENDOR_IDENTIFICATION = 0x4, /* 8 */
  86. OSD_ATTR_RI_PRODUCT_IDENTIFICATION = 0x5, /* 16 */
  87. OSD_ATTR_RI_PRODUCT_MODEL = 0x6, /* 32 */
  88. OSD_ATTR_RI_PRODUCT_REVISION_LEVEL = 0x7, /* 4 */
  89. OSD_ATTR_RI_PRODUCT_SERIAL_NUMBER = 0x8, /* variable */
  90. OSD_ATTR_RI_OSD_NAME = 0x9, /* variable */
  91. OSD_ATTR_RI_MAX_CDB_CONTINUATION_LEN = 0xA, /* 4 */
  92. OSD_ATTR_RI_TOTAL_CAPACITY = 0x80, /* 8 */
  93. OSD_ATTR_RI_USED_CAPACITY = 0x81, /* 8 */
  94. OSD_ATTR_RI_NUMBER_OF_PARTITIONS = 0xC0, /* 8 */
  95. OSD_ATTR_RI_CLOCK = 0x100, /* 6 */
  96. OARI_DEFAULT_ISOLATION_METHOD = 0X110, /* 1 */
  97. OARI_SUPPORTED_ISOLATION_METHODS = 0X111, /* 32 */
  98. OARI_DATA_ATOMICITY_GUARANTEE = 0X120, /* 8 */
  99. OARI_DATA_ATOMICITY_ALIGNMENT = 0X121, /* 8 */
  100. OARI_ATTRIBUTES_ATOMICITY_GUARANTEE = 0X122, /* 8 */
  101. OARI_DATA_ATTRIBUTES_ATOMICITY_MULTIPLIER = 0X123, /* 1 */
  102. OARI_MAXIMUM_SNAPSHOTS_COUNT = 0X1C1, /* 0 or 4 */
  103. OARI_MAXIMUM_CLONES_COUNT = 0X1C2, /* 0 or 4 */
  104. OARI_MAXIMUM_BRANCH_DEPTH = 0X1CC, /* 0 or 4 */
  105. OARI_SUPPORTED_OBJECT_DUPLICATION_METHOD_FIRST = 0X200, /* 0 or 4 */
  106. OARI_SUPPORTED_OBJECT_DUPLICATION_METHOD_LAST = 0X2ff, /* 0 or 4 */
  107. OARI_SUPPORTED_TIME_OF_DUPLICATION_METHOD_FIRST = 0X300, /* 0 or 4 */
  108. OARI_SUPPORTED_TIME_OF_DUPLICATION_METHOD_LAST = 0X30F, /* 0 or 4 */
  109. OARI_SUPPORT_FOR_DUPLICATED_OBJECT_FREEZING = 0X310, /* 0 or 4 */
  110. OARI_SUPPORT_FOR_SNAPSHOT_REFRESHING = 0X311, /* 0 or 1 */
  111. OARI_SUPPORTED_CDB_CONTINUATION_DESC_TYPE_FIRST = 0X7000001,/* 0 or 4 */
  112. OARI_SUPPORTED_CDB_CONTINUATION_DESC_TYPE_LAST = 0X700FFFF,/* 0 or 4 */
  113. };
  114. /* Root_Information_attributes_page does not have a get_page structure */
  115. /* 7.1.2.9 Partition Information attributes page
  116. * (OSD_APAGE_PARTITION_INFORMATION)
  117. */
  118. enum {
  119. OSD_ATTR_PI_PARTITION_ID = 0x1, /* 8 */
  120. OSD_ATTR_PI_USERNAME = 0x9, /* variable */
  121. OSD_ATTR_PI_USED_CAPACITY = 0x81, /* 8 */
  122. OSD_ATTR_PI_USED_CAPACITY_INCREMENT = 0x84, /* 0 or 8 */
  123. OSD_ATTR_PI_NUMBER_OF_OBJECTS = 0xC1, /* 8 */
  124. OSD_ATTR_PI_ACTUAL_DATA_SPACE = 0xD1, /* 0 or 8 */
  125. OSD_ATTR_PI_RESERVED_DATA_SPACE = 0xD2, /* 0 or 8 */
  126. OSD_ATTR_PI_DEFAULT_SNAPSHOT_DUPLICATION_METHOD = 0x200,/* 0 or 4 */
  127. OSD_ATTR_PI_DEFAULT_CLONE_DUPLICATION_METHOD = 0x201,/* 0 or 4 */
  128. OSD_ATTR_PI_DEFAULT_SP_TIME_OF_DUPLICATION = 0x300,/* 0 or 4 */
  129. OSD_ATTR_PI_DEFAULT_CLONE_TIME_OF_DUPLICATION = 0x301,/* 0 or 4 */
  130. };
  131. /* Partition Information attributes page does not have a get_page structure */
  132. /* 7.1.2.10 Collection Information attributes page
  133. * (OSD_APAGE_COLLECTION_INFORMATION)
  134. */
  135. enum {
  136. OSD_ATTR_CI_PARTITION_ID = 0x1, /* 8 */
  137. OSD_ATTR_CI_COLLECTION_OBJECT_ID = 0x2, /* 8 */
  138. OSD_ATTR_CI_USERNAME = 0x9, /* variable */
  139. OSD_ATTR_CI_COLLECTION_TYPE = 0xA, /* 1 */
  140. OSD_ATTR_CI_USED_CAPACITY = 0x81, /* 8 */
  141. };
  142. /* Collection Information attributes page does not have a get_page structure */
  143. /* 7.1.2.11 User Object Information attributes page
  144. * (OSD_APAGE_OBJECT_INFORMATION)
  145. */
  146. enum {
  147. OSD_ATTR_OI_PARTITION_ID = 0x1, /* 8 */
  148. OSD_ATTR_OI_OBJECT_ID = 0x2, /* 8 */
  149. OSD_ATTR_OI_USERNAME = 0x9, /* variable */
  150. OSD_ATTR_OI_USED_CAPACITY = 0x81, /* 8 */
  151. OSD_ATTR_OI_LOGICAL_LENGTH = 0x82, /* 8 */
  152. SD_ATTR_OI_ACTUAL_DATA_SPACE = 0XD1, /* 0 OR 8 */
  153. SD_ATTR_OI_RESERVED_DATA_SPACE = 0XD2, /* 0 OR 8 */
  154. };
  155. /* Object Information attributes page does not have a get_page structure */
  156. /* 7.1.2.12 Root Quotas attributes page (OSD_APAGE_ROOT_QUOTAS) */
  157. enum {
  158. OSD_ATTR_RQ_DEFAULT_MAXIMUM_USER_OBJECT_LENGTH = 0x1, /* 8 */
  159. OSD_ATTR_RQ_PARTITION_CAPACITY_QUOTA = 0x10001, /* 8 */
  160. OSD_ATTR_RQ_PARTITION_OBJECT_COUNT = 0x10002, /* 8 */
  161. OSD_ATTR_RQ_PARTITION_COLLECTIONS_PER_USER_OBJECT = 0x10081, /* 4 */
  162. OSD_ATTR_RQ_PARTITION_COUNT = 0x20002, /* 8 */
  163. };
  164. struct Root_Quotas_attributes_page {
  165. struct osd_attr_page_header hdr; /* id=R+2, size=0x24 */
  166. __be64 default_maximum_user_object_length;
  167. __be64 partition_capacity_quota;
  168. __be64 partition_object_count;
  169. __be64 partition_collections_per_user_object;
  170. __be64 partition_count;
  171. } __packed;
  172. /* 7.1.2.13 Partition Quotas attributes page (OSD_APAGE_PARTITION_QUOTAS)*/
  173. enum {
  174. OSD_ATTR_PQ_DEFAULT_MAXIMUM_USER_OBJECT_LENGTH = 0x1, /* 8 */
  175. OSD_ATTR_PQ_CAPACITY_QUOTA = 0x10001, /* 8 */
  176. OSD_ATTR_PQ_OBJECT_COUNT = 0x10002, /* 8 */
  177. OSD_ATTR_PQ_COLLECTIONS_PER_USER_OBJECT = 0x10081, /* 4 */
  178. };
  179. struct Partition_Quotas_attributes_page {
  180. struct osd_attr_page_header hdr; /* id=P+2, size=0x1C */
  181. __be64 default_maximum_user_object_length;
  182. __be64 capacity_quota;
  183. __be64 object_count;
  184. __be64 collections_per_user_object;
  185. } __packed;
  186. /* 7.1.2.14 User Object Quotas attributes page (OSD_APAGE_OBJECT_QUOTAS) */
  187. enum {
  188. OSD_ATTR_OQ_MAXIMUM_LENGTH = 0x1, /* 8 */
  189. };
  190. struct Object_Quotas_attributes_page {
  191. struct osd_attr_page_header hdr; /* id=U+2, size=0x8 */
  192. __be64 maximum_length;
  193. } __packed;
  194. /* 7.1.2.15 Root Timestamps attributes page (OSD_APAGE_ROOT_TIMESTAMP) */
  195. enum {
  196. OSD_ATTR_RT_ATTRIBUTES_ACCESSED_TIME = 0x2, /* 6 */
  197. OSD_ATTR_RT_ATTRIBUTES_MODIFIED_TIME = 0x3, /* 6 */
  198. OSD_ATTR_RT_TIMESTAMP_BYPASS = 0xFFFFFFFE, /* 1 */
  199. };
  200. struct root_timestamps_attributes_page {
  201. struct osd_attr_page_header hdr; /* id=R+3, size=0xD */
  202. struct osd_timestamp attributes_accessed_time;
  203. struct osd_timestamp attributes_modified_time;
  204. u8 timestamp_bypass;
  205. } __packed;
  206. /* 7.1.2.16 Partition Timestamps attributes page
  207. * (OSD_APAGE_PARTITION_TIMESTAMP)
  208. */
  209. enum {
  210. OSD_ATTR_PT_CREATED_TIME = 0x1, /* 6 */
  211. OSD_ATTR_PT_ATTRIBUTES_ACCESSED_TIME = 0x2, /* 6 */
  212. OSD_ATTR_PT_ATTRIBUTES_MODIFIED_TIME = 0x3, /* 6 */
  213. OSD_ATTR_PT_DATA_ACCESSED_TIME = 0x4, /* 6 */
  214. OSD_ATTR_PT_DATA_MODIFIED_TIME = 0x5, /* 6 */
  215. OSD_ATTR_PT_TIMESTAMP_BYPASS = 0xFFFFFFFE, /* 1 */
  216. };
  217. struct partition_timestamps_attributes_page {
  218. struct osd_attr_page_header hdr; /* id=P+3, size=0x1F */
  219. struct osd_timestamp created_time;
  220. struct osd_timestamp attributes_accessed_time;
  221. struct osd_timestamp attributes_modified_time;
  222. struct osd_timestamp data_accessed_time;
  223. struct osd_timestamp data_modified_time;
  224. u8 timestamp_bypass;
  225. } __packed;
  226. /* 7.1.2.17/18 Collection/Object Timestamps attributes page
  227. * (OSD_APAGE_COLLECTION_TIMESTAMP/OSD_APAGE_OBJECT_TIMESTAMP)
  228. */
  229. enum {
  230. OSD_ATTR_OT_CREATED_TIME = 0x1, /* 6 */
  231. OSD_ATTR_OT_ATTRIBUTES_ACCESSED_TIME = 0x2, /* 6 */
  232. OSD_ATTR_OT_ATTRIBUTES_MODIFIED_TIME = 0x3, /* 6 */
  233. OSD_ATTR_OT_DATA_ACCESSED_TIME = 0x4, /* 6 */
  234. OSD_ATTR_OT_DATA_MODIFIED_TIME = 0x5, /* 6 */
  235. };
  236. /* same for collection */
  237. struct object_timestamps_attributes_page {
  238. struct osd_attr_page_header hdr; /* id=C+3/3, size=0x1E */
  239. struct osd_timestamp created_time;
  240. struct osd_timestamp attributes_accessed_time;
  241. struct osd_timestamp attributes_modified_time;
  242. struct osd_timestamp data_accessed_time;
  243. struct osd_timestamp data_modified_time;
  244. } __packed;
  245. /* OSD2r05: 7.1.3.19 Attributes Access attributes page
  246. * (OSD_APAGE_PARTITION_ATTR_ACCESS)
  247. *
  248. * each attribute is of the form below. Total array length is deduced
  249. * from the attribute's length
  250. * (See allowed_attributes_access of the struct osd_cap_object_descriptor)
  251. */
  252. struct attributes_access_attr {
  253. struct osd_attributes_list_attrid attr_list[0];
  254. } __packed;
  255. /* OSD2r05: 7.1.2.21 Collections attributes page */
  256. /* TBD */
  257. /* 7.1.2.20 Root Policy/Security attributes page (OSD_APAGE_ROOT_SECURITY) */
  258. enum {
  259. OSD_ATTR_RS_DEFAULT_SECURITY_METHOD = 0x1, /* 1 */
  260. OSD_ATTR_RS_OLDEST_VALID_NONCE_LIMIT = 0x2, /* 6 */
  261. OSD_ATTR_RS_NEWEST_VALID_NONCE_LIMIT = 0x3, /* 6 */
  262. OSD_ATTR_RS_PARTITION_DEFAULT_SECURITY_METHOD = 0x6, /* 1 */
  263. OSD_ATTR_RS_SUPPORTED_SECURITY_METHODS = 0x7, /* 2 */
  264. OSD_ATTR_RS_ADJUSTABLE_CLOCK = 0x9, /* 6 */
  265. OSD_ATTR_RS_MASTER_KEY_IDENTIFIER = 0x7FFD, /* 0 or 7 */
  266. OSD_ATTR_RS_ROOT_KEY_IDENTIFIER = 0x7FFE, /* 0 or 7 */
  267. OSD_ATTR_RS_SUPPORTED_INTEGRITY_ALGORITHM_0 = 0x80000000,/* 1,(x16)*/
  268. OSD_ATTR_RS_SUPPORTED_DH_GROUP_0 = 0x80000010,/* 1,(x16)*/
  269. };
  270. struct root_security_attributes_page {
  271. struct osd_attr_page_header hdr; /* id=R+5, size=0x3F */
  272. u8 default_security_method;
  273. u8 partition_default_security_method;
  274. __be16 supported_security_methods;
  275. u8 mki_valid_rki_valid;
  276. struct osd_timestamp oldest_valid_nonce_limit;
  277. struct osd_timestamp newest_valid_nonce_limit;
  278. struct osd_timestamp adjustable_clock;
  279. u8 master_key_identifier[32-25];
  280. u8 root_key_identifier[39-32];
  281. u8 supported_integrity_algorithm[16];
  282. u8 supported_dh_group[16];
  283. } __packed;
  284. /* 7.1.2.21 Partition Policy/Security attributes page
  285. * (OSD_APAGE_PARTITION_SECURITY)
  286. */
  287. enum {
  288. OSD_ATTR_PS_DEFAULT_SECURITY_METHOD = 0x1, /* 1 */
  289. OSD_ATTR_PS_OLDEST_VALID_NONCE = 0x2, /* 6 */
  290. OSD_ATTR_PS_NEWEST_VALID_NONCE = 0x3, /* 6 */
  291. OSD_ATTR_PS_REQUEST_NONCE_LIST_DEPTH = 0x4, /* 2 */
  292. OSD_ATTR_PS_FROZEN_WORKING_KEY_BIT_MASK = 0x5, /* 2 */
  293. OSD_ATTR_PS_PARTITION_KEY_IDENTIFIER = 0x7FFF, /* 0 or 7 */
  294. OSD_ATTR_PS_WORKING_KEY_IDENTIFIER_FIRST = 0x8000, /* 0 or 7 */
  295. OSD_ATTR_PS_WORKING_KEY_IDENTIFIER_LAST = 0x800F, /* 0 or 7 */
  296. OSD_ATTR_PS_POLICY_ACCESS_TAG = 0x40000001, /* 4 */
  297. OSD_ATTR_PS_USER_OBJECT_POLICY_ACCESS_TAG = 0x40000002, /* 4 */
  298. };
  299. struct partition_security_attributes_page {
  300. struct osd_attr_page_header hdr; /* id=p+5, size=0x8f */
  301. u8 reserved[3];
  302. u8 default_security_method;
  303. struct osd_timestamp oldest_valid_nonce;
  304. struct osd_timestamp newest_valid_nonce;
  305. __be16 request_nonce_list_depth;
  306. __be16 frozen_working_key_bit_mask;
  307. __be32 policy_access_tag;
  308. __be32 user_object_policy_access_tag;
  309. u8 pki_valid;
  310. __be16 wki_00_0f_vld;
  311. struct osd_key_identifier partition_key_identifier;
  312. struct osd_key_identifier working_key_identifiers[16];
  313. } __packed;
  314. /* 7.1.2.22/23 Collection/Object Policy-Security attributes page
  315. * (OSD_APAGE_COLLECTION_SECURITY/OSD_APAGE_OBJECT_SECURITY)
  316. */
  317. enum {
  318. OSD_ATTR_OS_POLICY_ACCESS_TAG = 0x40000001, /* 4 */
  319. };
  320. struct object_security_attributes_page {
  321. struct osd_attr_page_header hdr; /* id=C+5/5, size=4 */
  322. __be32 policy_access_tag;
  323. } __packed;
  324. /* OSD2r05: 7.1.3.31 Current Command attributes page
  325. * (OSD_APAGE_CURRENT_COMMAND)
  326. */
  327. enum {
  328. OSD_ATTR_CC_RESPONSE_INTEGRITY_CHECK_VALUE = 0x1, /* 32 */
  329. OSD_ATTR_CC_OBJECT_TYPE = 0x2, /* 1 */
  330. OSD_ATTR_CC_PARTITION_ID = 0x3, /* 8 */
  331. OSD_ATTR_CC_OBJECT_ID = 0x4, /* 8 */
  332. OSD_ATTR_CC_STARTING_BYTE_ADDRESS_OF_APPEND = 0x5, /* 8 */
  333. OSD_ATTR_CC_CHANGE_IN_USED_CAPACITY = 0x6, /* 8 */
  334. };
  335. /*TBD: osdv1_current_command_attributes_page */
  336. struct osdv2_current_command_attributes_page {
  337. struct osd_attr_page_header hdr; /* id=0xFFFFFFFE, size=0x44 */
  338. u8 response_integrity_check_value[OSD_CRYPTO_KEYID_SIZE];
  339. u8 object_type;
  340. u8 reserved[3];
  341. __be64 partition_id;
  342. __be64 object_id;
  343. __be64 starting_byte_address_of_append;
  344. __be64 change_in_used_capacity;
  345. };
  346. #endif /*ndef __OSD_ATTRIBUTES_H__*/