2014-10-29 18:38:33 -07:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-16 21:38:14 -08:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-29 18:38:33 -07:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-06-27 17:56:17 +01:00
|
|
|
#include <string>
|
2014-10-29 18:38:33 -07:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2016-04-24 10:21:10 +01:00
|
|
|
namespace DSP {
|
|
|
|
namespace HLE {
|
|
|
|
enum class DspPipe;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-10 07:51:50 -05:00
|
|
|
namespace Service {
|
2014-10-29 18:38:33 -07:00
|
|
|
namespace DSP_DSP {
|
|
|
|
|
2016-12-10 07:51:50 -05:00
|
|
|
class Interface final : public Service::Interface {
|
2014-10-29 18:38:33 -07:00
|
|
|
public:
|
|
|
|
Interface();
|
2015-07-17 02:24:13 -03:00
|
|
|
~Interface() override;
|
2014-12-21 11:52:10 -08:00
|
|
|
|
2014-11-12 13:13:08 -08:00
|
|
|
std::string GetPortName() const override {
|
2014-11-26 00:39:36 -05:00
|
|
|
return "dsp::DSP";
|
2014-10-29 18:38:33 -07:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-02-21 13:13:52 +00:00
|
|
|
/**
|
2016-04-24 10:21:10 +01:00
|
|
|
* Signal a specific DSP related interrupt of type == InterruptType::Pipe, pipe == pipe.
|
|
|
|
* @param pipe The DSP pipe for which to signal an interrupt for.
|
2016-02-21 13:13:52 +00:00
|
|
|
*/
|
2016-04-24 10:21:10 +01:00
|
|
|
void SignalPipeInterrupt(DSP::HLE::DspPipe pipe);
|
2015-01-05 00:19:28 -05:00
|
|
|
|
2016-04-24 10:21:10 +01:00
|
|
|
} // namespace DSP_DSP
|
2016-12-10 07:51:50 -05:00
|
|
|
} // namespace Service
|