2014-10-16 07:19:04 +00:00
|
|
|
#pragma once
|
2008-10-20 04:14:13 +00:00
|
|
|
|
|
|
|
#include "Iop_SifMan.h"
|
2015-07-12 23:54:13 +00:00
|
|
|
#include "../ee/SIF.h"
|
2008-10-20 04:14:13 +00:00
|
|
|
|
|
|
|
namespace Iop
|
|
|
|
{
|
2012-04-07 23:44:10 +00:00
|
|
|
class CSifManPs2 : public CSifMan
|
|
|
|
{
|
|
|
|
public:
|
2018-04-30 20:01:23 +00:00
|
|
|
CSifManPs2(CSIF&, uint8*, uint8*);
|
2018-07-11 16:29:43 +00:00
|
|
|
virtual ~CSifManPs2() = default;
|
2008-10-20 04:14:13 +00:00
|
|
|
|
2018-04-30 20:01:23 +00:00
|
|
|
void RegisterModule(uint32, CSifModule*) override;
|
|
|
|
bool IsModuleRegistered(uint32) override;
|
|
|
|
void UnregisterModule(uint32) override;
|
|
|
|
void SendPacket(void*, uint32) override;
|
|
|
|
void SetDmaBuffer(uint32, uint32) override;
|
|
|
|
void SetCmdBuffer(uint32, uint32) override;
|
|
|
|
void SendCallReply(uint32, const void*) override;
|
|
|
|
void GetOtherData(uint32, uint32, uint32) override;
|
|
|
|
void SetModuleResetHandler(const ModuleResetHandler&) override;
|
|
|
|
void SetCustomCommandHandler(const CustomCommandHandler&) override;
|
2008-10-20 04:14:13 +00:00
|
|
|
|
2018-04-30 20:01:23 +00:00
|
|
|
uint32 SifSetDma(uint32, uint32) override;
|
2009-04-28 01:20:03 +00:00
|
|
|
|
2018-04-30 20:01:23 +00:00
|
|
|
uint8* GetEeRam() const;
|
2014-10-16 07:33:59 +00:00
|
|
|
|
2012-04-07 23:44:10 +00:00
|
|
|
private:
|
2018-04-30 20:01:23 +00:00
|
|
|
CSIF& m_sif;
|
|
|
|
uint8* m_eeRam;
|
|
|
|
uint8* m_iopRam;
|
2012-04-07 23:44:10 +00:00
|
|
|
};
|
2008-10-20 04:14:13 +00:00
|
|
|
}
|