From fde69f164727fe3d93427e0c73d843efd1af0fe1 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 3 Apr 2011 17:21:01 +0000 Subject: [PATCH] stub out Read/Write MC, add functional Read/Write PLL git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41172 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../accelerants/radeon_hd/accelerant.h | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/add-ons/accelerants/radeon_hd/accelerant.h b/src/add-ons/accelerants/radeon_hd/accelerant.h index 5161680164..1338dff5ac 100644 --- a/src/add-ons/accelerants/radeon_hd/accelerant.h +++ b/src/add-ons/accelerants/radeon_hd/accelerant.h @@ -58,6 +58,37 @@ write32(uint32 offset, uint32 value) } +inline uint32_t +ReadMC(int screenIndex, uint32_t addr) +{ + // TODO : readMC for R5XX + return 0; +} + + +inline void +WriteMC(int screenIndex, uint32_t addr, uint32_t data) +{ + // TODO : writeMC for R5XX +} + + +inline uint32_t +ReadPLL(int screenIndex, uint16_t offset) +{ + write32(CLOCK_CNTL_INDEX, offset & PLL_ADDR); + return read32(CLOCK_CNTL_INDEX); +} + + +inline void +WritePLL(int screenIndex, uint16_t offset, uint32_t data) +{ + write32(CLOCK_CNTL_INDEX, (offset & PLL_ADDR) | PLL_WR_EN); + write32(CLOCK_CNTL_DATA, data); +} + + // modes.cpp extern status_t create_mode_list(void);