summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2016-06-09 16:05:49 +0000
committerimp <imp@FreeBSD.org>2016-06-09 16:05:49 +0000
commit21cf427f6bbd2f8469837e2e3bb1941c61c1e0bc (patch)
tree1d163d75c36ffd3e11176e15c7242b9d905516ce
parenta9e5d4cafa2f3c6e647a5242bbd906b88edb4c5a (diff)
downloadFreeBSD-src-21cf427f6bbd2f8469837e2e3bb1941c61c1e0bc.zip
FreeBSD-src-21cf427f6bbd2f8469837e2e3bb1941c61c1e0bc.tar.gz
Add NVME IO type.
-rw-r--r--sys/cam/cam_ccb.h3
-rw-r--r--sys/cam/cam_xpt.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h
index 8362f6c..fc59ff5 100644
--- a/sys/cam/cam_ccb.h
+++ b/sys/cam/cam_ccb.h
@@ -204,6 +204,9 @@ typedef enum {
XPT_SMP_IO = 0x1b | XPT_FC_DEV_QUEUED,
/* Serial Management Protocol */
+ XPT_NVME_IO = 0x1c | XPT_FC_DEV_QUEUED,
+ /* Execiute the requestred NVMe I/O operation */
+
XPT_SCAN_TGT = 0x1E | XPT_FC_QUEUED | XPT_FC_USER_CCB
| XPT_FC_XPT_ONLY,
/* Scan Target */
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 30554fd..cbdf052 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -5361,6 +5361,7 @@ static struct kv map[] = {
{ XPT_ATA_IO, "XPT_ATA_IO" },
{ XPT_GET_SIM_KNOB, "XPT_GET_SIM_KNOB" },
{ XPT_SET_SIM_KNOB, "XPT_SET_SIM_KNOB" },
+ { XPT_NVME_IO, "XPT_NVME_IO" },
{ XPT_SMP_IO, "XPT_SMP_IO" },
{ XPT_SCAN_TGT, "XPT_SCAN_TGT" },
{ XPT_ENG_INQ, "XPT_ENG_INQ" },
OpenPOWER on IntegriCloud