|
@@ -171,10 +171,6 @@ int scsiVendorCommand()
|
|
|
// XEBEC S1410 controller
|
|
// XEBEC S1410 controller
|
|
|
// Stub, return success
|
|
// Stub, return success
|
|
|
}
|
|
}
|
|
|
- else if (scsiToolboxEnabled() && scsiToolboxCommand())
|
|
|
|
|
- {
|
|
|
|
|
- // already handled
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
commandHandled = 0;
|
|
commandHandled = 0;
|
|
@@ -185,7 +181,16 @@ int scsiVendorCommand()
|
|
|
|
|
|
|
|
void scsiVendorCommandSetLen(uint8_t command, uint8_t* command_length)
|
|
void scsiVendorCommandSetLen(uint8_t command, uint8_t* command_length)
|
|
|
{
|
|
{
|
|
|
- if (scsiDev.target->cfg->deviceType == S2S_CFG_OPTICAL)
|
|
|
|
|
|
|
+ if (scsiToolboxEnabled())
|
|
|
|
|
+ {
|
|
|
|
|
+ // Conflicts with Apple CD-ROM audio over SCSI bus and Plextor CD-ROM D8 extension
|
|
|
|
|
+ // Will override those commands if enabled
|
|
|
|
|
+ if (0xD0 <= command && command <= 0xDA)
|
|
|
|
|
+ {
|
|
|
|
|
+ *command_length = 10;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (scsiDev.target->cfg->deviceType == S2S_CFG_OPTICAL)
|
|
|
{
|
|
{
|
|
|
// Apple CD-ROM with CD audio over the SCSI bus
|
|
// Apple CD-ROM with CD audio over the SCSI bus
|
|
|
if (scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_APPLE && (command == 0xD8 || command == 0xD9))
|
|
if (scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_APPLE && (command == 0xD8 || command == 0xD9))
|
|
@@ -193,19 +198,9 @@ void scsiVendorCommandSetLen(uint8_t command, uint8_t* command_length)
|
|
|
*command_length = 12;
|
|
*command_length = 12;
|
|
|
}
|
|
}
|
|
|
// Plextor CD-ROM vendor extensions 0xD8
|
|
// Plextor CD-ROM vendor extensions 0xD8
|
|
|
- if (unlikely(scsiDev.target->cfg->vendorExtensions & VENDOR_EXTENSION_OPTICAL_PLEXTOR) && command == 0xD8)
|
|
|
|
|
|
|
+ else if (unlikely(scsiDev.target->cfg->vendorExtensions & VENDOR_EXTENSION_OPTICAL_PLEXTOR) && command == 0xD8)
|
|
|
{
|
|
{
|
|
|
*command_length = 12;
|
|
*command_length = 12;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (scsiToolboxEnabled())
|
|
|
|
|
- {
|
|
|
|
|
- // Conflicts with Apple CD-ROM audio over SCSI bus and Plextor CD-ROM D8 extension
|
|
|
|
|
- // Will override those commands if enabled
|
|
|
|
|
- if (0xD0 <= command && command <= 0xDA)
|
|
|
|
|
- {
|
|
|
|
|
- *command_length = 10;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+}
|