bandit: Add delayed aack register.

This commit is contained in:
joevt 2023-10-17 19:53:19 -07:00 committed by dingusdev
parent 0b5a798343
commit a26628ed50
2 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,8 @@ uint32_t BanditPciDevice::pci_cfg_read(uint32_t reg_offs, AccessDetails &details
return this->mode_ctrl; return this->mode_ctrl;
case BANDIT_ARBUS_RD_HOLD_OFF: case BANDIT_ARBUS_RD_HOLD_OFF:
return this->rd_hold_off_cnt; return this->rd_hold_off_cnt;
case BANDIT_DELAYED_AACK: // BANDIT_ONS
return 0;
default: default:
LOG_READ_UNIMPLEMENTED_CONFIG_REGISTER(); LOG_READ_UNIMPLEMENTED_CONFIG_REGISTER();
} }
@ -103,6 +105,9 @@ void BanditPciDevice::pci_cfg_write(uint32_t reg_offs, uint32_t value, AccessDet
case BANDIT_ARBUS_RD_HOLD_OFF: case BANDIT_ARBUS_RD_HOLD_OFF:
this->rd_hold_off_cnt = value & 0x1F; this->rd_hold_off_cnt = value & 0x1F;
return; return;
case BANDIT_DELAYED_AACK:
// implement this for CATALYST and Platinum
return;
default: default:
LOG_WRITE_UNIMPLEMENTED_CONFIG_REGISTER(); LOG_WRITE_UNIMPLEMENTED_CONFIG_REGISTER();
} }

View File

@ -60,6 +60,7 @@ enum {
BANDIT_ADDR_MASK = 0x48, BANDIT_ADDR_MASK = 0x48,
BANDIT_MODE_SELECT = 0x50, BANDIT_MODE_SELECT = 0x50,
BANDIT_ARBUS_RD_HOLD_OFF = 0x58, BANDIT_ARBUS_RD_HOLD_OFF = 0x58,
BANDIT_DELAYED_AACK = 0x60,
}; };
/** checks if one bit is set at time, return 0 if not */ /** checks if one bit is set at time, return 0 if not */