1 /* 2 * Copyright 2006-2007, 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 */ 8 #ifndef ACCELERANT_PROTOS_H 9 #define ACCELERANT_PROTOS_H 10 11 12 #include <Accelerant.h> 13 #include "video_overlay.h" 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 void spin(bigtime_t delay); 21 22 // general 23 status_t radeon_init_accelerant(int fd); 24 void radeon_uninit_accelerant(void); 25 26 // modes & constraints 27 uint32 radeon_accelerant_mode_count(void); 28 status_t radeon_get_mode_list(display_mode *dm); 29 status_t radeon_set_display_mode(display_mode *mode); 30 status_t radeon_get_display_mode(display_mode *currentMode); 31 status_t radeon_get_frame_buffer_config(frame_buffer_config *config); 32 status_t radeon_get_pixel_clock_limits(display_mode *mode, uint32 *low, uint32 *high); 33 34 // accelerant engine 35 status_t radeon_acquire_engine(uint32 capabilities, uint32 maxWait, 36 sync_token *syncToken, engine_token **_engineToken); 37 status_t radeon_release_engine(engine_token *engineToken, sync_token *syncToken); 38 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif /* ACCELERANT_PROTOS_H */ 45