mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
amic: implement AMIC2 identification.
This commit is contained in:
parent
e66979d30f
commit
7c47b9c1e7
@ -91,6 +91,8 @@ uint32_t AMIC::read(uint32_t reg_start, uint32_t offset, int size)
|
|||||||
return this->snd_out_dma->read_stat();
|
return this->snd_out_dma->read_stat();
|
||||||
case AMICReg::Diag_Reg:
|
case AMICReg::Diag_Reg:
|
||||||
return 0xFFU; // this value allows the machine to boot normally
|
return 0xFFU; // this value allows the machine to boot normally
|
||||||
|
case AMICReg::SCSI_DMA_Ctrl:
|
||||||
|
return this->scsi_dma_cs;
|
||||||
default:
|
default:
|
||||||
LOG_F(WARNING, "Unknown AMIC register read, offset=%x", offset);
|
LOG_F(WARNING, "Unknown AMIC register read, offset=%x", offset);
|
||||||
}
|
}
|
||||||
@ -177,6 +179,7 @@ void AMIC::write(uint32_t reg_start, uint32_t offset, uint32_t value, int size)
|
|||||||
break;
|
break;
|
||||||
case AMICReg::SCSI_DMA_Ctrl:
|
case AMICReg::SCSI_DMA_Ctrl:
|
||||||
LOG_F(INFO, "AMIC SCSI DMA Ctrl updated, val=%x", value);
|
LOG_F(INFO, "AMIC SCSI DMA Ctrl updated, val=%x", value);
|
||||||
|
this->scsi_dma_cs = value;
|
||||||
break;
|
break;
|
||||||
case AMICReg::Enet_DMA_Rcv_Ctrl:
|
case AMICReg::Enet_DMA_Rcv_Ctrl:
|
||||||
LOG_F(INFO, "AMIC Ethernet Receive DMA Ctrl updated, val=%x", value);
|
LOG_F(INFO, "AMIC Ethernet Receive DMA Ctrl updated, val=%x", value);
|
||||||
|
@ -139,6 +139,8 @@ private:
|
|||||||
uint16_t snd_buf_size = 0; // sound buffer size in bytes
|
uint16_t snd_buf_size = 0; // sound buffer size in bytes
|
||||||
uint8_t snd_out_ctrl = 0;
|
uint8_t snd_out_ctrl = 0;
|
||||||
|
|
||||||
|
uint8_t scsi_dma_cs = 0; // SCSI DMA control/status register value
|
||||||
|
|
||||||
std::unique_ptr<ViaCuda> viacuda;
|
std::unique_ptr<ViaCuda> viacuda;
|
||||||
std::unique_ptr<AwacDevicePdm> awacs;
|
std::unique_ptr<AwacDevicePdm> awacs;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user