summaryrefslogtreecommitdiff
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-07-13 03:22:28 +0000
committerWarner Losh <imp@FreeBSD.org>2019-07-13 03:22:28 +0000
commita5a8266af1c3e70e8507dcda640ea1050b9898ce (patch)
treeb7305251fb695d092d0462226658d7d643376fce /sbin/camcontrol
parenta7e6ec601adef74ffbcb41425e992c9551c4ece3 (diff)
downloadsrc-test2-a5a8266af1c3e70e8507dcda640ea1050b9898ce.tar.gz
src-test2-a5a8266af1c3e70e8507dcda640ea1050b9898ce.zip
Notes
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c8
-rw-r--r--sbin/camcontrol/camcontrol.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 86ac5534fe8a..5b8d47a66b1c 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -5366,6 +5366,14 @@ get_device_type(struct cam_device *dev, int retry_count, int timeout,
*devtype = CC_DT_ATA;
goto bailout;
break; /*NOTREACHED*/
+ case PROTO_NVME:
+ *devtype = CC_DT_NVME;
+ goto bailout;
+ break; /*NOTREACHED*/
+ case PROTO_MMCSD:
+ *devtype = CC_DT_MMCSD;
+ goto bailout;
+ break; /*NOTREACHED*/
default:
*devtype = CC_DT_UNKNOWN;
goto bailout;
diff --git a/sbin/camcontrol/camcontrol.h b/sbin/camcontrol/camcontrol.h
index f6a0a3979150..7c3f7da1f5c9 100644
--- a/sbin/camcontrol/camcontrol.h
+++ b/sbin/camcontrol/camcontrol.h
@@ -44,6 +44,8 @@ typedef enum {
CC_DT_SCSI,
CC_DT_ATA_BEHIND_SCSI,
CC_DT_ATA,
+ CC_DT_NVME,
+ CC_DT_MMCSD,
CC_DT_UNKNOWN
} camcontrol_devtype;