mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-23 21:29:30 +00:00
Added special rule for testing on x86 PCs
This commit is contained in:
parent
6fa5d86786
commit
6c316ef6ab
@ -90,10 +90,15 @@ bool SCSIBR::Init(const string&)
|
||||
}
|
||||
|
||||
// Packet reception flag OFF
|
||||
packet_enable = FALSE;
|
||||
packet_enable = false;
|
||||
#endif
|
||||
|
||||
// Not terminating on regular Linux PCs is helpful for testing
|
||||
#if defined(__x86_64__) || defined(__X86__)
|
||||
return true;
|
||||
#else
|
||||
return m_bTapEnable;
|
||||
#endif
|
||||
}
|
||||
|
||||
void SCSIBR::AddCommand(SCSIDEV::scsi_command opcode, const char* name, void (SCSIBR::*execute)(SASIDEV *))
|
||||
@ -457,7 +462,7 @@ void SCSIBR::ReceivePacket()
|
||||
|
||||
// Store in receive buffer
|
||||
if (packet_len > 0) {
|
||||
packet_enable = TRUE;
|
||||
packet_enable = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -481,7 +486,7 @@ void SCSIBR::GetPacketBuf(BYTE *buf)
|
||||
memcpy(buf, packet_buf, len);
|
||||
|
||||
// Received
|
||||
packet_enable = FALSE;
|
||||
packet_enable = false;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -74,7 +74,7 @@ private:
|
||||
BYTE mac_addr[6]; // MAC Addres
|
||||
int packet_len; // Receive packet size
|
||||
BYTE packet_buf[0x1000]; // Receive packet buffer
|
||||
BOOL packet_enable; // Received packet valid
|
||||
bool packet_enable; // Received packet valid
|
||||
|
||||
int ReadFsResult(BYTE *buf); // Read filesystem (result code)
|
||||
int ReadFsOut(BYTE *buf); // Read filesystem (return data)
|
||||
|
Loading…
Reference in New Issue
Block a user