DSP_DSP: Updated interrupt implementation

This commit is contained in:
MerryMage
2016-04-24 10:21:10 +01:00
parent 555907ce8d
commit ff6db69c60
4 changed files with 113 additions and 46 deletions

View File

@ -8,6 +8,12 @@
#include "core/hle/service/service.h"
namespace DSP {
namespace HLE {
enum class DspPipe;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace DSP_DSP
@ -23,15 +29,10 @@ public:
}
};
/// Signal all audio related interrupts.
void SignalAllInterrupts();
/**
* Signal a specific audio related interrupt based on interrupt id and channel id.
* @param interrupt_id The interrupt id
* @param channel_id The channel id
* The significance of various values of interrupt_id and channel_id is not yet known.
* Signal a specific DSP related interrupt of type == InterruptType::Pipe, pipe == pipe.
* @param pipe The DSP pipe for which to signal an interrupt for.
*/
void SignalInterrupt(u32 interrupt_id, u32 channel_id);
void SignalPipeInterrupt(DSP::HLE::DspPipe pipe);
} // namespace
} // namespace DSP_DSP