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
15#include "video_overlay.h"
16
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22
23void spin(bigtime_t delay);
24
25// general
26status_t radeon_init_accelerant(int fd);
27void radeon_uninit_accelerant(void);
28status_t radeon_get_accelerant_device_info(accelerant_device_info* di);
29
30// modes & constraints
31uint32 radeon_accelerant_mode_count(void);
32status_t radeon_get_mode_list(display_mode* dm);
33status_t radeon_set_display_mode(display_mode* mode);
34status_t radeon_get_display_mode(display_mode* currentMode);
35status_t radeon_get_preferred_mode(display_mode* preferredMode);
36status_t radeon_get_frame_buffer_config(frame_buffer_config* config);
37status_t radeon_get_pixel_clock_limits(display_mode* mode,
38	uint32* low, uint32* high);
39status_t radeon_get_edid_info(void* info, size_t size, uint32* edid_version);
40
41//brightness
42status_t radeon_set_brightness(float brightness);
43status_t radeon_get_brightness(float* brightness);
44
45// accelerant engine
46uint32 radeon_accelerant_engine_count(void);
47status_t radeon_acquire_engine(uint32 capabilities, uint32 maxWait,
48	sync_token* syncToken, engine_token** _engineToken);
49status_t radeon_release_engine(engine_token* engineToken,
50	sync_token* syncToken);
51
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif	/* ACCELERANT_PROTOS_H */
58