diff options
author | mav <mav@FreeBSD.org> | 2015-10-05 10:55:08 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-05 10:55:08 +0000 |
commit | 06e368a3c3eab54e7f8d54e297390dd312e437a0 (patch) | |
tree | 50ea6913a7b6b9176f3a234dfaf9102235c67183 /sys/cam/ctl/ctl_cmd_table.c | |
parent | 8aeebc57372626ad7a03875fc1d314039d6e759f (diff) | |
download | FreeBSD-src-06e368a3c3eab54e7f8d54e297390dd312e437a0.zip FreeBSD-src-06e368a3c3eab54e7f8d54e297390dd312e437a0.tar.gz |
MFC r288165: Add support for READ BUFFER(16) command.
Diffstat (limited to 'sys/cam/ctl/ctl_cmd_table.c')
-rw-r--r-- | sys/cam/ctl/ctl_cmd_table.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_cmd_table.c b/sys/cam/ctl/ctl_cmd_table.c index 7711b31..0753f28 100644 --- a/sys/cam/ctl/ctl_cmd_table.c +++ b/sys/cam/ctl/ctl_cmd_table.c @@ -1155,8 +1155,16 @@ const struct ctl_cmd_entry ctl_cmd_table[256] = /* 9A */ {NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE}, -/* 9B */ -{NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE}, +/* 9B READ BUFFER(16) */ +{ctl_read_buffer, CTL_SERIDX_MD_SNS, CTL_CMD_FLAG_OK_ON_BOTH | + CTL_CMD_FLAG_OK_ON_STOPPED | + CTL_CMD_FLAG_OK_ON_INOPERABLE | + CTL_CMD_FLAG_OK_ON_STANDBY | + CTL_FLAG_DATA_IN | + CTL_CMD_FLAG_ALLOW_ON_PR_WRESV, + CTL_LUN_PAT_NONE, + 10, {0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0x07}}, /* 9C WRITE ATOMIC (16) */ {ctl_read_write, CTL_SERIDX_WRITE, CTL_CMD_FLAG_OK_ON_SLUN| CTL_FLAG_DATA_OUT, |