From a26628ed506ee86ebc3c187921a562a8c67cf76d Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 17 Oct 2023 19:53:19 -0700 Subject: [PATCH] bandit: Add delayed aack register. --- devices/common/pci/bandit.cpp | 5 +++++ devices/common/pci/bandit.h | 1 + 2 files changed, 6 insertions(+) diff --git a/devices/common/pci/bandit.cpp b/devices/common/pci/bandit.cpp index 52c9efd..3a10ca9 100644 --- a/devices/common/pci/bandit.cpp +++ b/devices/common/pci/bandit.cpp @@ -79,6 +79,8 @@ uint32_t BanditPciDevice::pci_cfg_read(uint32_t reg_offs, AccessDetails &details return this->mode_ctrl; case BANDIT_ARBUS_RD_HOLD_OFF: return this->rd_hold_off_cnt; + case BANDIT_DELAYED_AACK: // BANDIT_ONS + return 0; default: 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: this->rd_hold_off_cnt = value & 0x1F; return; + case BANDIT_DELAYED_AACK: + // implement this for CATALYST and Platinum + return; default: LOG_WRITE_UNIMPLEMENTED_CONFIG_REGISTER(); } diff --git a/devices/common/pci/bandit.h b/devices/common/pci/bandit.h index dd130ce..92742bf 100644 --- a/devices/common/pci/bandit.h +++ b/devices/common/pci/bandit.h @@ -60,6 +60,7 @@ enum { BANDIT_ADDR_MASK = 0x48, BANDIT_MODE_SELECT = 0x50, BANDIT_ARBUS_RD_HOLD_OFF = 0x58, + BANDIT_DELAYED_AACK = 0x60, }; /** checks if one bit is set at time, return 0 if not */