diff options
Diffstat (limited to 'src/core/hw/hw_lcd.h')
| -rw-r--r-- | src/core/hw/hw_lcd.h | 44 |
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 | |||
| 9 | namespace LCD { | ||
| 10 | |||
| 11 | enum { | ||
| 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 | |||
| 28 | template <typename T> | ||
| 29 | inline void Read(T &var, const u32 addr); | ||
| 30 | |||
| 31 | template <typename T> | ||
| 32 | inline void Write(u32 addr, const T data); | ||
| 33 | |||
| 34 | /// Update hardware | ||
| 35 | void Update(); | ||
| 36 | |||
| 37 | /// Initialize hardware | ||
| 38 | void Init(); | ||
| 39 | |||
| 40 | /// Shutdown hardware | ||
| 41 | void Shutdown(); | ||
| 42 | |||
| 43 | |||
| 44 | } // namespace | ||