Add device type NVME and device type MMCSD to get_device_type

For completeness, add nvme and mmc/sd devices to the list of device
types we know.
This commit is contained in:
imp 2019-07-13 03:22:28 +00:00
parent c6c2bd782c
commit a95d90456b
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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;