2 * Copyright 2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
10 Haiku Intel-810 video driver was adapted from the X.org intel driver which
11 has the following copyright.
13 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
18 #include "accelerant.h"
19 #include "i810_regs.h"
23 I810_GetColorSpaceParams(int colorSpace
, uint8
& bitsPerPixel
,
24 uint32
& maxPixelClock
)
26 // Get parameters for a color space which is supported by the i810 chips.
27 // Argument maxPixelClock is in KHz.
28 // Return true if the color space is supported; else return false.
33 maxPixelClock
= 163000;
38 maxPixelClock
= 203000;
41 TRACE("Unsupported color space: 0x%X\n", colorSpace
);
52 TRACE("I810_Init()\n");
54 SharedInfo
& si
= *gInfo
.sharedInfo
;
56 // Use all of video memory for the frame buffer.
58 si
.maxFrameBufferSize
= si
.videoMemSize
;
60 // Set up the array of the supported color spaces.
62 si
.colorSpaces
[0] = B_CMAP8
;
63 si
.colorSpaces
[1] = B_RGB16
;
64 si
.colorSpaceCount
= 2;
66 // Setup the mode list.
68 return CreateModeList(IsModeUsable
);