summaryrefslogtreecommitdiff
path: root/src/core/hw/lcd.h
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-17 23:48:23 -0400
committerGravatar bunnei2014-04-17 23:48:23 -0400
commit70c2cce963264678b5ba5b6aa17c2653bf459e61 (patch)
tree0d3335e7dda2431260384a802c93dfda2d1ffc87 /src/core/hw/lcd.h
parentadded NDMA hardware interface (diff)
downloadyuzu-70c2cce963264678b5ba5b6aa17c2653bf459e61.tar.gz
yuzu-70c2cce963264678b5ba5b6aa17c2653bf459e61.tar.xz
yuzu-70c2cce963264678b5ba5b6aa17c2653bf459e61.zip
renamed hw_lcd module to just lcd
Diffstat (limited to 'src/core/hw/lcd.h')
-rw-r--r--src/core/hw/lcd.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/hw/lcd.h b/src/core/hw/lcd.h
new file mode 100644
index 000000000..386ed6004
--- /dev/null
+++ b/src/core/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/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