Moved CmdGetEventStatusNotification to correct class

This commit is contained in:
Uwe Seimet 2021-08-23 12:11:49 +02:00
parent 6565639082
commit bc0f419530
4 changed files with 8 additions and 8 deletions

View File

@ -91,7 +91,6 @@ SCSIDaynaPort::SCSIDaynaPort() : Disk("SCDP")
AddCommand(SCSIDEV::eCmdSetIfaceMode, "CmdSetIfaceMode", &SCSIDaynaPort::CmdSetInterfaceMode);
AddCommand(SCSIDEV::eCmdSetMcastAddr, "CmdSetMcastAddr", &SCSIDaynaPort::CmdSetMcastAddr);
AddCommand(SCSIDEV::eCmdEnableInterface, "CmdEnableInterface", &SCSIDaynaPort::CmdEnableInterface);
AddCommand(SCSIDEV::eCmdGetEventStatusNotification, "CmdGetEventStatusNotification", &SCSIDaynaPort::CmdGetEventStatusNotification);
}
//---------------------------------------------------------------------------
@ -714,12 +713,6 @@ void SCSIDaynaPort::CmdEnableInterface(SASIDEV *controller)
controller->Status();
}
void SCSIDaynaPort::CmdGetEventStatusNotification(SASIDEV *controller)
{
// This naive (but legal) implementation avoids constant warnings in the logs
controller->Error(ERROR_CODES::sense_key::ILLEGAL_REQUEST, ERROR_CODES::asc::INVALID_FIELD_IN_CDB);
}
//---------------------------------------------------------------------------
//
// Set Mode - enable broadcast messages

View File

@ -92,7 +92,6 @@ public:
void CmdSetInterfaceMode(SASIDEV *);
void CmdSetMcastAddr(SASIDEV *);
void CmdEnableInterface(SASIDEV *);
void CmdGetEventStatusNotification(SASIDEV *);
bool Dispatch(SCSIDEV *);

View File

@ -249,6 +249,7 @@ SCSICD::SCSICD() : Disk("SCCD")
AddCommand(SCSIDEV::eCmdPlayAudio10, "CmdPlayAudio10", &SCSICD::CmdPlayAudio10);
AddCommand(SCSIDEV::eCmdPlayAudioMSF, "CmdPlayAudioMSF", &SCSICD::CmdPlayAudioMSF);
AddCommand(SCSIDEV::eCmdPlayAudioTrack, "CmdPlayAudioTrack", &SCSICD::CmdPlayAudioTrack);
AddCommand(SCSIDEV::eCmdGetEventStatusNotification, "CmdGetEventStatusNotification", &SCSICD::CmdGetEventStatusNotification);
}
//---------------------------------------------------------------------------
@ -792,6 +793,12 @@ int SCSICD::ReadToc(const DWORD *cdb, BYTE *buf)
return length;
}
void SCSICD::CmdGetEventStatusNotification(SASIDEV *controller)
{
// This naive (but legal) implementation avoids constant warnings in the logs
controller->Error(ERROR_CODES::sense_key::ILLEGAL_REQUEST, ERROR_CODES::asc::INVALID_FIELD_IN_CDB);
}
//---------------------------------------------------------------------------
//
// LBA→MSF Conversion

View File

@ -121,6 +121,7 @@ private:
void CmdPlayAudio10(SASIDEV *);
void CmdPlayAudioMSF(SASIDEV *);
void CmdPlayAudioTrack(SASIDEV *);
void CmdGetEventStatusNotification(SASIDEV *);
BOOL rawfile; // RAW flag