aboutsummaryrefslogtreecommitdiffstats
path: root/block/opal_proto.h
diff options
context:
space:
mode:
authorRevanth Rajashekar <revanth.rajashekar@intel.com>2019-10-31 10:13:21 -0600
committerJens Axboe <axboe@kernel.dk>2019-11-04 07:11:31 -0700
commit51f421c85c880dcb37df11e672b384eaa4444328 (patch)
tree325f63d13354aaec384c572a4cd64efe4c0c5e4d /block/opal_proto.h
parentblock: sed-opal: Generalizing write data to any opal table (diff)
downloadlinux-dev-51f421c85c880dcb37df11e672b384eaa4444328.tar.xz
linux-dev-51f421c85c880dcb37df11e672b384eaa4444328.zip
block: sed-opal: Add support to read/write opal tables generically
This feature gives the user RW access to any opal table with admin1 authority. The flags described in the new structure determines if the user wants to read/write the data. Flags are checked for valid values in order to allow future features to be added to the ioctl. The user can provide the desired table's UID. Also, the ioctl provides a size and offset field and internally will loop data accesses to return the full data block. Read overrun is prevented by the initiator's sec_send_recv() backend. The ioctl provides a private field with the intention to accommodate any future expansions to the ioctl. Reviewed-by: Scott Bauer <sbauer@plzdonthack.me> Reviewed-by: Jon Derrick <jonathan.derrick@intel.com> Signed-off-by: Revanth Rajashekar <revanth.rajashekar@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/opal_proto.h')
-rw-r--r--block/opal_proto.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/opal_proto.h b/block/opal_proto.h
index 5532412d567c..710911864e1d 100644
--- a/block/opal_proto.h
+++ b/block/opal_proto.h
@@ -76,7 +76,6 @@ enum opal_response_token {
* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00
* Section: 6.3 Assigned UIDs
*/
-#define OPAL_UID_LENGTH 8
#define OPAL_METHOD_LENGTH 8
#define OPAL_MSID_KEYLEN 15
#define OPAL_UID_LENGTH_HALF 4