xref: /haiku/src/add-ons/accelerants/radeon_hd/accelerant_protos.h (revision b46615c55ad2c8fe6de54412055a0713da3d610a)
1 /*
2  * Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  *		Alexander von Gluck, kallisti5@unixzen.com
8  */
9 #ifndef ACCELERANT_PROTOS_H
10 #define ACCELERANT_PROTOS_H
11 
12 
13 #include <Accelerant.h>
14 #include "video_overlay.h"
15 
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 void spin(bigtime_t delay);
22 
23 // general
24 status_t radeon_init_accelerant(int fd);
25 void radeon_uninit_accelerant(void);
26 
27 // modes & constraints
28 uint32 radeon_accelerant_mode_count(void);
29 status_t radeon_get_mode_list(display_mode *dm);
30 status_t radeon_set_display_mode(display_mode *mode);
31 status_t radeon_get_display_mode(display_mode *currentMode);
32 status_t radeon_get_frame_buffer_config(frame_buffer_config *config);
33 status_t radeon_get_pixel_clock_limits(display_mode *mode,
34 	uint32 *low, uint32 *high);
35 status_t radeon_get_edid_info(void* info, size_t size, uint32* edid_version);
36 
37 // accelerant engine
38 status_t radeon_acquire_engine(uint32 capabilities, uint32 maxWait,
39 	sync_token *syncToken, engine_token **_engineToken);
40 status_t radeon_release_engine(engine_token *engineToken,
41 	sync_token *syncToken);
42 
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif	/* ACCELERANT_PROTOS_H */
49