summaryrefslogtreecommitdiff
path: root/src/core/hw/hw_lcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hw/hw_lcd.h')
-rw-r--r--src/core/hw/hw_lcd.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/hw/hw_lcd.h b/src/core/hw/hw_lcd.h
new file mode 100644
index 000000000..30e347ccb
--- /dev/null
+++ b/src/core/hw/hw_lcd.h
@@ -0,0 +1,44 @@
1// Copyright 2014 Citra Emulator Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "common_types.h"
8
9namespace LCD {
10
11enum {
12 TOP_ASPECT_X = 0x5,
13 TOP_ASPECT_Y = 0x3,
14
15 TOP_HEIGHT = 240,
16 TOP_WIDTH = 400,
17 BOTTOM_WIDTH = 320,
18
19 FRAMEBUFFER_SEL = 0x20184E59,
20 TOP_LEFT_FRAME1 = 0x20184E60,
21 TOP_LEFT_FRAME2 = 0x201CB370,
22 TOP_RIGHT_FRAME1 = 0x20282160,
23 TOP_RIGHT_FRAME2 = 0x202C8670,
24 SUB_FRAME1 = 0x202118E0,
25 SUB_FRAME2 = 0x20249CF0,
26};
27
28template <typename T>
29inline void Read(T &var, const u32 addr);
30
31template <typename T>
32inline void Write(u32 addr, const T data);
33
34/// Update hardware
35void Update();
36
37/// Initialize hardware
38void Init();
39
40/// Shutdown hardware
41void Shutdown();
42
43
44} // namespace