From 8d6f77ea7149d3a8577253f115953c64ac0faa5f Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Thu, 25 Jul 2024 22:17:47 +0200 Subject: [PATCH] mesh: implement EnaParityCheck and DisParityCheck commands. --- devices/common/scsi/mesh.cpp | 6 ++++++ devices/common/scsi/mesh.h | 1 + 2 files changed, 7 insertions(+) diff --git a/devices/common/scsi/mesh.cpp b/devices/common/scsi/mesh.cpp index 3c267d83b..fcfa524e1 100644 --- a/devices/common/scsi/mesh.cpp +++ b/devices/common/scsi/mesh.cpp @@ -219,6 +219,12 @@ void MeshController::perform_command(const uint8_t cmd) { this->int_stat |= INT_CMD_DONE; this->update_irq(); break; + case SeqCmd::EnaParityCheck: + this->check_parity = true; + break; + case SeqCmd::DisParityCheck: + this->check_parity = false; + break; case SeqCmd::EnaReselect: LOG_F(9, "MESH: EnaReselect stub invoked"); this->int_stat |= INT_CMD_DONE; diff --git a/devices/common/scsi/mesh.h b/devices/common/scsi/mesh.h index bc061df87..abdef594d 100644 --- a/devices/common/scsi/mesh.h +++ b/devices/common/scsi/mesh.h @@ -150,6 +150,7 @@ class MeshController : public ScsiBusController, public MeshBase { uint8_t error; uint8_t exception = 0; uint16_t bus_stat; + bool check_parity = true; }; #endif // MESH_H