mirror of
https://github.com/thewesker/RASCSI.git
synced 2025-12-20 12:21:10 -05:00
First draft of nuvolink simulation
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
// [ SCSI device controller ]
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
#include "log.h"
|
||||
#include "controllers/scsidev_ctrl.h"
|
||||
#include "gpiobus.h"
|
||||
#include "devices/scsi_host_bridge.h"
|
||||
@@ -564,6 +565,7 @@ void FASTCALL SCSIDEV::CmdInquiry()
|
||||
#else
|
||||
host->GetVM()->GetVersion(major, minor);
|
||||
#endif // RASCSI
|
||||
LOGINFO("Buffer size is %d",ctrl.bufsize);
|
||||
ctrl.length =
|
||||
ctrl.unit[lun]->Inquiry(ctrl.cmd, ctrl.buffer, major, minor);
|
||||
} else {
|
||||
|
||||
@@ -106,6 +106,11 @@ int FASTCALL SCSINuvolink::Inquiry(
|
||||
extended_size = (WORD)cdb[4] + (((WORD)cdb[3])<<8);
|
||||
LOGINFO("Inquiry Size was %d", extended_size);
|
||||
|
||||
for(int i=0; i< 5; i++)
|
||||
{
|
||||
LOGINFO("CDB Byte %d: %02X",i,cdb[i]);
|
||||
}
|
||||
|
||||
// EVPD check
|
||||
if (cdb[1] & 0x01) {
|
||||
disk.code = DISK_INVALIDCDB;
|
||||
|
||||
Reference in New Issue
Block a user