From 21cf427f6bbd2f8469837e2e3bb1941c61c1e0bc Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 9 Jun 2016 16:05:49 +0000 Subject: [PATCH] Add NVME IO type. --- sys/cam/cam_ccb.h | 3 +++ sys/cam/cam_xpt.c | 1 + 2 files changed, 4 insertions(+) diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h index 8362f6ca9435..fc59ff5d8f99 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 30554fdbfabd..cbdf0521403f 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" },