Skip to content

Commit

Permalink
MMIO: Port the VideoCommon CP MMIOs to the new interface (and provide…
Browse files Browse the repository at this point in the history
… framework for other video related mappings).
  • Loading branch information
delroth committed Feb 16, 2014
1 parent bdedaa2 commit 4129b30
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 288 deletions.
1 change: 1 addition & 0 deletions Source/Core/Core/HW/Memmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ void InitHWMemFuncsWii()

void InitMMIO(MMIO::Mapping* mmio)
{
g_video_backend->RegisterCPMMIO(mmio, 0xCC000000);
VideoInterface::RegisterMMIO(mmio, 0xCC002000);
ProcessorInterface::RegisterMMIO(mmio, 0xCC003000);
MemoryInterface::RegisterMMIO(mmio, 0xCC004000);
Expand Down
10 changes: 10 additions & 0 deletions Source/Core/VideoBackends/Software/SWmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,16 @@ void VideoSoftware::Video_AbortFrame(void)
{
}

void VideoSoftware::RegisterCPMMIO(MMIO::Mapping* mmio, u32 base)
{
// TODO
}

void VideoSoftware::RegisterPEMMIO(MMIO::Mapping* mmio, u32 base)
{
// TODO
}

readFn16 VideoSoftware::Video_CPRead16()
{
return SWCommandProcessor::Read16;
Expand Down
5 changes: 5 additions & 0 deletions Source/Core/VideoBackends/Software/VideoBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "VideoBackendBase.h"

namespace MMIO { class Mapping; }

namespace SW
{

Expand Down Expand Up @@ -44,6 +46,9 @@ class VideoSoftware : public VideoBackend
bool Video_IsPossibleWaitingSetDrawDone() override;
void Video_AbortFrame() override;

void RegisterCPMMIO(MMIO::Mapping* mmio, u32 base) override;
void RegisterPEMMIO(MMIO::Mapping* mmio, u32 base) override;

readFn16 Video_CPRead16() override;
writeFn16 Video_CPWrite16() override;
readFn16 Video_PERead16() override;
Expand Down

0 comments on commit 4129b30

Please sign in to comment.