2014-04-09 04:45:46 +05:30
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
2014-04-05 08:32:59 +05:30
|
|
|
|
2014-04-09 05:45:08 +05:30
|
|
|
#include "common/common_types.h"
|
2014-04-05 08:32:59 +05:30
|
|
|
|
|
|
|
namespace HW {
|
|
|
|
|
|
|
|
template <typename T>
|
2014-07-22 17:19:25 +05:30
|
|
|
void Read(T &var, const u32 addr);
|
2014-04-05 08:32:59 +05:30
|
|
|
|
|
|
|
template <typename T>
|
2014-07-22 17:19:25 +05:30
|
|
|
void Write(u32 addr, const T data);
|
2014-04-05 08:32:59 +05:30
|
|
|
|
2014-04-05 10:54:14 +05:30
|
|
|
/// Update hardware
|
|
|
|
void Update();
|
|
|
|
|
2014-04-05 09:31:07 +05:30
|
|
|
/// Initialize hardware
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
/// Shutdown hardware
|
|
|
|
void Shutdown();
|
|
|
|
|
2014-04-05 08:32:59 +05:30
|
|
|
} // namespace
|