mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-02-09 08:30:39 +00:00
Silence SCSI logging messages.
This commit is contained in:
parent
d50152dd1a
commit
3de89eaaf7
@ -313,7 +313,7 @@ void Sc53C94::exec_command()
|
|||||||
this->cmd_steps = sel_no_atn_desc;
|
this->cmd_steps = sel_no_atn_desc;
|
||||||
this->cur_state = SeqState::BUS_FREE;
|
this->cur_state = SeqState::BUS_FREE;
|
||||||
this->sequencer();
|
this->sequencer();
|
||||||
LOG_F(INFO, "SC53C94: SELECT W/O ATN command started");
|
LOG_F(9, "SC53C94: SELECT W/O ATN command started");
|
||||||
break;
|
break;
|
||||||
case CMD_SELECT_WITH_ATN:
|
case CMD_SELECT_WITH_ATN:
|
||||||
static SeqDesc * sel_with_atn_desc = new SeqDesc[4]{
|
static SeqDesc * sel_with_atn_desc = new SeqDesc[4]{
|
||||||
@ -327,7 +327,7 @@ void Sc53C94::exec_command()
|
|||||||
this->cmd_steps = sel_with_atn_desc;
|
this->cmd_steps = sel_with_atn_desc;
|
||||||
this->cur_state = SeqState::BUS_FREE;
|
this->cur_state = SeqState::BUS_FREE;
|
||||||
this->sequencer();
|
this->sequencer();
|
||||||
LOG_F(INFO, "SC53C94: SELECT WITH ATN command started");
|
LOG_F(9, "SC53C94: SELECT WITH ATN command started");
|
||||||
break;
|
break;
|
||||||
case CMD_ENA_SEL_RESEL:
|
case CMD_ENA_SEL_RESEL:
|
||||||
exec_next_command();
|
exec_next_command();
|
||||||
@ -434,7 +434,7 @@ void Sc53C94::sequencer()
|
|||||||
case SeqState::SEL_END:
|
case SeqState::SEL_END:
|
||||||
if (this->bus_obj->end_selection(this->my_bus_id, this->target_id)) {
|
if (this->bus_obj->end_selection(this->my_bus_id, this->target_id)) {
|
||||||
this->bus_obj->release_ctrl_line(this->my_bus_id, SCSI_CTRL_SEL);
|
this->bus_obj->release_ctrl_line(this->my_bus_id, SCSI_CTRL_SEL);
|
||||||
LOG_F(INFO, "SC53C94: selection completed");
|
LOG_F(9, "SC53C94: selection completed");
|
||||||
} else { // selection timeout
|
} else { // selection timeout
|
||||||
this->seq_step = this->cmd_steps->step_num;
|
this->seq_step = this->cmd_steps->step_num;
|
||||||
this->int_status |= this->cmd_steps->status;
|
this->int_status |= this->cmd_steps->status;
|
||||||
|
@ -30,12 +30,12 @@ void ScsiDevice::notify(ScsiBus* bus_obj, ScsiMsg msg_type, int param)
|
|||||||
if (msg_type == ScsiMsg::BUS_PHASE_CHANGE) {
|
if (msg_type == ScsiMsg::BUS_PHASE_CHANGE) {
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case ScsiPhase::RESET:
|
case ScsiPhase::RESET:
|
||||||
LOG_F(INFO, "ScsiDevice %d: bus reset aknowledged", this->scsi_id);
|
LOG_F(9, "ScsiDevice %d: bus reset aknowledged", this->scsi_id);
|
||||||
break;
|
break;
|
||||||
case ScsiPhase::SELECTION:
|
case ScsiPhase::SELECTION:
|
||||||
// check if something tries to select us
|
// check if something tries to select us
|
||||||
if (bus_obj->get_data_lines() & (1 << scsi_id)) {
|
if (bus_obj->get_data_lines() & (1 << scsi_id)) {
|
||||||
LOG_F(INFO, "ScsiDevice %d selected", this->scsi_id);
|
LOG_F(9, "ScsiDevice %d selected", this->scsi_id);
|
||||||
TimerManager::get_instance()->add_oneshot_timer(
|
TimerManager::get_instance()->add_oneshot_timer(
|
||||||
BUS_SETTLE_DELAY,
|
BUS_SETTLE_DELAY,
|
||||||
[this, bus_obj]() {
|
[this, bus_obj]() {
|
||||||
@ -48,7 +48,9 @@ void ScsiDevice::notify(ScsiBus* bus_obj, ScsiMsg msg_type, int param)
|
|||||||
this->bus_obj = bus_obj;
|
this->bus_obj = bus_obj;
|
||||||
if (bus_obj->test_ctrl_lines(SCSI_CTRL_ATN)) {
|
if (bus_obj->test_ctrl_lines(SCSI_CTRL_ATN)) {
|
||||||
this->switch_phase(ScsiPhase::MESSAGE_OUT);
|
this->switch_phase(ScsiPhase::MESSAGE_OUT);
|
||||||
LOG_F(INFO, "ScsiDevice: received message 0x%X", this->msg_buf[0]);
|
if (this->msg_buf[0] != 0x80) {
|
||||||
|
LOG_F(INFO, "ScsiDevice: received message 0x%X", this->msg_buf[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this->switch_phase(ScsiPhase::COMMAND);
|
this->switch_phase(ScsiPhase::COMMAND);
|
||||||
this->process_command();
|
this->process_command();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user