hw_lcd.h 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. namespace LCD {
  7. enum {
  8. TOP_ASPECT_X = 0x5,
  9. TOP_ASPECT_Y = 0x3,
  10. TOP_HEIGHT = 240,
  11. TOP_WIDTH = 400,
  12. BOTTOM_WIDTH = 320,
  13. FRAMEBUFFER_SEL = 0x20184E59,
  14. TOP_LEFT_FRAME1 = 0x20184E60,
  15. TOP_LEFT_FRAME2 = 0x201CB370,
  16. TOP_RIGHT_FRAME1 = 0x20282160,
  17. TOP_RIGHT_FRAME2 = 0x202C8670,
  18. SUB_FRAME1 = 0x202118E0,
  19. SUB_FRAME2 = 0x20249CF0,
  20. };
  21. template <typename T>
  22. inline void Read(T &var, const u32 addr);
  23. template <typename T>
  24. inline void Write(u32 addr, const T data);
  25. /// Update hardware
  26. void Update();
  27. /// Initialize hardware
  28. void Init();
  29. /// Shutdown hardware
  30. void Shutdown();
  31. } // namespace