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:
parent
a7e6ec601a
commit
a5a8266af1
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user