summaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hw/gpu.h')
-rw-r--r--src/core/hw/gpu.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h
index c81b1bb3f..f26f25e98 100644
--- a/src/core/hw/gpu.h
+++ b/src/core/hw/gpu.h
@@ -9,6 +9,21 @@
9namespace GPU { 9namespace GPU {
10 10
11struct Registers { 11struct Registers {
12 enum Id : u32 {
13 FramebufferTopLeft1 = 0x1EF00468, // Main LCD, first framebuffer for 3D left
14 FramebufferTopLeft2 = 0x1EF0046C, // Main LCD, second framebuffer for 3D left
15 FramebufferTopRight1 = 0x1EF00494, // Main LCD, first framebuffer for 3D right
16 FramebufferTopRight2 = 0x1EF00498, // Main LCD, second framebuffer for 3D right
17 FramebufferSubLeft1 = 0x1EF00568, // Sub LCD, first framebuffer
18 FramebufferSubLeft2 = 0x1EF0056C, // Sub LCD, second framebuffer
19 FramebufferSubRight1 = 0x1EF00594, // Sub LCD, unused first framebuffer
20 FramebufferSubRight2 = 0x1EF00598, // Sub LCD, unused second framebuffer
21
22 CommandListSize = 0x1EF018E0,
23 CommandListAddress = 0x1EF018E8,
24 ProcessCommandList = 0x1EF018F0,
25 };
26
12 u32 framebuffer_top_left_1; 27 u32 framebuffer_top_left_1;
13 u32 framebuffer_top_left_2; 28 u32 framebuffer_top_left_2;
14 u32 framebuffer_top_right_1; 29 u32 framebuffer_top_right_1;
@@ -52,21 +67,6 @@ enum {
52 PADDR_VRAM_SUB_FRAME2 = 0x18249CF0, 67 PADDR_VRAM_SUB_FRAME2 = 0x18249CF0,
53}; 68};
54 69
55enum {
56 REG_FRAMEBUFFER_TOP_LEFT_1 = 0x1EF00468, // Main LCD, first framebuffer for 3D left
57 REG_FRAMEBUFFER_TOP_LEFT_2 = 0x1EF0046C, // Main LCD, second framebuffer for 3D left
58 REG_FRAMEBUFFER_TOP_RIGHT_1 = 0x1EF00494, // Main LCD, first framebuffer for 3D right
59 REG_FRAMEBUFFER_TOP_RIGHT_2 = 0x1EF00498, // Main LCD, second framebuffer for 3D right
60 REG_FRAMEBUFFER_SUB_LEFT_1 = 0x1EF00568, // Sub LCD, first framebuffer
61 REG_FRAMEBUFFER_SUB_LEFT_2 = 0x1EF0056C, // Sub LCD, second framebuffer
62 REG_FRAMEBUFFER_SUB_RIGHT_1 = 0x1EF00594, // Sub LCD, unused first framebuffer
63 REG_FRAMEBUFFER_SUB_RIGHT_2 = 0x1EF00598, // Sub LCD, unused second framebuffer
64
65 CommandListSize = 0x1EF018E0,
66 CommandListAddress = 0x1EF018E8,
67 ProcessCommandList = 0x1EF018F0,
68};
69
70/// Framebuffer location 70/// Framebuffer location
71enum FramebufferLocation { 71enum FramebufferLocation {
72 FRAMEBUFFER_LOCATION_UNKNOWN, ///< Framebuffer location is unknown 72 FRAMEBUFFER_LOCATION_UNKNOWN, ///< Framebuffer location is unknown