Skip to content

Commit

Permalink
mesh: implement EnaParityCheck and DisParityCheck commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximumspatium committed Jul 25, 2024
1 parent 19ecc4f commit 8d6f77e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devices/common/scsi/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions devices/common/scsi/mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8d6f77e

Please sign in to comment.