From 3e6f7ef541046d125977e24db83411ba06b0004d Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 27 Feb 2024 22:11:55 -0800 Subject: [PATCH] atimach64gx: Init FIFO_CNT. --- devices/video/atimach64gx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devices/video/atimach64gx.cpp b/devices/video/atimach64gx.cpp index 92f2d0a..07d2b7a 100644 --- a/devices/video/atimach64gx.cpp +++ b/devices/video/atimach64gx.cpp @@ -156,6 +156,12 @@ AtiMach64Gx::AtiMach64Gx() // set up RAMDAC identification this->regs[ATI_CONFIG_STAT0] = 1 << 9; + + // stuff default values into chip registers + // this->regs[ATI_CONFIG_CHIP_ID] = (asic_id << ATI_CFG_CHIP_MAJOR) | (dev_id << ATI_CFG_CHIP_TYPE); + + // set the FIFO + insert_bits(this->regs[ATI_GUI_STAT], 32, ATI_FIFO_CNT, ATI_FIFO_CNT_size); } void AtiMach64Gx::change_one_bar(uint32_t &aperture, uint32_t aperture_size, uint32_t aperture_new, int bar_num) {