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