ensure framebuffer doesn't exceed PCI bar; add basic monitoring of frame buffer memory allocation; fix return of framebuffer to OS to be the correct area

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-05-19 17:39:07 +00:00
parent f1abcf7879
commit 51a43d0ff4
5 changed files with 54 additions and 7 deletions
@@ -79,7 +79,8 @@ struct radeon_shared_info {
addr_t frame_buffer_phys; // card PCI BAR address of FB
uint32 frame_buffer_int; // card internal offset of FB
uint32 frame_buffer_size; // card internal FB aperture size
uint32 frame_buffer_offset; // offset within FB (pri vs sec)
uint32 frame_buffer_offset; // current offset within FB
uint32 frame_buffer_free; // free space in framebuffer
bool has_edid;
edid1_info edid_info;