1/*
2 * Copyright 1999, Be Incorporated.
3 * Copyright 2007, Haiku.
4 * Distributed under the terms of the MIT License.
5 *
6 * Authors:
7 *		Be Incorporated
8 *		Eric Petit <eric.petit@lapsus.org>
9 */
10
11
12#include <SupportDefs.h>
13#include "GlobalData.h"
14
15
16status_t
17GET_DISPLAY_MODE(display_mode *currentMode)
18{
19	TRACE("GET_DISPLAY_MODE\n");
20
21	*currentMode = gSi->dm;
22	return B_OK;
23}
24
25
26status_t
27GET_FRAME_BUFFER_CONFIG(frame_buffer_config *afb)
28{
29	TRACE("GET_FRAME_BUFFER_CONFIG\n");
30
31	afb->frame_buffer = (uint8 *)gSi->fb + gSi->fbOffset;
32	afb->frame_buffer_dma = (uint8 *)gSi->fbDma + gSi->fbOffset;
33	afb->bytes_per_row = gSi->bytesPerRow;
34
35	TRACE("fb: %p, fb_dma: %p, row: %"B_PRIu32" bytes\n", afb->frame_buffer,
36		afb->frame_buffer_dma, afb->bytes_per_row);
37
38	return B_OK;
39}
40
41
42status_t
43GET_PIXEL_CLOCK_LIMITS(display_mode *dm, uint32 *low, uint32 *high)
44{
45	TRACE("GET_PIXEL_CLOCK_LIMITS\n");
46
47	/* ? */
48	*low = 1;
49	*high = 0xFFFFFFFF;
50	return B_OK;
51}
52
53
54sem_id
55ACCELERANT_RETRACE_SEMAPHORE()
56{
57	return B_ERROR;
58}
59
60