From bcc952a76596d0c87f1f04451c1a5737a2d4f80d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 9 Jul 2012 06:19:38 +0000 Subject: [PATCH] scst: Add support for SECURITY PROTOCOL IN and OUT git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4401 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 646ceb85b..4d5ff8d6e 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -1068,6 +1068,12 @@ static const struct scst_sdbops scst_scsi_op_table[] = { .info_data_direction = SCST_DATA_NONE, .info_op_flags = SCST_LONG_TIMEOUT, .get_cdb_info = get_cdb_info_none}, + {.ops = 0xA2, .devkey = "OO O ", + .info_op_name = "SECURITY PROTOCOL IN", + .info_data_direction = SCST_DATA_READ, + .info_op_flags = SCST_REG_RESERVE_ALLOWED|SCST_WRITE_EXCL_ALLOWED, + .info_len_off = 6, .info_len_len = 4, + .get_cdb_info = get_cdb_info_len_4}, {.ops = 0xA3, .devkey = " O ", .info_op_name = "SEND KEY", .info_data_direction = SCST_DATA_WRITE, @@ -1186,6 +1192,12 @@ static const struct scst_sdbops scst_scsi_op_table[] = { .info_data_direction = SCST_DATA_NONE, .info_op_flags = FLAG_NONE, .get_cdb_info = get_cdb_info_none}, + {.ops = 0xB5, .devkey = "OO O ", + .info_op_name = "SECURITY PROTOCOL OUT", + .info_data_direction = SCST_DATA_WRITE, + .info_op_flags = FLAG_NONE, + .info_len_off = 6, .info_len_len = 4, + .get_cdb_info = get_cdb_info_len_4}, {.ops = 0xB5, .devkey = " O ", .info_op_name = "REQUEST VOLUME ELEMENT ADDRESS", .info_data_direction = SCST_DATA_READ,