read and store aperture size (will be used in fblocation calculations)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41543 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-05-16 18:10:49 +00:00
parent f3c3902ce1
commit 6c43ea6336
3 changed files with 18 additions and 4 deletions
@@ -76,6 +76,7 @@ struct radeon_shared_info {
uint8* graphics_memory;
addr_t physical_graphics_memory;
uint32 graphics_memory_size;
uint32 graphics_aperture_size;
bool has_edid;
edid1_info edid_info;
@@ -145,6 +146,9 @@ struct radeon_free_graphics_memory {
uint32 buffer_base;
};
// registers
#define R6XX_CONFIG_APER_SIZE 0x5430 // r600>
#define OLD_CONFIG_APER_SIZE 0x0108 // <r600
// cursor
#define RADEON_CURSOR_CONTROL 0x70080