2 * Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Alexander von Gluck, kallisti5@unixzen.com
8 #ifndef RADEON_HD_MODE_H
9 #define RADEON_HD_MODE_H
12 #include <create_display_modes.h>
19 #define T_POSITIVE_SYNC (B_POSITIVE_HSYNC | B_POSITIVE_VSYNC)
21 #define D1_REG_OFFSET 0x0000
22 #define D2_REG_OFFSET 0x0800
23 #define FMT1_REG_OFFSET 0x0000
24 #define FMT2_REG_OFFSET 0x800
27 // TODO: Overscan and scaling support
30 status_t
create_mode_list(void);
31 bool is_mode_supported(display_mode
* mode
);
32 status_t
is_mode_sane(display_mode
* mode
);
33 uint32
radeon_dpms_capabilities(void);
34 uint32
radeon_dpms_mode(void);
35 void radeon_dpms_set(uint8 id
, int mode
);
36 void radeon_dpms_set_hook(int mode
);
37 uint32
get_mode_bpp(display_mode
* mode
);
40 #endif /*RADEON_HD_MODE_H*/