mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-02-04 06:29:56 +00:00
Wire SCSI_CURIO interrupt.
This commit is contained in:
parent
ce2f6ddadd
commit
5902cd5c28
@ -48,7 +48,7 @@ int Sc53C94::device_postinit()
|
||||
|
||||
this->int_ctrl = dynamic_cast<InterruptCtrl*>(
|
||||
gMachineObj->get_comp_by_type(HWCompType::INT_CTRL));
|
||||
this->irq_id = this->int_ctrl->register_dev_int(IntSrc::SCSI1);
|
||||
this->irq_id = this->int_ctrl->register_dev_int(IntSrc::SCSI_CURIO);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
DingusPPC - The Experimental PowerPC Macintosh emulator
|
||||
Copyright (C) 2018-23 divingkatae and maximum
|
||||
Copyright (C) 2018-24 divingkatae and maximum
|
||||
(theweirdo) spatium
|
||||
|
||||
(Contact divingkatae#1017 or powermax#2286 on Discord for more info)
|
||||
@ -425,7 +425,7 @@ uint32_t AMIC::register_dev_int(IntSrc src_id) {
|
||||
switch (src_id) {
|
||||
case IntSrc::VIA_CUDA:
|
||||
return CPU_INT_VIA1;
|
||||
case IntSrc::SCSI1:
|
||||
case IntSrc::SCSI_CURIO:
|
||||
return VIA2_INT_SCSI_IRQ << 8;
|
||||
case IntSrc::SWIM3:
|
||||
return VIA2_INT_SWIM3 << 8;
|
||||
|
@ -273,12 +273,10 @@ void GrandCentral::attach_iodevice(int dev_num, IobusDevice* dev_obj)
|
||||
|
||||
uint32_t GrandCentral::register_dev_int(IntSrc src_id) {
|
||||
switch (src_id) {
|
||||
case IntSrc::VIA_CUDA:
|
||||
return 1 << 18;
|
||||
case IntSrc::SCSI1:
|
||||
return 1 << 12;
|
||||
case IntSrc::SWIM3:
|
||||
return 1 << 19;
|
||||
case IntSrc::SCSI_CURIO: return 1 << 12;
|
||||
case IntSrc::SCSI_MESH: return 1 << 13;
|
||||
case IntSrc::VIA_CUDA: return 1 << 18;
|
||||
case IntSrc::SWIM3: return 1 << 19;
|
||||
default:
|
||||
ABORT_F("%s: unknown interrupt source %d", this->name.c_str(), src_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user