mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-09 06:30:51 +00:00
platinum: Implement FB_TEST read/write.
This commit is contained in:
parent
d7fb49166f
commit
99972307dc
@ -145,6 +145,9 @@ uint32_t PlatinumCtrl::read(uint32_t rgn_start, uint32_t offset, int size) {
|
||||
case PlatinumReg::MON_ID_SENSE:
|
||||
value = (this->mon_sense ^ 7);
|
||||
break;
|
||||
case PlatinumReg::FB_TEST:
|
||||
value = this->fb_test;
|
||||
break;
|
||||
case PlatinumReg::SWATCH_CONFIG:
|
||||
value = this->swatch_config;
|
||||
break;
|
||||
@ -296,6 +299,11 @@ void PlatinumCtrl::write(uint32_t rgn_start, uint32_t offset, uint32_t value, in
|
||||
}
|
||||
|
||||
break;
|
||||
case PlatinumReg::FB_TEST:
|
||||
this->fb_test =
|
||||
(this->fb_test & ~(SENSE_LINE_OUTPUT_DATA | SYNCS_OUTPUT_ENABLE | FORCED_SYNC_LEVELS)) |
|
||||
(value & (SENSE_LINE_OUTPUT_DATA | SYNCS_OUTPUT_ENABLE | FORCED_SYNC_LEVELS));
|
||||
break;
|
||||
case PlatinumReg::VRAM_REFRESH:
|
||||
this->vram_refresh = value;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user