- Add support for Simplified Direct Access Device, mostly for
Firewire/SBP-II devices. - Add quirk for Logitec USB/Firewire HDD. MFC after: 3 days.
This commit is contained in:
parent
07ac83f0b0
commit
8b798fba96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91016
@ -2220,6 +2220,12 @@ scsi_print_inquiry(struct scsi_inquiry_data *inq_data)
|
||||
case T_ENCLOSURE:
|
||||
dtype = "Enclosure Services";
|
||||
break;
|
||||
case T_RBC:
|
||||
dtype = "Simplified Direct Access";
|
||||
break;
|
||||
case T_OCRW:
|
||||
dtype = "Optical Card Read/Write";
|
||||
break;
|
||||
case T_NODEVICE:
|
||||
dtype = "Uninstalled";
|
||||
default:
|
||||
|
@ -141,6 +141,19 @@ static const char microp[] = "MICROP";
|
||||
|
||||
static struct da_quirk_entry da_quirk_table[] =
|
||||
{
|
||||
/*
|
||||
* Logitec USB/Firewire LHD-P30FU
|
||||
*/
|
||||
{
|
||||
/* USB part */
|
||||
{T_DIRECT, SIP_MEDIA_FIXED, "HITACHI_", "DK23DA*", "*"},
|
||||
/*quirks*/ DA_Q_NO_6_BYTE
|
||||
},
|
||||
{
|
||||
/* Firewire part */
|
||||
{T_DIRECT, SIP_MEDIA_FIXED, "LSILogic", "SYM13FW*", "*"},
|
||||
/*quirks*/ DA_Q_NO_6_BYTE
|
||||
},
|
||||
{
|
||||
/*
|
||||
* Fujitsu M2513A MO drives.
|
||||
@ -1032,6 +1045,7 @@ daasync(void *callback_arg, u_int32_t code,
|
||||
break;
|
||||
|
||||
if (SID_TYPE(&cgd->inq_data) != T_DIRECT
|
||||
&& SID_TYPE(&cgd->inq_data) != T_RBC
|
||||
&& SID_TYPE(&cgd->inq_data) != T_OPTICAL)
|
||||
break;
|
||||
|
||||
@ -1131,7 +1145,7 @@ daregister(struct cam_periph *periph, void *arg)
|
||||
else
|
||||
softc->quirks = DA_Q_NONE;
|
||||
|
||||
if (softc->quirks & DA_Q_NO_6_BYTE)
|
||||
if (softc->quirks & DA_Q_NO_6_BYTE || SID_TYPE(&cgd->inq_data) == T_RBC)
|
||||
softc->minimum_cmd_size = 10;
|
||||
else
|
||||
softc->minimum_cmd_size = 6;
|
||||
|
Loading…
Reference in New Issue
Block a user