2 * Copyright 2006-2010, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
7 * Clemens Zeidler, haiku@clemens-zeidler.de
9 #ifndef RADEON_RD_PRIVATE_H
10 #define RADEON_RD_PRIVATE_H
14 #include <KernelExport.h>
18 #include "radeon_hd.h"
22 // PCI Base Address Registers
25 #define RADEON_BIOS8(adr, v) (adr[v])
26 #define RADEON_BIOS16(adr, v) ((adr[v]) | (adr[(v) + 1] << 8))
27 #define RADEON_BIOS32(adr, v) \
28 ((RADEON_BIOS16(adr, v) | RADEON_BIOS16(adr, v + 2) << 16))
38 uint8
* atom_buffer
; // buffer for atombios
40 area_id registers_area
;
41 area_id framebuffer_area
;
44 struct radeon_shared_info
* shared_info
;
48 const char* deviceName
;
50 const char* chipsetName
;
57 status_t
mapAtomBIOS(radeon_info
&info
, uint32 romBase
, uint32 romSize
);
58 extern status_t
radeon_hd_init(radeon_info
& info
);
59 extern void radeon_hd_uninit(radeon_info
& info
);
62 #endif /* RADEON_RD_PRIVATE_H */