mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349964
@ -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