block: sed-opal: Introduce Opal Datastore UID
authorRevanth Rajashekar <revanth.rajashekar@intel.com>
Thu, 31 Oct 2019 16:13:22 +0000 (10:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 14:11:32 +0000 (07:11 -0700)
This patch introduces Opal Datastore UID.
The generic read/write table ioctl can use this UID
to access the Opal Datastore.

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>
block/opal_proto.h
block/sed-opal.c

index 710911864e1d40239527601a53ffab30b0f9a8c9..736e67c3e7c53bf7bf667436f5b3c2b55a9a30ef 100644 (file)
@@ -107,6 +107,7 @@ enum opal_uid {
        OPAL_C_PIN_TABLE,
        OPAL_LOCKING_INFO_TABLE,
        OPAL_ENTERPRISE_LOCKING_INFO_TABLE,
+       OPAL_DATASTORE,
        /* C_PIN_TABLE object ID's */
        OPAL_C_PIN_MSID,
        OPAL_C_PIN_SID,
index 1d5afaaf0826747f91ab74d7e3b0c0cfb64fea49..b2cacc9ddd114d85292cd1b6c97d79bf2529d16a 100644 (file)
@@ -149,6 +149,8 @@ static const u8 opaluid[][OPAL_UID_LENGTH] = {
                { 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x01 },
        [OPAL_ENTERPRISE_LOCKING_INFO_TABLE] =
                { 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00 },
+       [OPAL_DATASTORE] =
+               { 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00 },
 
        /* C_PIN_TABLE object ID's */
        [OPAL_C_PIN_MSID] =