xref: /haiku/src/add-ons/accelerants/radeon_hd/mode.h (revision 579f1dbca962a2a03df54f69fdc6e9423f91f20e)
1 /*
2  * Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Alexander von Gluck, kallisti5@unixzen.com
7  */
8 #ifndef RADEON_HD_MODE_H
9 #define RADEON_HD_MODE_H
10 
11 
12 #include <create_display_modes.h>
13 #include <ddc.h>
14 #include <edid.h>
15 
16 #include "gpu.h"
17 
18 
19 #define T_POSITIVE_SYNC (B_POSITIVE_HSYNC | B_POSITIVE_VSYNC)
20 
21 #define D1_REG_OFFSET 0x0000
22 #define D2_REG_OFFSET 0x0800
23 #define FMT1_REG_OFFSET 0x0000
24 #define FMT2_REG_OFFSET 0x800
25 
26 #define OVERSCAN 0
27 	// TODO: Overscan and scaling support
28 
29 
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);
38 
39 
40 #endif /*RADEON_HD_MODE_H*/
41